Flash memory is a non-volatile data storage technology found in SSDs, smartphones, and more. Learn how NAND and NOR flash work, their differences, applications, and why flash memory wears out over time.
Flash memory is a data storage technology that allows information to be retained even after complete power loss. It is used in SSD drives, smartphones, USB flash drives, memory cards, and chips containing firmware for electronic devices.
There are two main types of flash memory: NAND and NOR. Both use similar physical principles for storing information, but differ in cell architecture, data access speed, recording density, and production cost.
Let's explore how flash memory works, why an electric charge can be retained inside a chip without power, how NAND differs from NOR, and why these devices have a limited number of rewrite cycles.
Flash memory is a type of non-volatile semiconductor memory where information is stored as an electric charge. Unlike RAM, it does not require constant power to retain recorded data.
Inside the chip are millions or even billions of memory cells built using special transistors. Two main technologies are used to store the charge:
A classic floating gate transistor consists of several elements:
The stored electric charge changes the transistor's threshold voltage - the voltage needed to open its channel. Electronics determine what information is stored in a cell by measuring this parameter.
Insulating layers prevent electrons from moving freely, so the charge can be preserved for years even without power. Electrical energy is only needed for writing, reading, and erasing data.
However, the charge is not preserved indefinitely: over time, some electrons may escape the storage area, gradually altering the cell's state.
Flash memory works by controlling the number of electrons inside a cell. The chip uses electrical pulses of different voltages to change and detect the cell's state.
During writing, a high voltage is applied to the transistor. The electric field causes electrons to overcome the insulating barrier and enter the floating gate or charge trap.
Depending on the memory design, this is achieved using quantum tunneling or hot electron injection. The stored charge changes the transistor's threshold voltage, setting a new logical state for the cell.
During reading, the chip applies a specific voltage to the control gate and checks if electric current flows through the transistor's channel.
In the simplest single-level cell, there are two states:
Multi-level cells use several threshold voltage ranges, allowing multiple bits of information to be stored in one transistor.
To erase data, an electric field is created that removes the stored electrons from the charge storage area. The threshold voltage returns to its original range.
A unique feature of NAND memory is that data is written in pages and erased in entire blocks. To change already written information, the controller often needs to move valid data to a free block and clear the old one for reuse.
The main difference between NAND and NOR memory lies in the way transistors are connected within the memory array. The architecture determines data access speed, cell density, and storage cost.
In NAND Flash, transistors are connected in series to form chains of cells. This design requires fewer contacts and allows more cells to be placed on the chip surface.
Data is read and written in pages and erased in blocks. NAND is well suited for storing large volumes of information thanks to its high recording density and low cost per gigabyte.
In NOR Flash, cells are connected in parallel to read lines. This architecture provides fast random access to individual memory addresses but occupies more chip area.
NOR allows the processor to execute code directly from memory without first copying it to RAM. This mechanism is called Execute in Place (XIP).
| Characteristic | NAND | NOR |
|---|---|---|
| Cell connection | Serial | Parallel |
| Storage density | High | Lower |
| Random read | Slower | Fast |
| Large data writes | Fast | Slower |
| Data erasure | By blocks | By sectors or blocks |
| Cost per gigabyte | Low | High |
| Direct code execution | Usually not supported | Supported |
| Main use | File storage | Firmware storage |
NAND is focused on compact and cost-effective storage of large data volumes, while NOR is used where fast access to specific memory areas and direct program code execution are important.
NAND and NOR are used in different electronic devices, as the requirements for storing user files and program code vary greatly.
NAND is used in devices that require large memory capacity, such as:
Depending on the number of bits stored per cell, NAND memory is divided into several types:
| Memory Type | Bits per cell | Number of states |
|---|---|---|
| SLC | 1 | 2 |
| MLC | 2 | 4 |
| TLC | 3 | 8 |
| QLC | 4 | 16 |
| PLC | 5 | 32 |
Increasing the number of bits per cell lowers storage costs but complicates data reading and typically reduces rewrite endurance.
3D NAND technology is also used to boost capacity, stacking cells in vertical layers. This increases chip capacity without proportionally increasing chip area.
NOR Flash is mainly used for storing program code and system data, such as:
Both types of memory can be used in one device. For example, a computer may store UEFI firmware in a NOR Flash chip, while the operating system, apps, and user files reside on an SSD with NAND memory.
Flash memory has a limited number of program/erase (P/E) cycles. During each cycle, electrons pass through a thin insulating layer under strong electric fields.
Over time, defects accumulate in the dielectric, reducing the cell's ability to hold a charge. As a result, the transistor's threshold voltage changes, read errors increase, and data retention time decreases.
Flash memory endurance depends on:
To extend drive lifespan, controllers distribute load across cells, correct read errors, and replace damaged blocks with reserves.
You can learn more about these mechanisms in the article Why SSDs Degrade: Understanding TBW, NAND Memory, and Wear Leveling.
Flash memory can retain information without power for several years, but the exact period depends on the chip type, its wear level, and storage conditions. Therefore, SSDs, USB flash drives, and memory cards are not recommended as the sole location for important data.
NAND and NOR flash memory store data without power thanks to the ability of transistors to hold an electric charge in an isolated region. By changing this charge, chips write data; by measuring the threshold voltage, they read it.
NAND provides high storage density and low cost per gigabyte, which is why it's used in SSDs, smartphones, and memory cards. NOR offers fast random access and is better suited for firmware storage and direct code execution.
Despite being non-volatile, flash memory has limited rewrite endurance and does not guarantee perpetual data retention. When choosing a storage device, it's important to consider not only capacity and speed, but also longevity, and to regularly back up important files.