I spent all night trying to find the best way ... I think this is
And everywhere there is any = 0, I replaced the @ clrf, +1 replaced with @ incf.Code:If month=2 then If year//4<>0 then DMonth=29 else DMonth=28 endif else Dmonth=30+month.0 endif If day>Dmonth then @ CLRF _Day @ INCF _Month,F If month>12 then
The end result was the RTC which consumes about 2uA and code size about 500B.![]()
Bookmarks