This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069M: PWM not working for lower TBPRD values.

Part Number: TMS320F28069M
Other Parts Discussed in Thread: C2000WARE

I tried to obtain around 300 KHz PWM frequncy from the F28069M. For that, i used the TBPRD value of 150 with up-down count mode. But there is almost no pulse was generated. For CMPA values near TBPRD value, there is a small notch like pulse which was not what i want. Can you please give me a solution.  Clock input for the PWM module is equal to the processor frequency, 90MHz.
HRPWM is not an option for me for this task.

  • Damith,

    there are several good examples in C2000Ware. C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2806x\examples\c28\epwm_updown_aq would be a good example to look at. Starting from one of these will ensure that you don't have any GPIO configuration issues.

    Note if you have something with a large electrical load you may have overloaded the devices IO buffer. If this is the case you will need to externally buffer the pin.

    Finally the TRM documents FPWM = 1 / (TPWM) and TPWM = 2 x TBPRD x TTBCLK for up-down count mode so it looks like your value of 150 is correct.

    Regards,
    Cody