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

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Basic CLB Implementation
  6. 3Turn-On Delay Configurations
  7. 4Turn-Off Delay Configurations
  8. 5Different Options to Turn On or Turn Off SR PWM
    1. 5.1 Software Control Method
    2. 5.2 Hardware-Based Scheme
  9. 6How to Adjust the SR PWM Clamping Time
  10. 7Summary
  11. 8References

Software Control Method

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);