Hot answers tagged

6

EEPROM is normally used to save data between power downs/ups or for backup (in case power goes down). So if you save some data (e.g. acquired by your sketch) to EEPROM, and the Arduino is powered on again (or not, that does not matter), the data is still in EEPROM and your sketch can continue with the data without losing anything. And it's a good thing ...


5

EEPROM is more expensive per bit than flash, so it's only used where it is needed. Sometimes the EEPROM is left out entirely, and applications that require EEPROM have to use an external chip or use some trickery to make flash pretend to be EEPROM. It doesn't make much sense to compromise 2048 Kbytes of flash for a few bytes of non-volatile memory. If I ...


3

The EEPROM is used for things that can change a lot, like storing some user configuration settings so they survive during reset or powerdown. It is not directly sitting on memory bus, but it is accessed via address and data register. Therefore code cannot be executed from it. It can be erased, read and written one byte at a time, and because it is EEPROM it ...


1

Flash and EEPROM technologies use different physics (Wikipedia explains this in some detail). That explains why flash is denser (and thus cheaper) but has less write cycles. You can on some chips use Flash from your programs to store information that fits this requirement (like implementing a music player). (And on some ARM-based microcontrollers, there is ...


Only top voted, non community-wiki answers of a minimum length are eligible