If you are interested in changing your approach, I posted some picbasic pro programs that can keep time at +/- 2 seconds per day (no RTC required). These are in the “Code Examples” Section at:
(Easy and Accurate Clocks without RTC IC)
http://www.picbasic.co.uk/forum/showthread.php?t=2129.
Both programs require a 4.000MHz Crystal, use TMRO, but do not require preloading counters. The programs are short as well. Good Luck.
Paul Borgmeier
Salt Lake City, Utah
USA
Bookmarks