← How Computers Work lessons

How flash memory traps electrons

Each bit is a tiny cage for electrons. Push them in, lock the door, and they stay put with the power off.

Interactive 3D cross-section of four flash memory cells being written, read and erased

This is the text version. With JavaScript on, it’s a 3D drawing you can play, slow down and turn.

Step by step

  1. Write. To store a bit, the chip puts a high voltage on the control gate. Electrons from the silicon are pulled up through a thin insulating wall into the floating gate, a tiny cage with no wires to it. Drawn as a few big dots; a real cell is far too small to see.
  2. Hold. Power off. The floating gate is wrapped in insulation on every side, so the electrons have nowhere to go, and they stay for years. Turn the wear up and a worn cage lets a few leak out.
  3. Read. To read, the chip puts a gentle voltage on the control gate. In an empty cell that opens a path and current flows. Trapped electrons push back and keep the path shut. Current reads as a 1, no current as a 0.
  4. Erase. To erase, the chip puts a strong voltage on the silicon and pulls the electrons back out of every cage in the block at once. Flash can’t erase just one cell. Wiping a whole block at once reminded its inventors of a camera flash, which is where the name came from.

From the lesson

How does a chip keep data with the power off?

By trapping electrons in tiny insulated cages that hold them for years. That’s flash memory, the same stuff in USB sticks and phones. Jenny’s SSD is a lot of it, plus a smart controller, with no arm and nothing to spin.

Lesson 11.1: Trapping Electrons

Don’t SSDs wear out?

They do, slowly and evenly, and they keep a health report you can check. For normal use, the rated limit is many years away. Jenny’s math says Grandma Ruth’s recipes aren’t the threat. Not having a backup is.

Lesson 11.3: Wearing Out

More 3D drawings

All How Computers Work lessons · See it in 3D