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: TBPHS compensate the synchronization of two epwm modules

Part Number: TMS320F280039C

Hi Champ,

As there will be a fixed delay (2x EPWMCLK for TBCLK = EPWMCLK) from internal master module to slave module in epwm. 

To compensate this 2x EPWMCLK delay, it should be implemented by enabling the phase shift load with filling in TBPHS in slave module, correct ?

In general, we use the formula TBPHS = TBPRD*Desired Phase Degree/360 to get the value of TBPHS for shifting angle.

To compensate the fixed delay, any formula could provided to calculate for TBPHS from here ? Is the formula different from up / up-down count mode ?

Thanks and regards,

Johnny

  • Hi Johnny,

    To compensate this 2x EPWMCLK delay, it should be implemented by enabling the phase shift load with filling in TBPHS in slave module, correct ?

    That is correct. The delay can be compensated through TBPHS - 2 .to compensate for the delay.

    In general, we use the formula TBPHS = TBPRD*Desired Phase Degree/360 to get the value of TBPHS for shifting angle.

    This will work to get the value of TBPHS.