📑 Contents

Chapter 3.1: Hardware, Storage, I/O Devices & Monitoring/Control Systems

9618 AS Computer Science

📚 Learning Objectives
🌟 Did You Know?

A computer system must support three major operational capabilities: Storage of Data, Processing of Data (by CPU), and Input/Output of Data. Storage devices are integral to computer hardware - without them, a computer would not be able to run or even boot up!

1. Primary Memory

Primary memory is part of computer memory which can be accessed directly from the CPU. Primary memory is used to store data, files, parts of an application or parts of the operating system currently in use. It has much faster access times than secondary storage, which speeds up operations like the Fetch-Execute Cycle.

1.1 Random Access Memory (RAM)

RAM is the primary storage directly connected to the CPU that holds data and instructions currently in use. It is volatile memory, meaning contents are lost when power is turned off.

📖 Key Characteristics of RAM

1.2 Types of RAM: DRAM vs SRAM

Feature DRAM (Dynamic RAM) SRAM (Static RAM)
Construction Uses transistors and capacitors Uses flip-flops to hold each bit
Refreshing Needs constant refreshing No refreshing required
Speed Slower access time Faster access time
Cost Less expensive to manufacture More expensive
Capacity Higher memory capacity Lower capacity per chip
Power Consumes more power (refresh cycles) Less power under normal use
Usage Main memory in computers Processor cache memory
💡 Exam Tip

Remember: DRAM = Dynamic = Needs Refreshing (like a dynamic person who needs constant attention), while SRAM = Static = Stable (holds data without refreshing). SRAM is faster but more expensive, so it's used for cache where speed is critical.

2. Read Only Memory (ROM)

ROM is primary storage that holds the first instructions a computer needs to start up (Bootstrap/BIOS). Unlike RAM, ROM is non-volatile - contents are not lost when power is turned off.

📖 Key Characteristics of ROM

2.1 Types of ROM

📝 Types of Programmable ROM

1. PROM (Programmable ROM):

2. EPROM (Erasable PROM):

3. EEPROM (Electrically Erasable PROM):

2.2 RAM vs ROM Comparison

Feature RAM ROM
Memory Type Temporary memory device Permanent memory device
Volatility Volatile (lost when power off) Non-volatile
Read/Write Both read and write Read only
Contents Data, programs, OS currently in use BIOS, bootstrap instructions
Capacity Gigabytes (GB) Megabytes (MB)
Speed Very fast Fast (slower than RAM)

3. Secondary Storage Devices

Secondary storage includes storage devices that are not directly accessible by the CPU. They are non-volatile devices which allow data to be stored permanently. All applications, operating system, device drivers, and files are stored on secondary storage.

📖 Three Categories of Secondary Storage

3.1 Magnetic Hard Disk Drives (HDD)

Data is stored in digital format on magnetic surfaces of disks called platters. A hard disk drive will have multiple platters, each with two surfaces for storing data.

📝 How HDD Works
  1. Platters spin in unison at high speed (5400-7200 RPM)
  2. Read-write heads access all surfaces; attached to actuator arms
  3. A cushion of air ensures heads don't touch platter surfaces
  4. Data stored in sectors and tracks
  5. Each sector contains a fixed number of bytes
⚠️ Important: Latency & Fragmentation

Latency: Time taken for a block in a sector to rotate to the read-write head. Many applications require constant head movements, making latency significant.

Fragmentation: Through deletions and editing, sectors become fragmented, causing gradual performance decline. Defragmentation software can improve performance by "tidying up" disk sectors.

HDD Characteristic Description
Storage Method Magnetised particles on platters (0s and 1s)
Organization Concentric tracks divided into wedge-shaped sectors
Access Type Direct access device; data in sector read sequentially
Advantages High capacity, low cost per GB, reliable
Disadvantages Slower than SSD, moving parts can wear out

4. Solid State Drives (SSD) & Optical Storage

4.1 Solid State Drives

SSDs have no moving parts and all data is retrieved at the same rate. Data is stored as 0s and 1s in millions of tiny transistors within chips using NAND or NOR flash memory technology.

📖 How Data is Stored in Flash Memory
SSD Benefits SSD Drawbacks
More reliable (no moving parts) Limited write endurance (~20GB/day for 3 years)
Considerably lighter (ideal for laptops) Higher cost per GB
Lower power consumption Not ideal for servers with many write operations
Run cooler than HDDs Data recovery more difficult
Very thin design
Much faster data access

4.2 Optical Storage Media

CDs, DVDs, and Blu-rays use laser light to read and write data. Data is stored in pits and lands on a spiral track running from center to edge.

📝 How Optical Media Works
💡 Exam Tip

Remember the relationship: Shorter wavelength = Smaller pits = Greater storage capacity. That's why Blu-ray (405nm blue laser) stores more than DVD (650nm red laser), which stores more than CD (780nm red laser).

5. Output Devices

Output devices are hardware components that receive information from a computer and present it to the user. They enable the computer to communicate processed data or commands.

5.1 Laser Printers

Laser printers are non-impact page printers that use dry powder ink (toner) and static electricity to produce text and images. They print a whole page at once.

📝 Laser Printer Operation
  1. Data sent to printer driver, then stored in printer buffer
  2. Drum given electric charge, starts revolving step by step
  3. Laser beam directed across drum - either switched on (discharge) or off (leave charge)
  4. Charged toner coats drum, sticking only to discharged positions
  5. Drum rolls over charged paper, transferring toner
  6. Paper passes through heated rollers to fuse toner onto surface
  7. Drum discharged before next page cycle

5.2 Inkjet Printers

Inkjet printers are non-impact line printers that produce good quality color prints by firing droplets of ink through nozzles onto paper.

📖 Inkjet Printer Components

5.3 3D Printers

3D printers generate three-dimensional physical objects from digital files using additive manufacturing - building up layer by layer.

Device Principal Operation Use Case
Speakers Convert electrical signals to sound waves via diaphragm movement in magnetic field Audio output, voice commands, multimedia
VR Headset Creates immersive 360° environment using head tracking, motion sensors, stereoscopic displays Gaming, training, design, therapy
Plotter Uses pens to draw vector graphics on large paper; sprockets move paper, pens draw Architecture, engineering designs

6. Input Devices

Input devices are hardware components that allow users to input data or commands into a computer system for processing.

6.1 Touchscreens

Touchscreens work as both input and output devices - you view options (output) and touch to select (input).

Type How It Works Application
Capacitive Multiple glass layers act as capacitors; touch changes electric field; coordinates detected by microprocessor Smartphones, tablets
Infra-Red (Heat) Glass screen; needs warm object (finger) for input ATMs, information kiosks
Infra-Red (Optical) Grid of sensors detects contact point coordinates Large displays, interactive boards
Resistive Upper polyester layer + bottom glass layer; touch completes circuit; signals interpreted by microprocessor ATMs, point-of-sale systems

6.2 Microphones

Microphones convert sound waves into electrical signals that can be processed by the computer.

📝 How Microphones Work
  1. Sound causes air to vibrate
  2. Diaphragm in microphone picks up vibrations
  3. Copper coil wrapped around magnet moves with diaphragm
  4. Movement creates electric current (electromagnetic effect)
  5. Current digitized by ADC in sound card, sent to computer

6.3 Other Input Devices

Device Function
Scanner Creates digital representation of images; light source moves across paper; reflected light directed to CCD
Webcam Streams video images into computer system
Digital Camera Captures images/video for download to computer
Barcode Reader Scans barcodes for retail and inventory management
Graphics Tablet Allows artists to draw/sketch directly into computer

7. Embedded Systems

An embedded system is a computer system used to perform a dedicated function inside a larger mechanical unit. It involves installing microprocessors into devices to enable operations to be controlled more efficiently.

📖 Features of Embedded Systems
Examples: Heating thermostats, hospital equipment, washing machines, dishwashers, coffee machines, satellite navigation, factory equipment, security systems, traffic lights, lane detection systems in cars.
Benefits Drawbacks
Small and compact - easy to fit into devices Limited functionality - only performs specific tasks
Low power consumption - efficient Hard to upgrade or repair - often built into device
Fast and reliable - designed for quick, repetitive tasks Limited memory and processing power
Cheaper to produce - minimal hardware Not flexible - can't easily be reprogrammed
Works in real-time - ideal for time-sensitive operations May be less secure if connected to other systems
💡 Exam Tip

When asked why something is an embedded system, mention: (1) It is built into/integrated into the device, (2) It performs a specific/dedicated task, (3) It is not easily changed or updated by the user.

7.1 EEPROM in Embedded Systems

Embedded systems often use EEPROM because:

8. Monitoring and Control Systems

8.1 Sensors and Actuators

Sensors are input devices that measure physical properties (temperature, pressure, light, etc.). They produce analogue data which must be converted to digital using an ADC (Analogue to Digital Converter).

Actuators are output devices that accept signals from the computer and turn them into physical movement. Also called output transducers (convert one form of energy to another).

Sensor Type Measures Application
Temperature/Thermocouple Temperature Central heating, chemical processes, greenhouses
Pressure Gas/liquid pressure Burglar alarms, manufacturing processes
Infra-red/Motion Heat/Movement Security systems, automatic lighting
Light Light levels Street lighting, greenhouse, car headlights
Moisture/Humidity Water vapour Greenhouse soil monitoring
pH Acidity/Alkalinity Soil monitoring, river pollution
Gas Gas presence CO₂ monitoring, leak detection
Magnetic Field Magnetic presence Anti-lock braking systems (ABS)
Acoustic/Sound Sound levels Burglar alarms, industrial machinery

8.2 Monitoring vs Control Systems

Monitoring Systems Control Systems
Collect data continuously through observation Automatically manage/adjust process based on data
Passively gathers data Actively interacts with environment
Does NOT interact with or change environment Takes action when conditions are met
No actuators involved Uses actuators to control devices
Output does NOT affect input Output affects next input (feedback loop)
Examples: Weather stations, patient monitoring, burglar alarms Examples: Central heating, automatic irrigation, traffic lights, ABS

8.3 Feedback Loops

A feedback loop is when a control system uses its output to influence its next input. This allows automatic adjustment to stay within set conditions.

📖 Importance of Feedback
📝 How a Control System Works
  1. Sensors continuously take readings and send to processor
  2. Analog sensor readings converted to digital using ADC
  3. Microprocessor compares sensor readings to stored preset values
  4. If data outside acceptable range, microprocessor sends signals to actuators
  5. Output from system affects next inputs from sensors (feedback)
  6. Digital signal sent to actuator (may need DAC for analog actuators)
  7. Actuator turns device on/off (heater, motor, valve, etc.)
Example: Central Heating System
Thermostat monitors room temperature → If below preset, boiler switched on → Temperature rises → When target reached, heating turns off → Process repeats automatically (feedback loop).

9. Buffers

A buffer is a temporary storage area created for data transmitted from one part of a system to another. It functions as a queue.

📖 Purpose of Buffers

10. Key Takeaways

📌 Summary Points

Primary Memory

Secondary Storage

Monitoring & Control

11. Exam-Style Questions

1. A computer has hardware and software. The hardware includes different types of memory. Complete the description: RAM and ROM are both examples of ______ memory. One item stored in RAM is ______. One item stored in ROM is ______. SRAM uses transistors arranged as ______. DRAM uses transistors and ______. [5 marks]

Answer:

  • RAM and ROM are both examples of primary memory
  • One item stored in RAM is currently running software/data/part of the OS
  • One item stored in ROM is the start-up/boot-up instructions/BIOS
  • SRAM uses transistors arranged as flip-flops
  • DRAM uses transistors and capacitors
2. Describe the principal operations of a magnetic hard disk drive. [5 marks]

Answer:

  • The hard disk has one or more platters/disks
  • Each surface of the platter is capable of being magnetised
  • The surface is divided into concentric tracks/circles
  • The disks are rotated at high speed
  • Each surface has a read/write head mounted on an arm positioned just above the surface
3. A car has several features including a lane detection system. This system monitors the lines on either side of the lane. If the car gets too close to one line, the system automatically moves the car away. Explain why the lane detection system is an example of an embedded system. [3 marks]

Answer:

  • The lane detection system is built into/integrated into the car
  • The system only performs one (specific) task
  • The system is not easily changed/updated by the car owner
4. Explain the differences between DRAM and SRAM. Include their use in devices and systems. [6 marks]

Answer:

  • DRAM uses transistors and capacitors, needs constant refreshing, slower access, cheaper, used as main memory
  • SRAM uses flip-flops, no refreshing needed, faster access, more expensive, used in processor cache
  • DRAM has higher capacity per chip than SRAM
  • SRAM is used where speed is more important than storage size (cache memory)
  • DRAM is used where larger amounts of cheaper storage are required (main RAM)
  • SRAM consumes less power under normal use; DRAM uses more power due to refreshing
5. Describe how data is stored on a solid state (flash) memory device. [4 marks]

Answer:

  • Data is recorded in transistors called Floating Gates
  • Uses NAND or NOR based flash memory which retains data without power
  • Cells are protected by floating gates and connected in series
  • Control Gate controls charge flow from Source to Drain
  • NAND-based memory reads faster than it writes; access is by blocks, not individual bits
6. Describe the operation of a laser printer. [6 marks]

Answer:

  • Data sent to printer driver and stored in printer buffer
  • Drum given electric charge and revolves step by step
  • Laser beam directed across drum, either switched on (discharge) or off (leave charge)
  • Charged toner coats drum, sticking only to discharged positions
  • Drum rolls over charged paper, transferring toner
  • Paper passes through heated rollers to fuse toner onto surface
7. Describe the differences between PROM, EPROM, and EEPROM. [6 marks]

Answer:

  • PROM: Can be programmed once only; uses fuse matrix; cannot be erased
  • EPROM: Can be erased using UV light; must be removed from device; entire chip erased at once
  • EEPROM: Erased using electric voltage; can remain in circuit while being reprogrammed; specific bytes can be erased
  • PROM used in: mobile phones, RFID tags
  • EPROM used in: development applications, older arcade machines
  • EEPROM used in: BIOS chips, smart cards, USB flash drives, SSDs
8. A burglar alarm system uses sensors to detect intruders. Describe how this monitoring system works. [5 marks]

Answer:

  • System activated by keying in password on keypad
  • Sensors (infra-red, acoustic, pressure) detect movement/sound/weight
  • Sensor data passed through ADC to convert analogue to digital
  • Microprocessor samples data and compares with preset values
  • If data outside acceptable range, signal sent to sound alarm/flash lights
  • Alarm continues until system reset with password
9. Explain the difference between a monitoring system and a control system. Give an example of each. [4 marks]

Answer:

  • Monitoring system: Passively collects data; does not interact with or change environment; no actuators involved
  • Control system: Actively manages process; takes action based on data; uses actuators; output affects input (feedback)
  • Monitoring example: Weather station, patient monitoring in hospital, burglar alarm
  • Control example: Central heating system, automatic irrigation, traffic lights, anti-lock braking
10. Explain the importance of feedback in a control system. Use the example of a central heating system. [5 marks]

Answer:

  • Feedback ensures system operates within given criteria
  • Enables system output to affect subsequent system input
  • Allows conditions to be automatically adjusted
  • Central heating example: Thermostat monitors temperature → if below preset, boiler turns on → temperature rises → when target reached, heating turns off → cycle repeats
  • Without feedback, system could not self-correct or maintain desired conditions automatically

12. Exam Success Tips (Part 1)

💡 Memory Types - Key Reminders
💡 ROM Types - Remember the Pattern
💡 Storage Devices - Wavelength Rule
💡 Printer Operations - Step by Step
💡 Touchscreen Types

12. Exam Success Tips (Part 2)

⚠️ Embedded Systems - Must Mention

When asked why something is an embedded system, always mention these three points:

  1. It is built into/integrated into the larger device
  2. It performs a specific/dedicated task
  3. It is not easily changed/updated by the user
💡 Monitoring vs Control - The Key Difference
🧠 Memory Trick: ADC and DAC
❌ Common Mistakes to Avoid

12. Exam Success Tips (Part 3)

💡 Answer Structure Tips
🌟 Quick Reference Table
Topic Key Point
RAM Volatile, read-write, stores current programs
ROM Non-volatile, read-only, stores BIOS
SRAM Flip-flops, no refresh, cache memory
DRAM Capacitors, needs refresh, main memory
SSD No moving parts, NAND/NOR flash, fast
HDD Magnetic platters, tracks/sectors, high capacity
Feedback Output affects input, essential for control
📌 Final Exam Reminders