PWM Phases

23 Sep 2010

Is there anyway to put the pwm outputs out of phase. E.g. if I'm using two pwm pins and want a 50% duty cycle on each, then is there a way to set it up so that the first pwm pin is on for the first 50% of the period and the 2nd pwm pin on for the last 50% of the period?

23 Sep 2010

Look through the user guide of LPC1768, it's possible, but my brains hasn't got enough coffee, to see a clear solution.
Possibly something with double edge something... Goodnight brains!

/ Lerche

23 Sep 2010

Well, I investigated...

LPC_PWM1->MR0-5

Those registers can be used, but i think you'll need to modify MCR register first, to let it function with double edge ..

Neeeeed, coffeee!

 

/ Lerche

23 Sep 2010

Ok, cheers. Will have a look into that. Hope you get some coffee :-)

24 Sep 2010

Hi TL

I tried a small program last night, and from what i learned, it wasn't possible to create the phase "misplacing" simple.
But I will continue, and succeed!
Will return with answers later.

Lerche