Using Pic as a digital clock/timer. How accurate?
Hello,
I am trying to use the pic as a clock timer that displays the time hour and minutes but also i would like it to have a featured timer that the user can set. The timer will activate a motor.
will the time be accurate enough?
I am using the pic basic pro and the usb programmer.
What's the easiest way to get this done? any suggestions is appreciated.
Thanks
Have a happy new year, Rocky !!!
Hi, Rocky
I just built Thermo-baro-clock with a MS5534 sensor.( 16F876 ) the clock is driven by a 32.7... khz "clock crystal" connected to RC0,RC1 pins and using TMR1 ovf interrupt.
The only way to adjust reading is to trim the TMR1 preset ( 32768 ...in theory ). an adjustable capacitor parallelled to one of the xtal load caps could also help a bit.
Possible also to use two pushbuttons to inc/dec the TMR preset value, you then store in the EEPROM ... but do not forget to limit the trim range !!!
But as always ... no simple automatic trimming.
Absolute references will always be our main headaches ... cause there's none naturally existing !!!
best regards
Alain
Happy New Year Acetronics
Thanks guys for all the help and links. I found a chip that does all the hard work for me on top of that it is featured with 2 alarm settings.
http://pdfserv.maxim-ic.com/en/ds/DS3232.pdf
I will give it try and will see how it goes.
Thanks again