> > 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. > Sounds like an overdue assignment to me. You might google for 'magical > sine', do some programming and apply a little (analog) filtering. It does indeed. If I had to put money on it I'd have to plump for that as highest probability. I also do not wish to encourage straight laziness and last minute please-do-my-assignment-for-me-ing. BUT Not too far behind would be: English as a second language with limited ability to express requirement succinctly, tried to make this work and can't, found all sorts of stuff on the web ("subroutines and patches") and it still doesn't pickle but, hey, this looks like a knowledgeable bunch of guys (and gals) - maybe THEY can help me here; I'll muster my limited English skills and ask them. But what the hey guys (and gals), number one seems the highest probability so lets go for that boots and all shall we? If it's right (as it probably is) we'll certainly put (presumably) him in his place, won't we. If it's wrong we'll probably scare him off on the first encounter and won't need to be bothered anyway. Lets do it! R :-( M PS: That said, magic sine and analogue filtering are an excellent suggestion for the problem as proposed. It seems a little improbable that this is in fact the true & complete problem though as a 555 or 4040 or ... and a better filter would do as well for that. Methinks some extra specification and client feedback is required. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.