Describe the principal operations of all hardware devices, including registers, the Von Neumann model, memory hierarchy, logic‑gate fundamentals, embedded systems and monitoring‑control loops. Explain related concepts such as buffers, RAM/ROM sub‑types, peripheral ports and the role of the control unit.
| Register | Purpose |
|---|---|
| Program Counter (PC) | Holds address of the next instruction to fetch. |
| Instruction Register (IR) | Stores the currently fetched instruction. |
| Memory Address Register (MAR) | Contains the address of the memory location to be read or written. |
| Memory Data Register (MDR) | Holds the data being transferred to or from memory. |
| General‑purpose registers (e.g., R0‑R7) | Used for arithmetic, logical operations and temporary storage. |
| Status/Flag register | Indicates result of the last operation (zero, carry, overflow, sign). |
IF MAR ← PC; PC ← PC + 1; READ → MDR
ID IR ← MDR; Decode(IR)
EX ALU ← Operands; (e.g., ACC ← ACC + R1)
WB MDR → Destination; Update Flags
Some textbooks combine the last two steps into a single “Store” phase.
| Type | Volatility | Typical Use | Key Feature |
|---|---|---|---|
| SRAM | Volatile | CPU cache | Fast, no refresh required |
| DRAM | Volatile | Main memory | High density, needs refresh |
| PROM | Non‑volatile | One‑time firmware | Programmed once with a special device |
| EPROM | Non‑volatile | Older BIOS chips | Erased with UV light, re‑programmed |
| EEPROM | Non‑volatile | Configuration settings, flash drives | Electrically erased/written, byte‑wise |
| Gate | Symbol | Truth Table (A B → Y) |
|---|---|---|
| NOT | ○A → ○Y | A=0 → Y=1 A=1 → Y=0 |
| AND | ○A & ○B → ○Y | 00→0 01→0 10→0 11→1 |
| OR | ○A ∪ ○B → ○Y | 00→0 01→1 10→1 11→1 |
| NAND | ⎯& (AND with bubble) | Inverse of AND |
| NOR | ⎯∪ (OR with bubble) | Inverse of OR |
| XOR | ⊕ | Y=1 when A≠B |

| Device | Principal Operation | Typical Example |
|---|---|---|
| Keyboard | Detect key‑press/release → generate scan code | QWERTY PC keyboard |
| Mouse | Measure X/Y displacement (optical or mechanical) → digital motion data | Optical mouse |
| Scanner | Capture light intensity → A/D → bitmap image | Flat‑bed scanner |
| Microphone | Detect sound pressure → A/D → digital audio samples | USB condenser microphone |
| Device | Principal Operation | Typical Example |
|---|---|---|
| Monitor (LCD/LED) | Raster‑scan pixel data; D/A for analog inputs | 24‑inch HD LCD monitor |
| Printer | Convert bitmap/vector data into ink/toner marks; uses a page buffer | Laser printer |
| Speaker | Digital audio samples → D/A → analog voltage → sound waves | Stereo desktop speaker |
| Projector | Project rasterised video frames; may require D/A conversion | HDMI projector |
| Technology | Access Type | Key Operation | Typical Use |
|---|---|---|---|
| Magnetic Hard Disk Drive (HDD) | Random | Read/write heads position over the required track | Desktop & laptop storage |
| Solid‑State Drive (SSD – NAND flash) | Random | Erase block → program page; limited cycles | High‑speed primary storage |
| Magnetic Tape | Sequential | Wind/rewind to required position; linear read/write | Backup & archival |
| Optical Disc (CD/DVD/Blu‑ray) | Random (sector‑based) | Laser reads/writes pits; write‑once or rewritable | Media distribution, archival |
Typical closed‑loop example: thermostat → temperature sensor → CPU decides → heating element (actuator).
| Hardware Component | Principal Operations |
|---|---|
| CPU | Fetch, Decode, Execute (ALU), Store/Write‑back; interrupt handling; pipelining; register‑transfer control. |
| Registers | Hold addresses, data, status flags; provide ultra‑fast workspace for the CPU. |
| Memory (RAM/ROM) | Read, Write, Refresh (DRAM); hierarchical buffering (cache → main → secondary). |
| Logic Gates & Circuits | Implement Boolean functions; combine to form adders, multiplexers, ALU blocks. |
| Input Devices | Signal detection → A/D conversion → encoding (scan codes, MIDI, etc.). |
| Output Devices | D/A conversion → rendering/formatting → signalling to human‑visible or machine‑usable form. |
| Storage Devices | Sequential or random access; erase/write cycles for flash; block‑level management. |
| Bus / Control Unit | Data, address and control signal routing; buffering to match device speeds. |
| Peripheral Ports | Physical & protocol interfaces (USB, HDMI, Ethernet, etc.). |
| Embedded Systems | Read sensors → execute dedicated program → drive actuators; often real‑time. |
| Monitoring & Control Loops | Sensor → CPU decision → actuator → (feedback to sensor). |

Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.