Hi Tauno, Try Roman's page at http://www.romanblack.com/one_sec.htm Should be easy to adapt to your needs. > Hi! > > I'm designing a car rally trip computer with PIC16F876. However, I've > not got very far yet. Biggest problem seems to be keeping track of time > accurately. > > I'm running PIC with 4MHz crystal oscillator and I've been trying to > implement a clock using TMR2 interrupt. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body