> > but it seems to me that the on board comparator and switched resistor > > reference network could have given better resolution. > > No, it wouldn't have worked at all. The onboard reference only divides > Vdd, so wouldn't provide an independent reference for measuring Vdd (the > battery voltage). > > I'm probably wrong :o) But my thought was to use the resistor reference against a stable reference, such as a forward biased diode drop (maybe 2 or 3 to up the voltage). The thinking would be to sequentialy compare all the possible resistor reference points against the fixed reference. But as you said, you had pin usage constraints and such, so you couldn't use it either way. Denny -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu