Table of Contents
ToggleMask ROM, PROM, EPROM, EEPROM and flash all keep data without power, but each one is written and erased in its own way. Below are the cell physics, the diode matrix, the capacity maths and where each chip sits in plant hardware.
Read only memory comes in five families, and what separates them is how data gets written and whether it can ever be erased. Each one is covered with datasheet numbers, a solved capacity example and a selection flowchart.

What are the types of ROM in digital electronics?
Types of ROM in digital electronics are mask ROM, PROM, EPROM, EEPROM and flash. They differ in how data is written and erased: a photomask at the factory, a blown fuse, ultraviolet light, or Fowler Nordheim tunnelling for electrical erase. Capacity of any ROM is 2n × m bits for n address lines and m data lines. A 27C256 EPROM with 15 address and 8 data lines holds 262,144 bits, which is 32 KB.
What Is ROM and What Are Its Types?
ROM (read only memory) is non volatile memory that keeps its data with the power off, and the five types of rom are mask ROM, PROM, EPROM, EEPROM and flash. They differ in who writes the data, how often it can be rewritten and what it takes to erase it.
- Mask ROM is fixed by a factory photomask.
- PROM is one time programmable by blowing fuses.
- EPROM is erased by ultraviolet light at 2537 Å.
- EEPROM (by the byte) and flash (by the block) erase by Fowler Nordheim tunnelling.
- Capacity = 2n × m bits, so 15 address lines and 8 data lines give 32 KB.
Reading works the same way on all of them: you put an address on the pins and get a fixed word back, with no refresh and no battery. That is why ROM holds the boot code of a microcontroller and the firmware of a PLC.
How Does a Diode Matrix ROM Store Data?
A diode matrix ROM stores a 1 wherever a diode joins a word line to a bit line, and a 0 where there is none. The decoder drives one word line high, and each diode on that row pulls its bit line to 1.
In the 4 word by 4 bit example below, address lines A1 and A0 feed a 2 to 4 decoder, so only one of the word lines W0 to W3 is high at a time.

Put A1A0 = 10 and W2 goes high. Diodes sit on D3, D2 and D0 of that row, so those lines read 1, D1 stays at 0 V through its pull down resistor, and the output is 1101.
Each diode also blocks current into the unselected rows, the one way action covered in our guide to diode types. Inside a real mask ROM, MOS transistors take the place of the diodes.
The Computer History Museum records that the first EPROM, the Intel 1702 designed by Dov Frohman, held only 2048 bits when Intel announced it in 1971.
The 5 Types of ROM and How Each Is Programmed
The types of rom differ in the storage cell: a mask pattern, a fuse, or a floating gate transistor that traps charge.
Data is set by a mask during wafer fabrication. Any change needs a new mask.
The programmer blows a fuse in each cell that must change state.
Floating gate cell, programmed at high VPP and erased by UV through a window.
Thin tunnel oxide cell, written and erased electrically byte by byte.
EEPROM variant that erases a whole block at once, so the cell is smaller.
With mask ROM, the chip maker builds your data into a photomask. Masks cost a lot up front, so this only pays off on large, stable production runs.
The Computer History Museum records a 512 bit bipolar PROM from Radiation Inc in 1970, programmed by burning metal fuse links. A blown fuse cannot grow back, so a PROM is written once, which is why it is sold as OTP memory.
An EPROM cell is a MOS transistor with an extra floating gate buried in oxide. The AMD Am27C256 datasheet programs it with VPP of 12.75 V in 100 µs pulses, which push hot electrons onto the floating gate and raise the transistor threshold.
To erase it, AMD specifies 2537 Å ultraviolet light and a dose of 15 W·s/cm², about 15 to 20 minutes under a 12,000 µW/cm² lamp one inch away. The trapped electrons gain enough energy to escape, and the whole chip goes back to all 1s.
AMD warns that sunlight and fluorescent light can slowly erase an EPROM, since both contain wavelengths below 4000 Å. Put an opaque label over the window after programming.
The Computer History Museum credits Eli Harari at Hughes with the thin oxide EEPROM cell and George Perlegos with Intel's first EEPROM in 1978. A strong field moves electrons straight through that oxide by Fowler Nordheim tunnelling, so voltage alone writes and erases the cell.
Fujio Masuoka at Toshiba changed the EEPROM layout in 1980 so that large groups of cells erase together, and called it flash. He followed with the denser NAND structure in 1987, and NAND flash uses tunnelling for both writing and erasing.
What Is the Difference Between PROM, EPROM and EEPROM?
PROM is written once, EPROM is rewritten after a full UV erase off the board, and EEPROM is rewritten byte by byte in the circuit. The table compares all the types of rom on the points a designer checks.
| Type | Written by | Erased by | Erase unit | Endurance |
|---|---|---|---|---|
| Mask ROM | Chip maker | Cannot | None | Read only |
| PROM | User programmer | Cannot | None | One write |
| EPROM | Programmer at VPP | UV, 2537 Å | Whole chip | Limited |
| EEPROM | In circuit | Tunnelling | Byte or page | 1,000,000 (24LC256) |
| Flash | In circuit | Tunnelling | Block | 10,000 (ATmega328P) |
In practice, an EPROM comes out of its socket to be erased, while EEPROM and flash are updated in place through a serial port.
- Holds data for decades without power
- A software bug cannot overwrite mask ROM
- EEPROM and flash allow updates in the field
- Mask ROM and PROM cannot be corrected
- EPROM needs a UV eraser and a programmer
- Rewritable types wear out after rated cycles
Is Flash Memory a Type of ROM?
Yes, flash is an electrically erasable ROM, because it is non volatile and grew directly out of the EEPROM cell. That is why it sits among the types of rom even though you can write to it.
Phones call their whole flash chip "ROM". A microcontroller datasheet lists flash for program memory and a small EEPROM for data, part of the microcontroller vs microprocessor difference.
How to Calculate ROM Capacity from Address and Data Lines
ROM capacity in bits equals 2n × m, where n is the number of address lines and m the number of data lines. Each extra address line doubles the locations, the binary rule from our introduction to number systems.
27C256: n = 15, m = 8
Locations = 215 = 32,768
Bits = 32,768 × 8 = 262,144
Bytes = 262,144 ÷ 8 = 32,768
Size = 32,768 ÷ 1024 = 32 KB
AMD calls this 32K words by 8 bits, the same 256 Kbit. Working backwards, a 1024 × 8 memory needs 10 address lines, because 210 = 1024.

Enter the address and data line counts of any part below. To change the result into other units, use this data storage converter.
Count only address pins. Chip enable and output enable select the chip but add no locations.
Where Does ROM Sit in PLCs, Microcontrollers and Field Transmitters?
In plant hardware, flash usually holds firmware, EEPROM holds small settings, and boot code sits in a read only area. Knowing which of the types of rom holds what tells you what survives a power cut or an update.
For PLCs, see our notes on PLC retentive memory, the PLC block diagram and PLC memory addressing. In a smart transmitter, configuration sent over HART must survive loop power off, a typical EEPROM job because the data is small and changes rarely.
Microchip rates the 24LC256 serial EEPROM for more than 1 million erase and write cycles and more than 200 years of data retention.
Endurance and Data Retention of the Types of ROM
Endurance is how many erase and write cycles a cell survives, and retention is how long it then keeps data. Both come from the datasheet and both fall as temperature rises.
The ATmega328P datasheet lists 10,000 cycles for flash and 100,000 for EEPROM, and retention of 20 years at 85°C or 100 years at 25°C. Each tunnelling event wears the oxide a little.
Firmware updated a few times will never reach 10,000 cycles, but a value written on every PLC scan can use up 1 million cycles within days. Write only when the value changes.
How to Choose Between the Types of ROM
Ask three questions: will the data ever change, must it change in the circuit, and how big is each update. The flowchart turns those answers into a choice between the types of rom.

- Read the chip and save a copy before you erase anything.
- Run a blank check after UV erase, since a partly erased EPROM fails verify.
- Keep the supply steady during a flash update.
- Match part number, voltage and package before ordering a spare.
| Symptom | Likely cause | Check |
|---|---|---|
| EPROM data corrupt | Window uncovered | Label, reprogram |
| Settings lost | EEPROM worn out | Write rate in code |
| Dead after update | Power lost in erase | Bootloader, supply |
| Repeating data | Stuck address line | A line continuity |
| Verify fails | Incomplete UV erase | Blank check |
A stuck address line folds the upper half of memory onto the lower half, so data repeats at a regular interval. A logic probe and our notes on digital logic gates help you find which line it is.
Before an interview, try our industrial electronics questions on memory and logic. For volatile storage, see flip flop types.
Types of ROM FAQ
The 5 types of rom are mask ROM, PROM, EPROM, EEPROM and flash. Factory boot code uses mask ROM, and the 27C256 is a classic UV EPROM.
The 24LC256 is a common serial EEPROM, and the ATmega328P keeps its program in 32 KB of flash.
EPROM is erased by ultraviolet light, the whole chip at once and out of the circuit. EEPROM is erased electrically, one byte at a time, on the board.
AMD needs 15 to 20 minutes under a UV lamp, while a 24LC256 writes a page in 5 ms.
Raise 2 to the number of address lines and multiply by the number of data lines. With 15 address lines you get 32,768 locations.
With 8 data lines that is 32,768 × 8 = 262,144 bits, which is 32 KB.
The quartz window lets ultraviolet light reach the floating gates so the chip can be erased. AMD specifies 2537 Å light and 15 W·s/cm² for a full erase.
Cover it with an opaque label after programming, because room light slowly erases data.
It depends on the part, so always read the endurance line in the datasheet. Microchip rates the 24LC256 serial EEPROM for more than 1 million erase and write cycles.
The ATmega328P is rated for 10,000 cycles on its flash and 100,000 cycles on its EEPROM.
EEPROM is usually the best fit, because calibration data is small and changes only when you calibrate. Each byte can be rewritten on its own without touching the rest.
Flash suits firmware, which changes rarely and in large blocks, and mask ROM suits code that never changes.
Related Articles
- Microcontroller Working Principle
- PLC Retentive Memory and Data Retention
- Encoder vs Decoder in Digital Logic
- Digital Logic Gates
- What Is a Smart Transmitter
External References
- Microchip 24LC256 256K I2C Serial EEPROM Datasheet (PDF)
- Computer History Museum: Reusable Programmable ROM Introduces Iterative Design Flexibility
- Wikipedia: Read only memory
What We Learn Today
- The five types of rom are mask ROM, PROM, EPROM, EEPROM and flash, and they differ in how data is written and erased.
- EPROM is erased by 2537 Å ultraviolet light, while EEPROM and flash use Fowler Nordheim tunnelling through a thin oxide to erase electrically.
- Memory capacity equals 2 to the power of address lines times data lines, so a 27C256 with 15 and 8 lines holds 32 KB.

