Examine electrically erasable programmable read-only memory, its operation, and role in non-volatile data storage in electronics.
The EEPROM (*Electrically Erasable Programmable Read-Only Memory*) is a non-volatile memory, meaning it retains data without power, which can be electrically erased and rewritten, even one byte at a time. When a device is turned off, settings, serial numbers, and calibration parameters must remain: for this reason, an EEPROM is used, either inside microcontrollers or as a separate integrated circuit [1][2][3][4].
Each cell is a MOS transistor with a floating gate, a silicon electrode completely isolated by oxide, placed between the channel and the control gate. The electric charge trapped in the floating gate shifts the transistor's threshold voltage: with negative charge, the transistor requires a higher voltage to conduct. The two threshold states represent bit $0$ and bit $1$ [1][2].
- Writing: a high voltage (about $12$-$20\ \mathrm{V}$, generated by an internal charge pump) causes electrons to pass through the thin oxide by tunnel effect (*Fowler-Nordheim*) toward or away from the floating gate. Erasing uses the same mechanism in the opposite direction.
- Reading: an intermediate voltage between the two thresholds is applied to the control gate, and it is observed whether the transistor conducts. Reading does not alter the charge and is fast, similar to RAM.
- Byte-wise erasing and writing, unlike flash memory, which erases entire blocks.
- Write time of a few milliseconds per byte, much longer than read time (tens of nanoseconds).
- Endurance: each write stresses the oxide, which degrades over time and holds charge less effectively; typical values range from $10^{5}$ to $10^{6}$ write cycles per cell.
- Data retention: typically $10$-$100$ years at room temperature, decreasing at high temperature and after many cycles.
- Interfaces: parallel types, or serial (I2C, SPI, *Microwire*) with few pins, used for small amounts of data [1][2][3].
In the ideal model, memory can be read and written infinitely without loss. In the real component, cycle and retention limits are design constraints: data that changes frequently is not saved at every variation.
A device saves a value every $10$ minutes in the same cell, with endurance of $10^{5}$ cycles (value hypothesized from the datasheet).
1. Writes per day: $24\cdot6 = 144$.
2. Lifespan: $10^{5}/144 \approx 694$ days, about $1.9$ years.
3. With one write per hour: $10^{5}/24 \approx 4167$ days, about $11.4$ years.
4. With rotation among $N = 10$ cells (*wear leveling*, wear distribution) the lifespan under conditions of one write every $10$ minutes becomes ten times longer, about $19$ years.
The result explains the usual technique: avoid rewriting the same cell, write only if the value changes, and keep the data in volatile memory as long as possible.
A write interrupted by a power drop can leave a corrupted value. This is prevented with simple techniques: storing each value with a checksum, keeping two alternating copies and considering valid the last one with a correct check, or completing the write only if the supply voltage is above a threshold. Many circuits also have a write-protect pin, which prevents accidental modifications.
Flash is an evolution of EEPROM with more compact cells and block erasure: it costs less per bit and has much larger capacity, but does not allow modification of a single byte without rewriting the block. EEPROM remains preferred for small amounts of data frequently modified, due to its ease of use.
It is used for configuration parameters, calibrations, identifiers, security codes, counters, and small tables in devices, boards, sensors, computer memory modules (identification information), and smart cards.
[1] Wikipedia (en): EEPROM
[2] Wikipedia (fr): Electrically erasable programmable read-only memory
[3] Wikipedia (de): Flash-Speicher
[4] Wikipedia (en): Flash memory
Generating summary…