I read it as this : *If* there are more writes to the EEPROM then the D124 parameter specifies, *and* there are any cell *not* written during this writes, the EEPROM has to be refreshed. So, you don't actualy has to rewrite *all* cells, not even all *used* cells, just those that hasn't been written during the last D124 writes (that is, since the last refresh). The other cells has been "refreshed" anyway. Now, it might be easier to rewrite all cells then to keep track of which cells has been written since the last refresh. And, if all used cells are written with an intervall < D124, you don't have to refresh anything. This has an impact on my current project where I have a fixed "table" in EEPROM. Maybe better to move the table (64 bytes) to Flash space. Jan-Erik. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.