Hello
I try to synchronisate my PWM signal by software.
So i set the SWFSYNC Bit in the Timebase Control Register.
EPwm2Regs.TBCTL.bit.SWFSYNC = 1;
In the init function i set
EPwm2Regs.TBCTL.bit.SYNCOSEL = 0;
as the datasheet says.
But the counter isn't reset when the SWFSYNC Bit is set.
What do i make wrong?
EPwm2Regs.TBPHS.half.TBPHS = 0;
EPwm2Regs.TBCTL.bit.PHSEN = TB_ENABLE;
is also set so the reload value should be 0?