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.

TMS320F28335: disable pwm output

Part Number: TMS320F28335

hello,

1.When the ePWM is in the complementary mode, how to set all the 6 ePWM ports be low?

2. What operation does the gpio port need to restore to the EPWM output? thank you very much.

  • z.z,

    The best way to force PWM outputs low is to use the Trip-Zone submodule. The Trip-Zone takes affect after the Dead-Band submodule that is creating the complementary signal, so you will need to configure the Trip-Zone to force both EPWMxA and EPWMxB low.

    The Trip-Zone has two types of trips, one shot (OSHT) and cycle-by-cycle (CBC). Both of these can do what you want, but I think the OSHT trip will work best for you. Look at the documentation and choose which is best for your application. 

    When you are ready to re-enable the PWM output you can clear the TZ event and the PWM will resume wherever it is in its cycle. 


    Regards,
    Cody