generation of sine wave using pwm module of dspic30f6010

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.

Reply to
bg
Loading thread data ...

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
Reply to
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
Reply to
CBFalconer

Consider pulse density modulation with external filtering.

Reply to
Gerard

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.