> we have a simple board based on pic 16f877. a lithium battery > powers the circuit. the spec for the battery specifies that if the > battery ever goes below 3v, the battery would be permanently > damaged. > > now, how to constantly monitor the remaining power? how to > turn off the circuit when the battery power reaches the 3v range? > can we do this without adding too many components? The easy way would be to measure the battery with the 877's own ADC. With built-in comparators and voltage references available you should be able to figure something out -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads