xorcise
Full Member level 2
pic 16f88 xtal
I posted 4 precision RTC methods using the PIC's external oscillator. 2 of them use Timer1. They are as accurate as any other RTC, and since they are interrupt based you can use them for other typical non-interrupt based microcontroller functions.
While the code is written in mikroBasic, the registers are very transparent in the code and easily understood to be made into assembly. The Timer1/CCP example is my recommendation. Once the registers are set up it's no problem to keep accurate time.
And what's happening to electronics these days.... does anyone actually build a real circuit anymore?
I posted 4 precision RTC methods using the PIC's external oscillator. 2 of them use Timer1. They are as accurate as any other RTC, and since they are interrupt based you can use them for other typical non-interrupt based microcontroller functions.
While the code is written in mikroBasic, the registers are very transparent in the code and easily understood to be made into assembly. The Timer1/CCP example is my recommendation. Once the registers are set up it's no problem to keep accurate time.
And what's happening to electronics these days.... does anyone actually build a real circuit anymore?