SPRADF4 December 2023 TMS320F280023C , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280037C , TMS320F280037C-Q1 , TMS320F280039C , TMS320F280039C-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S , TMS320F28P650DK
Turning off the SR PWM using the DB or Trip Zone (TZ) submodule is easy since the final SR PWM is created through both the CLB and DB submodule of EPWM. For example, the codes below leverage the large dead time to turn off the PWM outputs, with PERIOD_MAX representing the max period of the primary side PWM across all conditions. The benefit of this software control method is that DB edge-delay values provide the shadow mode, so the SR PWM output is completely activated or deactivated without any glitches when compared to the method using a software-forced trip event with TZ submodule. This method can be used together with load condition judgment in the software.
EPWM_setRisingEdgeDelayCount(EPWM2_BASE, PERIOD_MAX);
EPWM_setFallingEdgeDelayCount(EPWM2_BASE, PERIOD_MAX);