naveed yusuf wrote: > can some one guide me how to get 50Hz pure sine wave > from PIC 16F84. i want complete code not the > subroutines and patches. pl help me if some body has > good working code. I desperately require it. thanks. I wrote: > Sorry, it is not possible to produce a pure sine wave with > a PIC16F84. Herbert Graf wrote: > I don't know why you'd say that. With some PWM and good low pass > filtering you can get a sine wave out of a PIC that is as good as most >"normal" ways of generating one. The limit really is what frequency you > need, this process only really works for sine waves in the 10k or lower > range (the lower the more pure). TTYL Which is all perfectly true. I've done it on a PIC16C5x, and the code is on my web page. But it's not what was asked for. He wanted "complete code", in fact, "good working code", to produce a "50 Hz pure sine wave". The requirement is impossible, and even if it were possible, who is going to volunteer to write the code for him? -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.