I am running 2 synchronous PWMs (4 outputs) to control an interleaved (2 phase) DC/DC converter. I am trying to add 180° phase shift to one set of PWM outputs.
I have tried various values from 1 to 20000 in this line of code and it doesn't seem to have any affect.
EPwm6Regs.TBPHS.bit.TBPHS = 0x0000; // Phase is 0
I also tried changing this line:
EPwm6Regs.TBCTL.bit.PHSEN = TB_DISABLE; // Disable phase loading
to this:
EPwm6Regs.TBCTL.bit.PHSEN = TB_ENABLE; // Disable phase loading
That killed my PWM and caused a constant output.
Is there something I am missing?