Computers and their components

Computer Science AS · Hardware. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Computer Science AS topics

The idea

A computer needs input devices, output devices, primary memory that the processor reaches directly, and secondary storage that keeps data when the power is off. An embedded system is a small computer built into a larger device to do one fixed task, such as the controller in a washing machine.

Primary memory is RAM and ROM. RAM is volatile: it loses its contents without power. ROM is non-volatile. RAM comes as static (SRAM) or dynamic (DRAM), and ROM chips differ in whether and how they can be reprogrammed.

Computers also watch and manage the outside world. Sensors supply readings; in a control system the computer acts on them through an actuator.

In simpler words

A computer needs input, output, memory and storage. RAM holds what you are using now, but forgets it when the power goes off. ROM keeps its contents, like the start-up instructions. Storage keeps files when the computer is off. An embedded system is a tiny computer inside a machine, like a washing machine. Sensors take readings. In control systems, actuators then change things.

An everyday comparison

RAM is like a whiteboard: quick to write on, wiped clean when you leave. ROM is like a printed sign: you can read it but not change it. A control system is like a thermostat: a sensor reads the temperature and the heater switches on or off, which changes the next reading. The comparison stops working because some ROM, such as EEPROM, can be rewritten, and DRAM must be refreshed constantly, unlike a whiteboard.

Rules to remember

Common mistake

Students mix up SRAM and DRAM. Dynamic RAM is the one that must be refreshed, and the refreshing makes it slower, so the faster SRAM is used for cache.

In the exam

For comparison questions, match points: RAM is volatile, read and write, holds programs in use; ROM is non-volatile, read only, holds start-up instructions. For SRAM and DRAM, state that DRAM uses capacitors that must be refreshed, so it is slower and cheaper, while SRAM uses flip-flops and is used for cache. For control systems, describe the cycle: sensor reading, compare with set value, actuator acts, feedback changes the next reading.

Worked example

The program in a car's engine controller must stay when the power is off. A garage must be able to update it without removing the chip. Which type of memory is suitable?

  1. The program must survive without power, so RAM is not suitable; a type of ROM is needed.
  2. PROM can be programmed only once, so it cannot be updated.
  3. EPROM needs ultraviolet light, so the chip would have to be taken out.
  4. EEPROM is erased and rewritten electrically while it stays in the circuit.

Answer: EEPROM.

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← Network hardware and the internetLogic gates and logic circuits →Take a Computer Science AS test