>I use only flash devices (16F628, F870 & F877) and I have used precisely >variable that controls the relays. > >Assuming the life of each location in the EEPROM is one million >erase-write cycles, if the status of the relay changes 100 times per >day, then the device will last for more than 27 years! Even assuming I >continue to use the gadget, I can switch to another location in the >EEPROM for another 27 years!! The 16F87X data-sheet shows the life of the EEPROM as 100,000, not 1 million, at 5V and 25degC. So, on that series of chips the life would be less than 3 years and, if the temperature gets hotter than 25C the life will be shorter. Paul -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu