> Is there a way to save couple of bytes (8 or 10 bytes) > to eeprom just before power outage? You have to make sure that the power supply voltage is guaranteed to drop slowly enough. You need a minimum time from when low voltage is detected to when the voltage goes to the point where the PIC no longer functions. Note that EEPROM write is much slower than RAM write. You also need to add in the worst case latency from low voltage to it being acted upon in your code. Another thought is that you can't have brownout reset enabled and attempt to use the brownout detect to start saving data to EEPROM. In that case the chip will reset before your code ever runs. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body