Count EEPROM write cycle by one or two?

Hi all,

I have an Uno board.
In my project I'd like to count every write/erase cycle and save it in the first byte of EEPROM.
If I write other byte in EEPROM I increase the value of write cycle counter by one.

My question:
If I write 2 different values in EEPROM at the same time, should I increase the byte 0 ( counter of all write/erase cycle ) by one, or 2?

Thanks in advance!

1 Like

If you mean the lifetime of EEPROM, then for each cell it is calculated separately

A count of 100,000 will not fit in a byte :slight_smile:

If you're worried about wearing out of EEPROM cells due to the writes, you can read up on wear leveling. I think that there is even a library for it.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.