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.

TMS320F280039C: For PWM Disable

Part Number: TMS320F280039C
We are generating six pulses through EPWM modules (EPWM1A and EPWM1B, EPWM2A and EPWM2B, EPWM3A and EPWM3B with deadband) for motor control. In adc_isr, We have one flag that is Motor_ON (user define ). When Motor_ON==1, One set of code is executed and duty of EPWM pulses also varies. Now, When Motor_ON==0, we want to disable all mentioned EPWM. they should be zero or floating.   
Kindly provide a suitable solution for the same. 
  • Hi Rahul,

    You can use the TZFRC register to induce a one-shot software trip, then configure each EPWM output's behavior when a one-shot trip event occurs. When you want to re-enable the PWMs, you will need to write to the TZCLR register.

    Let me know if you have any other questions.

    Thank you,

    Luke