Paper 1 · Unit 3. Devices, memory, monitoring and control, and logic gates.

1. Inputs, outputs and storage

A computer system needs input devices to capture data, output devices to present results, primary storage (RAM and ROM) that the CPU accesses directly, and secondary storage for long-term, non-volatile storage. Secondary storage is needed because RAM is volatile and too small and expensive to hold everything.

An embedded system is a computer built into a larger device to perform one dedicated function, e.g. in a washing machine, car engine management or a thermostat.

Embedded systems: benefitsDrawbacks
Small, cheap to mass-produce, low powerHard to upgrade or repair
Reliable and fast at one taskLimited functionality
Can be controlled remotely when connectedConnected devices can be a security risk

2. Devices and how they work

DeviceBasic internal operation
Laser printerA drum is given a charge; a laser removes charge where the page is blank (or draws the image); toner sticks to the charged areas; it is transferred to the paper and fused with heat
3D printerBuilds an object layer by layer from a digital model, e.g. by extruding melted plastic through a moving nozzle
MicrophoneSound waves vibrate a diaphragm; the movement (e.g. of a coil in a magnetic field) creates an electrical signal, which an ADC converts to digital
SpeakerA varying electrical current (from a DAC) passes through a coil in a magnetic field, moving a cone that produces sound waves
Magnetic hard diskPlatters spin; a read/write head on an actuator arm moves over tracks and sectors and magnetises tiny areas to store 1s and 0s
Solid state (flash) memoryNo moving parts; data is stored by trapping charge in floating-gate transistors (NAND flash), arranged in pages and blocks
Optical discA laser reads pits and lands on a spinning disc; changes in the reflected light are read as 1s and 0s
TouchscreenCapacitive: a finger changes the electrostatic field at a point; resistive: pressure makes two layers touch, completing a circuit
VR headsetSeparate screens for each eye give a 3D image; sensors track head movement and update the view

3. Buffers

A buffer is a temporary area of memory that holds data while it is transferred between devices working at different speeds, e.g. data sent to a printer, or video being streamed. The CPU can fill the buffer and get on with other tasks instead of waiting for the slower device.

4. RAM and ROM

RAMROM
Volatile?Yes: contents lost when power is offNo: contents kept
Read/writeRead and writeRead only (in normal use)
UseData and programs currently in useFirmware, e.g. the boot program (BIOS)
SRAMDRAM
Built fromFlip-flopsCapacitors and transistors
RefreshDoes not need refreshingMust be refreshed constantly
SpeedFaster accessSlower
Cost and densityMore expensive, less data per chipCheaper, more data per chip
UseCache memoryMain memory
  • PROM: can be programmed once after manufacture.
  • EPROM: erased with ultraviolet light, then reprogrammed.
  • EEPROM: erased and reprogrammed electrically, without removing it (flash memory is a type of EEPROM).

5. Monitoring and control systems

A monitoring system uses sensors to collect data and warns or records, but does not change the process (e.g. a hospital patient monitor). A control system also uses actuators to change the conditions (e.g. a greenhouse that opens windows).

Sensor readings are converted by an ADC; the microprocessor compares them with stored values and, if needed, sends signals to actuators (via a DAC if they need analogue signals). Feedback means the output affects the next input: the loop repeats so the system keeps conditions at the set value.

6. Logic gates and circuits

GateOutput is 1 when…
NOTthe input is 0
ANDboth inputs are 1
ORat least one input is 1
NANDNOT AND: not both inputs are 1
NORNOT OR: both inputs are 0
XORexactly one input is 1

You must be able to build a circuit from a problem statement, logic expression or truth table, and produce a truth table or logic expression from a circuit. With 3 inputs, a truth table has 8 rows (000 to 111).

Try it: logic gate tester

7. Examiner tips

  1. Describe the operation of devices step by step; vague answers such as “it prints the image” get no marks.
  2. SRAM vs DRAM: SRAM does not need refreshing, is faster and is used for cache.
  3. Buffers exist because devices work at different speeds.
  4. Control systems need actuators; monitoring systems do not change the process.
  5. Truth tables: list inputs in binary order and check every row.
  6. Embedded systems do one dedicated task inside a larger device.

8. Practice questions

Practice: answer and check instantly

Type a short answer, then press Check or Enter.

Show answer

Static RAM.

Show answer

Dynamic RAM.

Show answer

EPROM.

Show answer

Analogue-to-digital converter.

Show answer

XOR.

Show answer

2³ = 8.

Show answer

A buffer.

Show answer

A control system.

Exam-style questions

9. Describe how a laser printer prints a page. [4]

Show mark guide

The drum is given a charge [1] · a laser alters the charge to form the image of the page on the drum [1] · toner is attracted to the charged areas [1] · the toner is transferred to the paper [1] · a fuser uses heat to fix the toner [1]. Max 4.

10. Explain the differences between SRAM and DRAM. [4]

Show mark guide

SRAM uses flip-flops, DRAM uses capacitors [1] · DRAM needs refreshing, SRAM does not [1] · SRAM is faster [1] · DRAM is cheaper / has higher density [1] · SRAM used for cache, DRAM for main memory [1]. Max 4.

9. Topic test: predict your grade

Topic test: predict your grade

15 questions, about 10 minutes. Answer them all, then press Mark my test.

1. Which is volatile?
2. An embedded system…
3. In a laser printer, toner is fixed by…
4. A 3D printer builds objects…
5. A hard disk stores data…
6. SSDs store data using…
7. A buffer is used because…
8. DRAM…
9. Which can be erased electrically without removing it?
10. A monitoring system…
11. Feedback in a control system means…
12. NAND outputs 0 when…
13. NOR outputs 1 when…
14. A capacitive touchscreen detects…
15. ROM typically stores…

Frequently asked questions

What is the difference between SRAM and DRAM?

SRAM uses flip-flops, does not need refreshing and is faster, so it is used for cache. DRAM uses capacitors, must be refreshed constantly and is cheaper, so it is used for main memory.

How does a laser printer work?

A drum is charged, a laser changes the charge to form an image of the page, toner sticks to the charged areas, it is transferred to paper and then fused with heat.

What is the difference between a monitoring and a control system?

A monitoring system uses sensors to collect data and warn or record. A control system also uses actuators to change conditions, using feedback.

Was this page helpful?