PWM sinewave generation
Robert Schade
Posts: 27
I've written some pasm that allows me to control the amplitude of a 1KHz sinewave generated by the prop.
Unfortunately the pwm signal generated uses the DUTY mode of a counter and that means 40MHz which is not feasible for a power mosfet.
Question: Is there a way to implement a prescaler or something of that nature to make the pwm operate in the 100KHz to 150KHz range????
Rob
Unfortunately the pwm signal generated uses the DUTY mode of a counter and that means 40MHz which is not feasible for a power mosfet.
Question: Is there a way to implement a prescaler or something of that nature to make the pwm operate in the 100KHz to 150KHz range????
Rob
Comments
AN001 - Propeller Counters...
http://www.parallax.com/Portals/0/Downloads/appnt/prop/AN001-PropellerCountersv1.1.zip
http://forums.parallax.com/showthread.php?t=121470
I've already got that doc. I've probably missed something in there but not sure how it will help.
The whole point of the prop program is to make a variac replacement. The mains suppply is rectified and then I want to pwm the dc into a psuedo sinewave to feed through a transformer. The sinewave's amplitude will be controlled so that the heat dissipation will be minimized in the linear regulator on the secondary side of the transformer.
The duty mode of the counters is great for fine control of the amplitude and gives a very good pseudo sinewave, I just need to reduce the frequency the pwm operates at, but how????
-Phil
I can adjust the amplitude over the full range via a serial link which will end up being rs485 in the finished unit.
The sine value is output every 15 degrees so quite fine with acceptable distortion.
Thanks for all the help guys.