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?
Type: Posts; User: pedja089; Keyword(s):
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?
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.
I spent all night trying to find the best way ... I think this is
If month=2 then
If year//4<>0 then
DMonth=29
else
...
I'm trying to add the calendar.
Does anyone have an idea how to make a calculation of leap year.
I tried this
If day>30+month.0 or (Month=2 and day>28 and year//4<>0) or (Month=2 and day>29 and...
I was playing with TimC RTC code, and I found 1 problem...
If the interrupt occurs between these lines
GoSub get_time ' Update minutes and seconds
TOGGLE LED_0
LCDOut...