Chapter 3: Hardware – 9618 CS AS Level Notes
Notes › Chapter 3
Chapter 3 · Paper 1

Hardware

Computer components, memory types, storage devices, embedded systems, logic gates and circuits — how the physical machine works.

3.1 Computers & Components 3.2 Logic Gates & Circuits

3.1 Computers and Their Components

The Four Core Needs

Every computer system needs four fundamental elements:

NeedPurposeExamples
InputReceive data from outside worldKeyboard, mouse, microphone, touchscreen, camera
OutputSend processed results to outside worldMonitor, speakers, printer, projector
Primary MemoryFast temporary working storage for CPURAM, ROM, cache
Secondary StoragePermanent non-volatile storageHDD, SSD, optical disc, USB flash drive

Hardware Devices

DeviceTypeHow It Works
Laser PrinterOutputLaser charges drum, toner sticks to charged areas, heat fuses to paper
3D PrinterOutputBuilds objects layer-by-layer from digital model (additive manufacturing)
MicrophoneInputSound waves vibrate diaphragm → electrical signal → digitised by ADC
SpeakersOutputDAC converts digital signal → electrical → vibrates diaphragm → sound
Magnetic HDDSecondary StorageSpinning magnetic platters; read/write head magnetises sectors
Solid State (SSD/Flash)Secondary StorageNAND flash memory cells; no moving parts; faster, quieter, more durable
Optical DiscSecondary StorageLaser reads/writes pits and lands on reflective disc surface
TouchscreenInput/OutputCapacitive: detects electrical change when finger touches; or resistive pressure-based
VR HeadsetInput/OutputDisplays stereoscopic images; motion sensors track head movement
Buffers

A buffer is a temporary storage area (usually RAM) that holds data while it is being transferred between two devices operating at different speeds. Example: a print buffer holds print jobs while the printer (slow) processes them, freeing the CPU (fast) to continue working.

Embedded Systems

Definition

An embedded system is a dedicated computer system built into a larger device, designed to perform one specific function. It typically has fixed programs stored in ROM.

Benefits of Embedded Systems

  • Optimised for single task → very efficient
  • Low power consumption
  • Low cost (mass production)
  • Small physical size
  • Very reliable (simple, fixed program)

Drawbacks of Embedded Systems

  • Cannot be reprogrammed for other tasks
  • Limited upgradability
  • If hardware fails, whole device replaced
  • Bugs are hard to patch (fixed ROM)

Examples: Washing machine controller, car ABS system, ATM, pacemaker, microwave oven, router firmware.

Memory Types

RAM — Random Access Memory

  • Volatile (data lost when power off)
  • Read and write access
  • Stores current programs and data
  • Directly accessible by CPU
  • More RAM → better multitasking

ROM — Read Only Memory

  • Non-volatile (retains data without power)
  • Read only (cannot be written normally)
  • Stores firmware / BIOS
  • Used in embedded systems
  • Contents fixed at manufacture
Memory TypeSpeedCostUseCharacteristics
SRAM (Static)Very fastExpensiveCache memoryUses flip-flops; no refresh needed; retains data while powered
DRAM (Dynamic)Slower than SRAMCheaperMain RAM (system)Uses capacitors; needs constant refresh; denser packing

ROM Variants

TypeFull NameProgrammable?Erasable?
ROMRead Only MemoryAt manufacture onlyNo
PROMProgrammable ROMOnce by userNo
EPROMErasable Programmable ROMYesUV light only
EEPROMElectrically Erasable Programmable ROMYesElectrically (byte by byte)
Flash memory (SSDs, USB drives) is a type of EEPROM that erases in blocks rather than bytes, making it much faster for large-scale erasure. It is the dominant non-volatile storage technology today.

Monitoring and Control Systems

Monitoring System

  • Reads sensor data and records it
  • Does NOT take automatic action
  • Alerts a human if threshold exceeded
  • Example: weather station, ECG monitor

Control System

  • Reads sensor data AND acts on it
  • Takes automatic action via actuators
  • Uses feedback loop
  • Example: thermostat, greenhouse, ABS brakes
Feedback Loop (Control Systems)

Sensors measure physical properties (temperature, pressure, IR, sound) → data sent to microprocessor → microprocessor compares with target value → if different, sends signal to actuators (motors, valves, heaters) to correct → loop repeats. This is called a closed-loop control system.

3.2 Logic Gates and Logic Circuits

The Six Logic Gates

Interactive Truth Tables — Click inputs to toggle
GateSymbolOperationOutput = 1 when…
NOTBuffer with bubbleQ = NOT AInput is 0
ANDD-shapeQ = A AND BAll inputs are 1
ORCurved shieldQ = A OR BAt least one input is 1
NANDAND + bubbleQ = NOT(A AND B)Not all inputs are 1
NOROR + bubbleQ = NOT(A OR B)All inputs are 0
XORCurved shield + extra curveQ = A XOR BInputs are different

Constructing Logic Circuits

You need to convert between three forms:

Logic Expression
Q = (A AND B) OR (NOT C)
Truth Table
All input combinations → outputs
Circuit Diagram
Gates connected with wires
Worked Example

Problem: A security system activates (Q=1) if it's night (A=1) AND either motion (B=1) OR a door is open (C=1).

Expression: Q = A AND (B OR C)

Circuit: OR gate with inputs B,C → AND gate with A and OR output → Q

📝 Exam Tip: A truth table with 2 inputs has 2² = 4 rows. With 3 inputs → 2³ = 8 rows. With n inputs → 2ⁿ rows. Always fill inputs in binary counting order: 00, 01, 10, 11.
Scroll to Top