Types of ROM: PROM, EPROM, EEPROM Table & Calculator

Share:
Digital Electronics
Types of ROM in Digital Electronics: Mask ROM, PROM, EPROM, EEPROM and Flash with Capacity Calculator

Mask 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.

Mask ROM PROM and EPROM EEPROM and Flash Capacity Calculator Selection Table

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.

Hello everyone, today we are going to learn the types of rom used in digital electronics, how each one is programmed and erased, and how to calculate memory capacity.
types of rom
Quick Answer

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.

Key Facts
  • 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.

Advertisement

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.

diode matrix ROM circuit with 2 to 4 decoder word lines and bit lines
Diagram by Instrumentation Blog showing a 4 word by 4 bit diode matrix ROM with a 2 to 4 decoder, pull down resistors and the stored data table.

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.

Do You Know?

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.

Mask ROM

Data is set by a mask during wafer fabrication. Any change needs a new mask.

Best for: Fixed code in very large volumes
Factory
PROM (OTP)

The programmer blows a fuse in each cell that must change state.

Best for: Small runs of fixed code
Once
EPROM

Floating gate cell, programmed at high VPP and erased by UV through a window.

Best for: Prototypes and legacy cards
UV erase
EEPROM

Thin tunnel oxide cell, written and erased electrically byte by byte.

Best for: Settings and calibration
Byte erase
Flash

EEPROM variant that erases a whole block at once, so the cell is smaller.

Best for: Program memory and logs
Block erase

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.

Quick Tip

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.

Apply fieldHigh voltage across the tunnel oxide
Electrons tunnelCharge moves onto or off the floating gate
Threshold shiftsTrapped charge raises the threshold
ReadThe cell conducts or not, giving 1 or 0
Advertisement

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.

TypeWritten byErased byErase unitEndurance
Mask ROMChip makerCannotNoneRead only
PROMUser programmerCannotNoneOne write
EPROMProgrammer at VPPUV, 2537 ÅWhole chipLimited
EEPROMIn circuitTunnellingByte or page1,000,000 (24LC256)
FlashIn circuitTunnellingBlock10,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.

Advantages of ROM
  • Holds data for decades without power
  • A software bug cannot overwrite mask ROM
  • EEPROM and flash allow updates in the field
Limitations of ROM
  • 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.

Myth: ROM can never be written.
Fact: Only mask ROM is truly read only; the other types of rom can be written.
Myth: Flash is just another RAM.
Fact: RAM loses data at power off; flash keeps charge on its floating gate.
Myth: EEPROM can be written every scan safely.
Fact: Each cell has a rated endurance, and a value written every loop can wear it out.

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.

Capacity = 2n × m bits
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.

types of rom capacity formula infographic with 27C256 EPROM solved example
Diagram by Instrumentation Blog showing the ROM capacity formula and the 27C256 solved example from 15 address lines and 8 data lines to 32 KB.

Enter the address and data line counts of any part below. To change the result into other units, use this data storage converter.

ROM Capacity Calculator (address and data lines)
Memory capacity
32,768 locations x 8 bits = 262,144 bits = 32 KB
Quick Tip

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.

PLC CPU
Firmware in flash; many CPUs keep the program on flash or a memory card.
Microcontroller
The ATmega328P has 32 KB of flash, 1 KB of EEPROM and 2 KB of SRAM.
Smart transmitter
Firmware in flash; tag, range and trim in non volatile memory.
Serial EEPROM
A 24LC256 stores setpoints over I2C.

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.

Do You Know?

Microchip rates the 24LC256 serial EEPROM for more than 1 million erase and write cycles and more than 200 years of data retention.

Advertisement

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.

>1,000,00024LC256 write cycles
>200 years24LC256 retention
10,000ATmega328P flash cycles
20 yearsATmega328P at 85°C

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.

flowchart to choose mask ROM PROM EPROM EEPROM or flash memory
Diagram by Instrumentation Blog showing a flowchart that selects mask ROM, PROM, EPROM, EEPROM or flash from three questions about code changes and updates.
  • 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.
SymptomLikely causeCheck
EPROM data corruptWindow uncoveredLabel, reprogram
Settings lostEEPROM worn outWrite rate in code
Dead after updatePower lost in eraseBootloader, supply
Repeating dataStuck address lineA line continuity
Verify failsIncomplete UV eraseBlank 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.

PDF
Microchip 24AA256/24LC256/24FC256 Serial EEPROM Datasheet
32K x 8 I2C EEPROM with 64 byte page write

Before an interview, try our industrial electronics questions on memory and logic. For volatile storage, see flip flop types.

Types of ROM FAQ

What are the 5 types of ROM in digital electronics with examples?

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.

What is the difference between EPROM and EEPROM in simple words?

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.

How to calculate ROM capacity from address lines and data lines?

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.

Why does an EPROM chip have a glass window on top of it?

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.

How many times can you write to EEPROM and flash memory?

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.

Which type of ROM is best for storing transmitter calibration data?

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.

Advertisement

Related Articles

External References

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.
Advertisement
I hope you like above blog. There is no cost associated in sharing the article in your social media. Thanks for reading!! Happy Learning!!
Sunayana Gadepatil, author at Instrumentation Blog
Author · instrumentationblog.in
Ms. Sunayana Gadepatil is an instrumentation professional, technical writer, and the author behind Instrumentation Blog. With a strong interest in industrial instrumentation, process measurement, and automation, she specializes in simplifying complex technical concepts into clear, practical, and easy to understand insights. Through her articles, Ms. Sunayana shares valuable knowledge on flow, pressure, level, temperature, control systems, and industrial automation for engineers, students, technicians, and industry professionals.
Technically reviewed on

Leave a Reply

Your email address will not be published. Required fields are marked *

Support free learning

Help keep every guide, calculator and tool 100% free

Hosting, software and hours of research go into every article. Even a small contribution helps us publish more in-depth guides for students, technicians and engineers.

  • No paywalls
  • No sign up
  • Free for everyone