MPC5606B phase-shifted PWM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC5606B phase-shifted PWM

630 Views
sohyunjang
Contributor III

Hi.

I use MPC5606B.

And I try to generate 180 degree phase shift.

I use PA[0] and PA[1] by Output pulse width and frequency modulation buffered (OPWFMB)

So How I generate 180 degree phase shifted PWM?

Which register should I change?

Tags (3)
0 Kudos
1 Reply

452 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

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

BR, Petr

0 Kudos