The ideal design (no parts, or, at least, no additional parts) seems to be to use the low voltage detector in the PIC to generate an interrupt and save stuff away to eeprom as the power supply dies. The question is whether the power supply voltage falls slowly enough to do what needs to be done. I've done this in a couple products to save away a few bytes. Harold -- FCC Rules Updated Daily at http://www.hallikainen.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist