Thanks Richard.
Your sine lu table appears non-symmetrical. Have you done this for a reason?
Cheers
Barry
VK2XBP
Thanks Richard.
Your sine lu table appears non-symmetrical. Have you done this for a reason?
Cheers
Barry
VK2XBP
its a half wave samples are sin(pi*(I+10)/256 )*256 where I=1 to 25
Last edited by richard; - 6th September 2016 at 03:44.
Warning I'm not a teacher
Hi All,
I am pleased to advise that I now have a very nice sine wave output from my PIC12F1822.
I dropped the FREQOUT approach and went with the lookup table method instead.
Thanks to all who assisted me with this project.
Cheers
Barry
VK2XBP
That totally went over my headSo you open and close a PWM signal to produce a sine?
On a scope you see the 50Hz at one scale, and then zoomed, you start to see square edges from the pic? because after all, the output is binary.
Do you then filter the output and get it round?
Hi Art,
Yes, the PWM output is passed through a second order low pass filter. In my case I used a Sallen-Key LPF.
Cheers
Barry
VK2XBP
Bookmarks