Although I do not know of a way to "automatically" detect when it is full, it should be quite easy. Presumably, if you are building the board and coding the PIC, you know what size the eeprom is and how much you have already written to it. Something simple like this, just before your write command...
if MemoryAddress > $ffff - WRITESIZE then
MemoryAddress = 0
WriteAddress = WriteAddress + 1
if WriteAddress > MaxWriteAddress then goto FullTimeSleep
Endif
Bookmarks