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.

TMS320F28027: f28027

Part Number: TMS320F28027
Other Parts Discussed in Thread: C2000WARE

I have to generate PWM at 5 different frequencies with F28027 at different duty cycles at a single time. Which approach can I use for that? I have heard that I can generate one frequency through HRPWM and by using it with timers and DAC, I can achieve my target. How is that possible?

  • Ammad,

    F28027 can support 5 different frequency PWMs and duty cycles. 

    Each PWM module has two output ePWMxA and ePWMxB, these channels can have independent duty cycles, but must have the same frequency. If you want different frequencies you will need to use different instances of the PWM module. For example ePWM1A for 10kHz and ePWM2A for 20kHz. If you have another PWM output at 20kHz you can use ePWM2B to fulfill that requirement.

    Please see the TRM for more information, and examples can be found in C2000Ware.

    Ammad Javed said:
    I have heard that I can generate one frequency through HRPWM and by using it with timers and DAC, I can achieve my target. How is that possible?

    I do not know where you go this information, and if I am understanding you correctly this will not work.

    Regards,
    Cody 

  • Does ePWMx. uses timer modules? If not then is it necessary to use timers to generate PWM?

  • Ammad,

    I would encourage you to read through the TRM, it should cover these details.

    If you are referring to the CPU timers, no, they are separate and are not used by the PWM modules. Each PWM module has a build in counter called TBCTR which is used to generate the various events. TBPRD defines the period of the PWM and when the TBCTR is reset.

    Best of luck,
    Cody