I have implemented a real time clock in software, not the first time I've done this but the first time using the primary xtal oscillator.
I'm using a 4.096Mc's xtal for the instruction clock and timer1, no interrupts just polling one of the bits.
Accuracy is out by a few seconds a day.
Would I get better accuracy using a 32.768Kc xtal on timer1's oscillator?, if I use the pic's internal oscillator for the instruction cycle I'd free up 2 pins for timer1's external osc.
I'm using a 4.096Mc's xtal for the instruction clock and timer1, no interrupts just polling one of the bits.
Accuracy is out by a few seconds a day.
Would I get better accuracy using a 32.768Kc xtal on timer1's oscillator?, if I use the pic's internal oscillator for the instruction cycle I'd free up 2 pins for timer1's external osc.
Last edited: