1Hz Clock Generator using PIC12F675
1Hz Clock Generator using PIC12F675
The concept is using 32.768kHz crystal as a clock for the PIC. Therefor, the internal instruction clock is 32768/4 = 8192 Hz. By using the 16 bit Timer1 to count the instruction clock cycles, the interrupt will occur every 8 second. This period can be reduced by setting initial value of the Timer1 (TMR1H:TMR1L).
   1Hz Clock Generator using PIC12F675
at picnote.blogspot.com