Figure 1. IC1, theMAX931comparator, monitors the main supply voltage. It also turns on the backup battery by grounding its negative terminal when the main supply drops below 7.4V.