xyzabcpqr
Junior Member level 3
Hello all,
I am currently working on PIC16F1937 . My project is Digital clock alarm with several additional features...Due to cost issue instead of using RTC Chip, I am using 32.768KHz as Timer-1 external crystal oscillator to increment time of digital clock and 4 MHz internal osc for system osc. frq. I am using PICDEM2PLUS demo board in which 32.768KHz connected with two 22pf cap.
In the application, the Clock, alarms and snooze works well. but I found that my clock is going fast by 30 sec in 60 Hours.. It is pretty less accurate..
I found reading several threads regarding this topic, that Timer1 - 32.768KHz oscillator is not reliable in-terms of accuracy. How can i increase the accuracy of clock using the same concept.(using timer1 only)?
One more thing is, in my circuit, I have used 10 switches .. every time with the clock update function,i read the switches.. So is it possible,because of that it adds the overhead timing ?
Please guide me. Thanks in advance..
I am currently working on PIC16F1937 . My project is Digital clock alarm with several additional features...Due to cost issue instead of using RTC Chip, I am using 32.768KHz as Timer-1 external crystal oscillator to increment time of digital clock and 4 MHz internal osc for system osc. frq. I am using PICDEM2PLUS demo board in which 32.768KHz connected with two 22pf cap.
In the application, the Clock, alarms and snooze works well. but I found that my clock is going fast by 30 sec in 60 Hours.. It is pretty less accurate..
I found reading several threads regarding this topic, that Timer1 - 32.768KHz oscillator is not reliable in-terms of accuracy. How can i increase the accuracy of clock using the same concept.(using timer1 only)?
One more thing is, in my circuit, I have used 10 switches .. every time with the clock update function,i read the switches.. So is it possible,because of that it adds the overhead timing ?
Please guide me. Thanks in advance..