This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How could i control a sine waveform coming from a pwm signal?

Hi Everybody,
i have the following problem and i hope someone between you have the solution.
IÂ've wrote a programm to generate a sine waveform from pwm signals. This sine waveform has a variable frequency from 10 to 100Hz, with a step of 0.1Hz.IÂ've done this, using a look up table with more than 7000 values,i.e values for 10,for 10.1,for 10.2 ......
My first question is: does somebody know how to do this without using so many values?
I want also to control the amplitude(with a step of 0.5%) of the sine waveform. Do i need another look up table for this? or is there a possibility to do this with the same look up table for the frequencies.
Your Ideas will be a great help for me.
Thanks.
Note that the frequency of the pwm must remain constant.

0