I have made a clock (using PIC16F870 & DS1302 RTC) which works fine.
However, when power is lost to the circuit, the clock looses the time and start's up in its 'set the time' routine. Now I have found a way to attach a backup battery to the DS1302, but I do not know how to get the PIC to skip the 'set the time' routine. From what I can gather this can be done with brown out detection. But I don't understand how that works - or how you set a different start point for the program to run (ie not go through the 'set the time' routine when power comes back)
Any and all help really appreciated!
Bookmarks