Information Technology Topic

RAM, ROM, PROM and EPROM

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. A bistable device has two stable states and holds one bit: one state stands for 0 and the other for 1
  2. RAM is read/write working memory that loses its contents at power off, while ROM, PROM and EPROM keep their contents without power
  3. ROM is set by the maker and cannot be changed by the user, PROM can be written once by the user, and EPROM can be erased with ultraviolet light and written again

Section 1Bistable devices: how one bit is held

Computers store data as bits, and each bit is either 0 or 1. To hold a bit you need something with two clear states, one for 0 and one for 1. A bistable device is exactly that: a device with two, and only two, stable states. A flip-flop is a bistable circuit. It stays in one state until it is made to change, and its two outputs are always opposites, so when one is 1 the other is 0. In semiconductor memory, each bit cell is a circuit that is on or off, so that it holds a 0 or a 1. Here's the trick: think of a light switch. It stays up or stays down until you move it, so it can remember one bit.

Section 2RAM: the read/write working memory

RAM (random access memory) is the working memory of the computer. It holds the programs and data being used, so the processor can reach them quickly. RAM is read/write: any location can be read from or written to directly, and when new data is written in, the old data is simply written over. Memory is where unsaved work lives. RAM is volatile. Its contents are lost when the power goes off. This is why a computer copies start-up programs from disk into RAM each time it starts.

Section 3ROM: read-only memory set by the maker

ROM (read-only memory) holds programs and data recorded beforehand. The contents can be read but not overwritten by the user, and they stay in place when the power is off. A typical use is the boot-up instructions, the first instructions a computer follows when it is switched on. Programs built permanently into hardware like this are called firmware. Firmware is usually held in ROM or PROM and cannot be changed while the programs run. Easy to mix up: 'read-only' does not mean the computer cannot use it. It means the computer can read it but not write new data in.

Section 4PROM: programmable once

PROM (programmable read-only memory) can be bought blank, or already programmed by the maker. When you buy it blank, you write your own program into it using a special device, which is called 'burning' the program in. Once written, a PROM can never be changed or erased. A mistake cannot be corrected, so that chip cannot be used for the fixed program. PROM gives you the permanence of ROM and the freedom to load your own program, but only one time.

Section 5EPROM: erasable and reprogrammable

EPROM (erasable programmable read-only memory) can also be bought blank and programmed with special equipment. The difference is that it can be erased with a burst of ultraviolet light, and then programmed again. A mistake or an upgrade is therefore not fatal. The contents can be read as many times as you like without damage. A related chip, EEPROM, is erased with electricity instead of light, and for CSEC you only need to recognise its name.

Section 6Comparing the four

RAM: read and write, volatile, holds work in progress. ROM: read only, permanent, contents set by the maker, holds boot-up instructions and other firmware. PROM: blank when bought, written once by the user, then permanent. EPROM: written by the user, erased with ultraviolet light, can be rewritten. Imagine a small firm in Kingston building a gadget. While the program still has bugs, they use EPROM so they can erase and retry. When it is finished and they only need a few gadgets, they burn the final version into PROM.

Examples

Name the type of memory (RAM, ROM, PROM or EPROM) that matches each description. (a) Holds the programs and data being used and is lost when the power goes off. (b) Programs recorded by the maker that the user cannot change. (c) Bought blank, programmed once by the user with a special device, and cannot be erased. (d) Bought blank, programmed by the user, and can be erased with ultraviolet light and programmed again.

(a) RAM. It is read/write working memory and is volatile. (b) ROM. Its contents are recorded beforehand and stay when the power is off. (c) PROM. 'Programmable' means the user can write it, and 'once' is the clue. Once written it cannot be erased. (d) EPROM. 'Erasable' and 'ultraviolet light' point to EPROM.

A small firm in Kingston is building a gadget that follows a program stored on a memory chip. The program is still being tested and may need fixing. Later, the final version will go into a run of 20 gadgets, and every gadget must keep its program when switched off. (a) State which of EPROM and PROM the firm should use while testing, and justify the choice. (b) State which it should use for the run of 20 gadgets, and justify the choice. (c) Explain why the firm cannot use RAM to hold the gadget's program. (d) State what a bistable device inside these chips does.

(a) EPROM. The program may contain mistakes. An EPROM can be erased with ultraviolet light and programmed again, so a mistake is not fatal. (b) PROM. The program is finished, so it only needs to be written once, and a PROM keeps it permanently. (c) RAM is volatile. Its contents would be lost every time the gadget was switched off, so the gadget would have no program when switched on. (d) A bistable device has two stable states, one for 0 and one for 1, and so holds one bit. Many such cells together hold the program's bits.

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from