SPRADQ1 February   2025 TMS320F2800133 , TMS320F2800135 , TMS320F2800137 , TMS320F2800155 , TMS320F2800157 , TMS320F280025C , TMS320F280037C-Q1 , TMS320F280039C , TMS320F280039C-Q1 , TMS320F280045 , TMS320F280049 , TMS320F280049C , TMS320F28P559SJ-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Potential Risks with Traditional PWM Configuration
  6. 3PWM Configurations for Robust Control
    1. 3.1 Create Additional Delay for the Sync Event for the PWM Counter
    2. 3.2 Configure a ZCD Signal as a T1 Event
  7. 4How to Capture the Phase Difference and Period of Multiphase Totem Pole PFCs
  8. 5How to Eliminate the External ZCD Circuits with TI GaN
  9. 6Summary
  10. 7References

Create Additional Delay for the Sync Event for the PWM Counter

The falling edge of sync FET PWM is defined as a DCxEVT1 event (active low), through input XBAR, EPWM XBAR and digital compare (DC) submodule, since a DCxEVT1 event can be used to generate a synchronization event for the PWM counter. Figure 3-2 shows how the edge filter function inside the DC submodule is leveraged to create additional delay for a DCxEVT1 event, as shown in the following steps.

  1. Select a DCxEVT1 event as the input to the edge filter block.
  2. Enable valley capture mode (VCAPCTL[VCAPE])
  3. Select CTR = Zero to restart the edge filter (VCAPCTL[TRIGSEL])
  4. Configure the edge filter to capture one edge (DCFCTL[EDGECOUNT])
  5. Enable the configure for the required delay for the DCxEVT1 signal (SWVDELVAL), which represents the additional delay for the PWM counter sync event.
EPWM_setDigitalCompareFilterInput (base, EPWM_DC_WINDOW_SOURCE_DCAEVT1);
EPWM_enableDigitalCompareEdgeFilter(base);
EPWM_enableValleyCapture(base);
EPWM_setValleyTriggerSource(base, EPWM_VALLEY_TRIGGER_EVENT_CNTR_ZERO);
EPWM_setDigitalCompareEdgeFilterEdgeCount(base, EPWM_DC_EDGEFILT_EDGECNT_1);
   EPWM_enableValleyHWDelay(base);
EPWM_setValleySWDelayValue(base, 30);

Considering the dead time is relatively stable across operation conditions, it is safe even though the SWVDELVAL register does not operate in shadow mode. Since the active FET and sync FET roles are exchanged under a positive cycle and a negative cycle, the source (sync FET PWM) for the DCxEVT1 event is required to change at the same time. This is accomplished by selecting different GPIOs as the source of the input XBAR.

 Edge Filter Function of the DC
                    Module Figure 3-2 Edge Filter Function of the DC Module