KeithWalker
- Joined Jul 10, 2017
- 2,803
You are always writing the same number of bytes on every reset. On restart, read the eprom, 12 bytes at a time. When you find no more data, save a pointer in ram to that position. The last data before that is valid. On reset, save the 12 bytes, starting at the pointer.
When the pointer indicates that the eprom is almost full, erase all the data and start again.
When the pointer indicates that the eprom is almost full, erase all the data and start again.