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.

TMS320F28P650DK: XCMP and ePWM synchronization

Part Number: TMS320F28P650DK

Dear TI support,

according to the statement on page 3799 of SPRUIZ1B revised August2024, it seems that the timer XCMP module uses, can not be synchronized to other ePWM module chosen as master. 

I mean the value of the register TBCTL[PHSEN] beloning to the timer XCMP module uses, must be set to 0: refer to figure 22-5 of the mentioned TI's doc.

Please can you confirm whether or not, my understanding is correct ?

If the synchronization through EPWMxSYNCIN is not allow, please can you suggest me a way to synchronize the timer XCMP uses with a master one ?

What I need is that: all Epwm modules I use, must run in a synchronous way despite the use of XCMP registers or CMPA and CMPB ones.

 

Thank you

Ettore

  • Hi,
    Phase sync cannot be used with XCMP feature as mentioned in the manual.
    Just ensure that all the PWM counters start at the same time disable GTBCLKSYNC and TBCLKSYNC and enable after the initialization and pwm config is done.

    This will ensure pwm counters for all pwm start at same time.

    Thanks