Hello!
In my project I need to use a serial EEPROM. This EEPROM can be either written in byte mode or page mode.
If using the byte mode, it's easy to use, but this will minimize the life time, since the whole page is rewritten after writing one byte in a page. That causes in my case 128 write cycles for each cell when writing a whole page.
Has somebody already worked on this issue?? I found, that the data for accessing the I2C devices is buffered twice (txBuffer in wire.cpp and twi_masterBuffer in twi.c) for writing and reading.
I think it should be possible to deal with only one buffer instead of for (two for reading two for writing) buffers. If this is possible, than the size of the buffer can be increased to save the data for a page for 128 or 256 byte.
I assume, that I am not alone with this problem, so I am asking here, before starting own implementations.
Best regards
Hans-Joachim