1Hz Clock Generator using PIC12F675



Based on the idea from http://www.josepino.com/pic_projects/?timebase I have created a 1Hz Clock Generator. I use PIC12F675 as it’s available locally. Its price is just about US$1.
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 – [Link]

Leave a Reply