Thanks for that... It was just typo... 0-99 year is fine for this aplication.
On the top of ISR I have BSR=0, and isr routine is on top of my programm.
Thanks for that... It was just typo... 0-99 year is fine for this aplication.
On the top of ISR I have BSR=0, and isr routine is on top of my programm.
If I may suggest, make the minutes and hours update in your main loop and not in Interrupt. A temp variable wll be needed for this.
Ioannis
If pic loses power, it goes to sleep. And everything is shut off, only tmr1 is on. So i need that in ISR. Is there better way?
Bookmarks