I have committed my idea for a RTC. Please take a look at 18f452_timer3_rtc
It currently only counts seconds/mins, and is made for 20mhz osc. basically I take timer3 and allow it to count forever. timer3 will rollover 38.14697265625 times per second so I count one second each 38 interrupts, and also count the remainder (decimal places), when the remainder goes over 1 second, I remove 1 second from the time. I can't be sure how accurate it actually is because I don't have an accurate 20mhz osc, but the theory is there. Matt. -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
