I use MPC5606B.
And I try to generate 180 degree phase shift.
I use PA and PA by Output pulse width and frequency modulation buffered (OPWFMB)
So How I generate 180 degree phase shifted PWM?
Which register should I change?
One possible way could be init the CTN register by shifted value when PWM generators are disabled.
The CNT register is writtable in eMIOS GPIO mode. Assuming you are in GPIO mode the steps could be
- Disable Global Prescaler
- Disable Channel Prescaler
- Write initial value at internal counter
- Set A/B register
- Set channel to OPWFMB mode
- Set prescaler ratio
- Enable Channel Prescaler
- Enable Global Prescaler
Retrieving data ...