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.

TMS320F28069M: Using EPWM1 as slave to EPWM2 for phase shift

Part Number: TMS320F28069M

I have modified Example _2806xEPwmUpDownAQ.c with phase shift for EPWM1 and EPWM2.

Apparently I change the expression of <EPwm1Regs.TBPHS.half.TBPHS> in the expressions tab after running the code.


which works when I do it for EPWM1 as  MASTER  and EPWM2 as slave.

{

EPwm1Regs.TBCTL.bit.SYNCOSEL = TB_CTR_ZERO ; and  EPwm2Regs.TBCTL.bit.SYNCOSEL = TB_SYNC_IN ;

}

But it doesn't work in the opposite order.

where i want to change the slave and master order