From: "naveed yusuf" > 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. Naveed (have I got that right?)(maybe I should use yusuf?) You may be surpised by the large number of interesting responses to your request People here are very happy to help people who are trying hard to work things out for themselves first before asking for help or who want help to learn how to do things for themselves, but are usually not so pleased if people seem not to have tried to find out how to solve the problem themselves first before asking. If you tell us what you are trying to use the result for and what you have tried yourself so far it may help people underatand your needs and see how you have been working towards solving them. Answers to some (or all) of the following questions may help: Have you tried doing this yourself and not suceeded? Have you looked on the web for possible solutions? Have you searched the excellent piclist archives at www.piclist.com? What is this solution for? Is it a class/school/university project or assignment or for a project of your own or ... ??? Why do you not want subroutines and patches? Are you familiar with PIC code? What other PIC projects have you done? Why do you want to do it with a 16F84 particularly? You say "pure sine wave". How pure do you NEED and why. No sine wave is truly pure - how pure you aim at depends on what you are trying to achieve. For example, you could low pass filter a 50 Hz square wave (which doesn't need a PIC) and get quite a good result with a good enough filter. You could use a "magic sine wave" sequence and get a better result for a given filter. You could control something like a Wien bridge oscillator - but you don't rwally need a PIC for this. Why 50 Hz? How exact? Why ?etc I hope these questions help you to tell us what you want to achieve and what you have done so far. regards Russell McMahon PS - If you offered to clean Olin's bathrooms he may be more inclined to help you :-) (That's a PICList joke - ask about it once you get the other problem sorted out). -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.