Is there a way to save couple of bytes (8 or 10 bytes) to eeprom just = before power outage? * I am using MPLAB C18 (the software is in C) * The unit is working with 220V AC converted to 12V DC then 5V DC. * Configuration bit is set so power on reset on, brown out detection on, = brown out voltage 4.2, oscillator H4 (10MHz xtal working at 40MHz). I looked up the datasheet, according to page 27, I checked the RCON = registers POR bit (that is the only one affected with brown out for some = reason) and saved 8 bytes to eeprom if the POR bit was 1. I did this at = the very first thing in the main() procedure. However, it did not work. = Any ideas? If anyone is interested the product can be seen at: = http://www.teksan.com.tr/vana.asp?L=3DE&Id=3D0401 or goto http://www.teksan.com.tr, select product then bathcing = solutions. Thanks, =D6mer YALHI oyalhi@teksan.com.tr http://www.teksan.com.tr/ Tel : +90 212 613 22 00 Fax: +90 212 544 70 35 -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body