Hey all,
I have been trying to get sine wave of different frequencies (For example from 60-110 Hz) from a micro-controller, what I have succeeded in doing is by using PWM and timers I am able to produce square waves in the said range, Now I understand that I must use a low pass RC filter to convert the square waves to sine waves but no matter what value of R and C i choose, am not able to get the sine waves at same frequencies as square waves. I am kinda stuck now having tried all possible combinations. Please help.
I have been trying to get sine wave of different frequencies (For example from 60-110 Hz) from a micro-controller, what I have succeeded in doing is by using PWM and timers I am able to produce square waves in the said range, Now I understand that I must use a low pass RC filter to convert the square waves to sine waves but no matter what value of R and C i choose, am not able to get the sine waves at same frequencies as square waves. I am kinda stuck now having tried all possible combinations. Please help.