On Tue, 19 Mar 2002, Kevin Olalde wrote: > I'm using some sample code found at: > > http://www.piclist.com/techref/microchip/intsample.htm You might want to search the archives for a thread we saw last year about "zero error" clocks. There was a really neat method proposed, I think, by Roman Black (I could be wrong). You use an interrupt of whatever frequency you want and get a clock whose "long-term" accuracy over more than a few seconds will be equal to the crystal accuracy. Simple, works like a charm, and you can find a C implementation if you search for my posts over the past 30 days or so, I just posted it for someone else. Dale -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics