Programmable ROM andData Transfer
Some computer instructions must survive a power cut but may need updating later. Meanwhile, when a producer sends data faster than its destination can accept it, a temporary waiting area may be needed. These are different design problems: persistent information and short-term transfer.
In this lesson, you will distinguish three ROM technologies and investigate how a buffer helps information move between components that operate at different rates.
Learning goals
- Explain how PROM, EPROM and EEPROM differ in programming and erasing.
- Select a non-volatile technology for a stated requirement and justify your answer.
- Explain the purpose of a buffer during data transfer between components.
- Predict what happens when input arrives faster than a finite buffer can be emptied.
1. Can non-volatile instructions be changed?
A controller needs non-volatile instructions so it can start again after being switched off. But “non-volatile” describes retention of information, not necessarily an absolute ban on modifying it. Different ROM-family technologies let an engineer set or replace the contents in different ways.
Consider an electronically controlled musical instrument. Its firmware tells the device how to interpret keys and produce notes. A developer might want to test several firmware revisions, whereas an inexpensive final version might never need changing after manufacture.
PROM · one-time programming
Programmable Read Only Memory is written once after manufacture. In traditional PROM, programming permanently changes selected fuse connections. Once the pattern is set, the same chip cannot be erased and written with a replacement program.
EPROM · ultraviolet erasure
Erasable Programmable Read Only Memory can be cleared by exposing a suitable chip to ultraviolet light, traditionally through a window. After erasure, new contents are written electrically. A classic UV-erasable chip normally needs to be removed from its circuit for this process.
EEPROM · electrical erasure
Electrically Erasable Programmable Read Only Memory can have stored information erased and rewritten electrically. This makes it possible to update many EEPROM devices in place, without physically removing the chip from the product.
Read the verbs carefully
For an EPROM, UV light is used for erasure, not for writing the replacement program. EEPROM erasure is electrical. All three technologies retain stored information without continuous power.
2. Choosing a ROM family
| Technology | Erase old contents? | Rewrite method | Design consequence |
|---|---|---|---|
| PROM | No | Electrical one-time programming of a blank chip | A changed program calls for a different chip. |
| EPROM | Yes, using ultraviolet light | Electrical programming after erasure | Repeated revisions are possible, but handling the chip is inconvenient. |
| EEPROM | Yes, electrically | Electrical rewriting; often in the installed circuit | Updates and configuration changes can be easier to perform. |
These categories describe how the underlying memory can be modified, not how frequently the product should be updated. For real hardware, cost, write endurance, security and the specific memory design are additional considerations.
Justification, not just identification
Instead of saying “EEPROM because it is better,” connect the requirement to the mechanism: the controller needs updates after installation; EEPROM can be electrically erased and rewritten while fitted, avoiding chip removal.
3. What happens when transfer rates differ?
Data transfer is a movement of information from one part of a system to another. A transfer rate states how much data moves in a given interval. For example, a sensing device might generate a burst of measurements more quickly than a connected radio module can transmit them.
Without somewhere to hold the waiting measurements, a sender may have to stop, or data may be lost. A computer system can use a buffer to collect data temporarily until the receiving stage is ready.
Buffers normally use existing memory rather than requiring a separate kind of permanent storage. Depending on the application, buffers may use a first-in, first-out (FIFO) queue so the oldest waiting item leaves first.
4. A buffer helps, but has limits
Imagine a small score-display unit at a school robotics tournament. Several judges send results in quick succession. The wireless display link sends updates more slowly. A buffer lets incoming updates wait until they can be transmitted.
| Situation | What happens | What to explain |
|---|---|---|
| Sender briefly faster than receiver | Items accumulate in temporary memory. | The receiver can continue taking items at its own rate. |
| Receiver catches up | The number of waiting items decreases. | The stored items can leave in arrival order if FIFO is used. |
| Fast input continues for too long | A finite buffer eventually fills. | The system must apply a policy, such as pausing the sender or dropping/overwriting items. |
A buffer is not a speed upgrade
A buffer does not increase the receiver's processing or transmission speed. It can smooth a short mismatch. If the average arrival rate remains higher than the departure rate, the waiting data will keep accumulating until some form of flow control or loss occurs.
A strong explanation
Identify the speed mismatch, state that the buffer temporarily stores waiting data, and explain that the receiver takes data when ready. If the question asks about limitations, mention finite capacity.
5. Interactive ROM and Buffer Lab
These are conceptual simulations built for this study page. They illustrate the permitted operations of memory technologies and the effects of different arrival/departure rates — not the detailed engineering of a specific device.
Technology Lab
Try modifying non-volatile memory, then control a finite data buffer.
Can you replace the firmware?
Select a type. Try writing revision A, then attempt to replace it with revision B. Some operations require removing a traditional chip first.
Try removing the PROM, then programming it once. What happens when you want a second revision?
Simplified traditional-chip model: PROM and UV-EPROM need an external programmer; EEPROM can be updated while installed. A real product may implement programming and removal differently.
See how waiting data accumulates
Each step represents an equal, artificial time interval. First the sender attempts to add items; then the receiver removes items in FIFO order. Change both rates and observe what happens.
Oldest waiting item is on the left. Each tile is one piece of data, labelled by arrival sequence.
Prediction: with 3 items arriving and 1 leaving per step, the queue will grow.
Show transfer log
Overflow policy in this model: incoming items are discarded if all slots are full. Real systems might instead block the sender, request retransmission or apply another policy. The buffer does not make the receiver faster.
6. Practice — original questions
Question A · Choose and justify [3]
A company is developing a reusable electronic name tag. Engineers want to erase and replace the program electrically while its memory chip stays attached to the board. Identify a suitable ROM technology and explain two relevant characteristics.
Question B · Compare [4]
Explain how the erasure and reprogramming processes differ between PROM, EPROM and EEPROM. Your answer must say which technologies can be reused after the original program has been written.
Question C · Buffer explanation [3]
During a competition, a results sensor generates a sudden burst of data. A wireless communication device can transmit only a few records at a time. Explain why a buffer is helpful.
Question D · Predict an outcome [3]
Each second a system produces six records, but its receiver can permanently process only four records per second. Explain what would happen to a finite buffer if these rates continued unchanged, and suggest one way the system could respond.
Reveal suggested answer points
A: EEPROM; its contents can be erased and rewritten electrically, and updating can take place while the chip is fitted.
B: PROM is programmed once and not erasable. EPROM is erased using ultraviolet light and reprogrammed electrically, traditionally outside the circuit. EEPROM is erased and written electrically, often in place. EPROM and EEPROM can be reused.
C: The sensor produces records faster than the wireless unit processes them; the buffer holds waiting records temporarily; the transmitter removes records when ready (often in arrival order).
D: The queue grows by about two records per second on average until full. The system could slow or block the producer, or use a defined overflow/drop policy; increasing capacity alone would only postpone the problem.
These points are independently authored teaching guidance; they are not official examination marking criteria.
7. Review
PROM: one write. EPROM: UV erase and electrical reprogramming, usually outside the circuit. EEPROM: electrical erase and rewrite, often in the installed device. Buffer: short-term waiting memory that helps when data moves between components at different rates.
Exit question
One student says “EEPROM is just like RAM”; another says “a large buffer always prevents dropped data.” Identify the problem with each statement and give a technically precise correction.