Could anybody advise me which is better solution: 1) To put battery on board and put additional circuit for putting PIC into sleep mode after it detects power failure Or 2) Design some sort of circuit that would store data in PIC's EEPROM after power failure. I assume you would have to put some capacitor to store enough power for PIC to save data to EEPROM. Am I right? Thank you, Sam -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist