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.

delay from master module to slave module for PWM synchronization

Part Number: F28035


Hi,

in TRM 3.2.2.3.3 Time-Base Counter Synchronization section.

The value of the phase register is loaded into the counter register when an input synchronization pulse
is detected (TBPHS → TBCTR). This operation occurs on the next valid time-base clock (TBCLK)
edge.
The delay from internal master module to slave modules is given by:
– if ( TBCLK = SYSCLKOUT): 2 x SYSCLKOUT
– if ( TBCLK != SYSCLKOUT):1 TBCLK

So if TBCLK=SYSCLKOUT, both EPWM1 and EPWM2 are UP-COUNT mode. if we sync EPWM1 clock with EPWM2 clock. And we set TBPHS=0.

The TBCLK of EPWM2 is still 2sysclkout delayed from TBCLK of EPWM1, right?

So if we want EPWM1 and EPWM2 TBCLK exactly the same, we should set EPWM2's TBPHS=TBPRD-2 to compensate the 2sysclkout delay, right?