View Full Version : Discussion Spwm
ibrahim
Jan 02, 2006, 07:25 AM
Hello,
Does anybody know how to generate SPWM from 8051 controller or PIC.Actually i am designing Inverter and have to generate SPWM
Thanks
Dan Baldwin
Jan 02, 2006, 11:21 AM
SPWM can mean syncronized pulse width modulation, or sinusoidal pulse width modulation. I assume that in this case you mean sinusoidal. If you need single ended operation (just turn a single transistor on and off) the simplest way would probably be to use a lookup table. The table would contain the PWM value to be output for, say, 128 steps in the PWM cycle. The table could be from 90 deg (100% duty cycle) to 270 deg (0% duty cycle). You would step through the table forward for the first half of the cycle, then step throught it backwards for the second half.
Dan
Acetronics
Jan 02, 2006, 12:32 PM
Hello,
Does anybody know how to generate SPWM from 8051 controller or PIC.Actually i am designing Inverter and have to generate SPWM
Thanks
Hi, Ibrahim, Hi, Dan
First of All ... have a Happy New Year
Some of the lasts PICs have built in "SPWM" or Enhanced PWM feature : just enter the duty value and the way of rotation ...
And the PIC drives 2 or 4 of its pins to control a half or full bridge ... itself !!!
see i.e the 18F1320 Datasheet ...
I think no more explanation is to give here ...
Alain
vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.