hi all, i have a dspic30f6010.i would like to generate a sine wave with this for an ac induction motor.i would like to know whether there is any method for controlling the amplitude of sine wave. and also details abt the c code for generation of sine wave using dspic30f6010.
generation of sine wave using pwm module of dspic30f6010
Apr 29, 2005
3 Replies
Try posting to the Microchip dsPIC forum. That's where most dsPIC experts tend to lurk.
Leon
Leon Heller, G1HSM
http://www.geocities.com/leon_heller
Consider:
______------______------
--__----------__--------
________--__________--__
Mix these signals together with the appropriate amplitudes (3 resistors) and you have a sinewave with no harmonics below the 5th, I believe. It takes very little analog filtering to get a clean sine from it. You get the waveforms from anything running at 3 times the desired frequency. The result, before filtering, is about:
__--__ __--__ --__-- --__--
The filter and final output involves 4 resistors, one capacitor, and an op-amp. You can generate all the phases you want, in steps of 1/6 cycle.
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
Consider pulse density modulation with external filtering.
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required