I tossed my old mail out and can't find who started this thread but, I just uploaded the simple clock project which has two source codes. One uses TMR0 via interrupt to keep time, and the other uses the mains frequency. (more accurate) I also included a PDF file with a circuit diagram and an easy to make PCB design which will work with both methods with no modification. http://www.picnpoke.com/projects/clk.zip -- Best regards Tony mICro's http://www.picnpoke.com mailto:sales@picnpoke.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads