Hi,
See this link:
http://www.qsl.net/zl1bpu/MICRO/CLOCK/index.htm
From the above link:
When the AC supply fails, D3 conducts, D4 is reverse biassed, and the
clock continues to operate from the battery with no loss of time.
However, since R2 is no longer able to keep micro input PD2 (pin 6) high,
the micro detects power failure and displays a "BATT" message. The battery
can be a small alkaline 9V type if power failures are rare, and will last
normal shelf life. If power failures are frequent or the clock is used as a
portable time source, a 6-cell 500mAH or better NiCd or NiMH battery pack is
recommended. R1 can be added to slowly charge the battery from the AC supply.
Schematic:
http://www.qsl.net/zl1bpu/MICRO/CLOCK/CLOCK2.GIF
* * * *
Best regards,
Luciano
Bookmarks