>> Anyway, i feel a bit uneasy about the EEPROM updating; what if i get an brown out reset while updating a multibyte definition... I have to read the supply voltage and not start writing if it is too low, so the the supply will have enougth power in caps if a power problem occours durig EEPROM update. Well I need to monitor supply anyway because of other reasons, and the F877 ADC is good for that. << Add a checksum to the EEPROM that gets updated last. On read, you re-init with hard coded defaults (or whatever) if the EEPROM appears to be invalid. You also get the first time initialization handled for free. ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@cognivis.com, http://www.cognivis.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.