Real Time Clock On Timer1
Posted: Wed Aug 31, 2011 7:27 pm
Hi,
Iv been reading up on making a RTC using Timer1, I see that what i need to do is connect a 32.768khz crystal to T1OS1 and T1OS0, along with a few other components.
In flowcode it gives the option in Timer1, TRANSISTION ON T1CK1 PIN.
So now i guess that the timer is counting the pulses on the 32.768khz crystal. Heres where im confused, underneath it has my clock frequency of 16Mhz, im also using PLL.
How would i go about setting it up so that the intterupt frequency is a nice round number, so as to give an accurate RTC.
Iv been reading up on making a RTC using Timer1, I see that what i need to do is connect a 32.768khz crystal to T1OS1 and T1OS0, along with a few other components.
In flowcode it gives the option in Timer1, TRANSISTION ON T1CK1 PIN.
So now i guess that the timer is counting the pulses on the 32.768khz crystal. Heres where im confused, underneath it has my clock frequency of 16Mhz, im also using PLL.
How would i go about setting it up so that the intterupt frequency is a nice round number, so as to give an accurate RTC.