Hej Bob Ammerman. Tack f=F6r ditt meddelande 14:47 2000-11-15 enligt nedan: >> Hmm... i should have checksum handling for EEPROM... > >Or just first write an 'EEPROM' is invalid flag to eeprom before changing >it, and then clearing the invalid flag when the write completes. > >On reset, if the 'invalid' flag is set you have to completely reinit the >related data in eeprom. Good idea. 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. Regards /Morgan -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.