98% accuracy won't cut it for any clock project I'm aware of. That would mean an inaccuracy of around 2 seconds a minute. Take a look at this code http://www.picbasic.co.uk/forum/showthread.php?t=190 This allows you to time down to 1/100th of a second with whatever accuracy your timebase (crystal) is. This is a hardware solution using hardware counters / timers that are included with many PICs. Much easier, and more accurate than counting instructions.
Bookmarks