Skip to content
BetterDL

EEPROM

Also called: E²PROM, E2PROM, electrically erasable PROM, electrically erasable programmable read-only memory

Electrically erasable programmable ROM: non-volatile memory that can be erased and rewritten electrically, in place, down to individual bytes.

An EEPROM keeps the floating-gate storage of the EPROM but erases electrically. No ultraviolet lamp, no removing the chip: the circuit itself can erase and rewrite it.

Its defining feature is fine-grained rewriting: individual bytes can be changed without disturbing their neighbors. That makes it ideal for small amounts of data that change now and then and must survive power-off:

  • calibration values
  • user settings in appliances and car electronics
  • serial numbers and configuration

Limits:

  • Slow writes compared with RAM: milliseconds per byte rather than nanoseconds.
  • Wear: each cell survives a limited number of erase cycles, typically hundreds of thousands to a million.
  • Larger cells than flash, so less capacity for the money.

Flash is its descendant. It gives up byte-level erasing (it erases in blocks) to gain density and cost. Both are non-volatile.

Worked example

Example

Saving one setting

A thermostat stores the user's target temperature, 1 byte, which changes a few times a day.

  1. 1.

    It must survive power cuts, so it needs non-volatile memory.

  2. 2.

    Only one byte changes at a time.

  3. 3.

    EEPROM can rewrite just that byte in place. Flash would have to erase and rewrite a whole block.

Common mistakes

  • Thinking EEPROM needs UV light. That's the EPROM; EEPROM erases electrically, in the circuit.

  • Treating EEPROM like RAM. Writes are far slower and each cell wears out after many erase cycles.

  • Mixing it up with flash. EEPROM erases byte by byte; flash erases in blocks.

Practice EEPROM

Interactive questions with instant feedback and a worked solution for every wrong answer.

Learn it step by step

EEPROM is taught in Memory.