What is EPROM and what differentiates it from other memory types?


Understanding the windowed memory chips on older control boards

EPROM stands for Erasable Programmable Read-Only Memory. It is part of the ROM family and retains its contents when power is removed. The defining feature of a conventional UV EPROM is electrical programming followed by ultraviolet erasure when the contents need to be replaced. A small transparent window lets the erasing light reach the chip.

Read-only describes its role during normal operation. A microprocessor can fetch instructions from an EPROM on an older control board, but loading a replacement image requires a separate programming procedure. The name does not mean the contents can never be changed.

How the chip holds a bit without power

An EPROM cell stores charge on an insulated floating gate. The charge changes the transistor's switching threshold, allowing the read circuitry to distinguish the stored bit. Retention does not require continuous power or periodic refresh. It still has specified limits: non-volatile storage is not a promise of indefinite retention under any temperature or operating conditions.

The quartz window on a UV-erasable package admits the erasing light. A plastic, windowless OTP EPROM provides no such access and is used as one-time-programmable memory. A device family may include both windowed and windowless versions. The word EPROM alone therefore does not tell you whether a particular package can be erased for reuse.

The difference is in how you change the contents

Compare how the data is established, how it is erased and how much must be changed at once. A PROM is generally programmed once by the user. A windowed UV EPROM can be erased and programmed again. EEPROM and flash offer electrical erasure instead. Similar names do not establish a shared programming procedure or interchangeable pin assignments.

Memory How contents are changed Typical role
Mask ROM Contents are defined during manufacture; the user cannot rewrite them. Fixed content in volume production
PROM / OTP Programmed once; not erased in normal use. Code or data that will remain fixed
Windowed UV EPROM The array is erased with UV light, then programmed electrically. Firmware storage and servicing older hardware
EEPROM Electrically erased and written; typically supports byte-level updates. Settings, calibration and small records
Flash Electrically programmed; typically erased by sector or block. Program code and larger data areas
RAM Read and written during operation; ordinary versions are volatile. Variables and working buffers

These are general distinctions. The exact device data sheet determines electrical conditions and update granularity. Flash has further architectural differences, covered in the NOR and NAND comparison. The discussion of DRAM and SRAM explains why working memory serves a different purpose from EPROM.

Erasing and programming are separate jobs

UV erasure affects the whole memory array, making it unsuitable for clearing a single settings byte. The exposure needed depends on the UV source and the device specification; there is no universal erase time. Use an enclosed EPROM eraser and the manufacturer's procedure. An opaque label over the window limits unintended UV exposure.

A useful service sequence is read and back up → erase if required → blank-check → program → read back and verify. For example, the M27W256 specifies all bits as 1 after erasure, giving 0xFF at an erased eight-bit location. Passing a blank check confirms an erased state, not a valid firmware image.

The programmer must support the exact device, its programming algorithm and its required voltages. VCC, the supply voltage, and VPP, the programming voltage, have different roles. Applying one assumed programming voltage to every part carrying a 27-series name can damage a device or leave the image incorrectly programmed.

Where EPROM fits in industrial equipment

An older PLC, drive or instrument board may use EPROM for startup code, firmware or fixed lookup tables. SRAM might hold the working variables while EEPROM stores settings. These are complementary memory applications; the architecture varies between products.

UV EPROM is impractical for a counter that changes repeatedly or measurements recorded every second. A design needing frequent persistent updates should assess EEPROM, appropriately managed flash or alternatives such as FRAM. Write frequency and endurance requirements matter as much as the number of bytes available.

Check the units before checking the speed

The AT27C256R's 256-Kbit capacity is organised as 32,768 locations of eight bits each. That gives 32,768 bytes, or 32 KiB, rather than 256 kilobytes. Read both the capacity unit and the organisation. For capacity and performance, access time is another independent requirement: a replacement can hold the right image yet fail to meet the board's timing.

Technical references: ST — M27W256 UV / OTP EPROM · Microchip — Program and data memory · Microchip — OTP EPROM · Microchip — AT27C256R data sheet · Microchip — EEPROM, flash and SRAM · Texas Instruments — Floating-gate memory structure