K8048 clock/timer question

Hi,
I’m trying to write a program that triggers a simple task at a predefined time within 10 days.
Since the PIC is battery powered, I tried to use WDT but its accuracy was pretty bad (in a simple test, it triggered after ~17 minutes instead of 500x2.304s = 19min12s).
Is there any alternative for WDT that is also power efficient but with higher accuracy?
After 10 days, I’d like the timer to deviate no more than ~10 seconds.
Perhaps I could use some kind of external clock that pulses every second?
I’m currently testing the PIC16F627 on the K8048 itself and I use MikroC to compile my code.
Looking forward to see your opinion.
Thanks

If you are using the internal clock it is not very accurate especially for long count down duration’s.
You should be using an external clock of high accuracy or an external crystal to achieve the kind of precision you are seeking.

FWIW

jer :slight_smile:

Thanks gerald.
I used an external crystal and it works great.

Sweet!!!

jer :slight_smile: