EPWM1 is the master and EPWM2 is the slave in sync because I am doing phase shift between them.
EPWM1 is set at TBPRD=4500(10Khz) so if I change the EPWM2 TBPRD value =9000(5Khz).The action qualifier does not output anything. They work only when they are the same value or PHSEN is disabled(which I don't want).
My objective is:
1) Interrupt with EPWM1 at 10Khz (for calculations),SYNC disabled and (EPwm1Regs.TBCTL.bit.SYNCOSEL = TB_CTR_ZERO ;)
2) EPWM2 AQ for switching at 5Khz but I want to change the phase to whatever I want with respect to EPWM1.