KS4J277 1.1.3 18 min read 10 question quiz 20 exam marks

Embedded Systems

What an embedded system is, how it differs from a general purpose computer, and why your washing machine does exactly one job extremely reliably.

What an embedded system is

An embedded system is a computer built into a larger device to perform a single specific task, or a small set of dedicated tasks.

The computer is not the product. The washing machine is the product, and the computer inside it exists only to run the wash cycles.

Everyday examples

  • Washing machine, dishwasher and microwave controllers
  • Traffic light controllers
  • Central heating thermostats
  • Engine management systems in cars
  • Digital cameras
  • Fitness trackers
  • Pacemakers
  • Vending machines
  • Domestic burglar alarms
A laptop is not an embedded system

Neither is a smartphone. They run many different programs chosen by the user, which makes them general purpose computers. The test is: can the user install whatever software they like?

A single board computer, about the size of a bank cardA small single board computer the size of a bank card, with the processor, memory and connectors all on one board.CPURAMmicroSD slotdisplay connectorprocessorruns the programmemoryUSB and network portsinput and output pinsconnect sensors and lightsstorage cardno hard disk
One board, one job, no hard disk and no operating system to load. That is why it boots instantly and costs very little.Drawn illustration

Embedded versus general purpose

Embedded systemGeneral purpose computer
PurposeOne dedicated taskMany different tasks
SoftwareFixed, usually stored in ROM, rarely changed by the userInstalled and removed freely by the user
HardwareMinimal, only what the task requiresFull range: keyboard, screen, expansion slots
Processing powerLow, matched exactly to the jobHigh, must cope with unpredictable demands
Power consumptionVery lowComparatively high
CostCheap to manufacture in volumeExpensive
Physical sizeSmall, often a single chipLarge
Operating systemOften none, or a small real time OSFull operating system such as Windows or macOS
ReliabilityVery high, the task is fixed and well testedLower, more can go wrong
User interfaceVery limited: a few buttons and lightsRich: keyboard, mouse, touchscreen, monitor

Why the differences exist

Because the task never changes, the designer knows exactly what the system needs. That makes it possible to strip out everything else. The result is cheaper, smaller, uses less power, generates less heat, and is far less likely to fail, because there is far less to fail.

The advantage sentence examiners want

Because an embedded system performs only one dedicated task, its hardware and software can be designed and optimised specifically for that task, which makes it cheaper, smaller, more power efficient and more reliable than a general purpose computer doing the same job.

The trade off

The flexibility is gone. You cannot make your washing machine play music, and updating the software may be difficult or impossible without replacing the chip. For the manufacturer that is a feature, not a bug: fewer possibilities means fewer things that can go wrong.

A general purpose computer compared with an embedded systemA general purpose computer against an embedded system. The general purpose machine, drawn as a laptop, has a processor, main memory, a graphics processor and secondary storage, runs a full operating system, and will run whatever software you choose to install on it, which is exactly what makes it flexible, expensive and complicated. An embedded system, drawn as a microwave oven with a small board inside it, is a single small circuit board built into the device it controls, often one chip carrying the processor, memory and inputs and outputs together. It runs one program, written once and stored in ROM, and it is never replaced or added to, which is why it starts instantly, costs pennies and almost never crashes. You cannot install new software on it.General purposeEmbeddedany.appCPURAMGPUSSDfull operating systemruns whatever you install0:30MCUROMone small boardone program, fixed in ROMflexible, but dear and complicatedpennies, instant start, rarely crashes1234
  1. A general purpose computer: many parts, and it runs whatever you install.
  2. An embedded system: one small board, built into the device it controls.
  3. It runs one program, written once, stored in ROM, never replaced.
  4. That is why it boots instantly, costs pennies and almost never crashes.
Ask whether the user can install new software on it. If not, it is almost certainly embedded.

Key terms you must be able to define

Embedded system
A computer built into a larger device to perform one dedicated task or a small set of dedicated tasks.
General purpose computer
A computer designed to run many different programs chosen by the user, such as a laptop or desktop.
ROM
Read only memory. Non volatile memory holding the fixed program an embedded system runs.
Real time system
A system that must respond to inputs within a guaranteed time limit, such as an anti lock braking system.
Dedicated function
The single specific job an embedded system is built to carry out.

Flashcards

Say the definition out loud before you flip the card. Retrieving it from memory is what builds recall, reading it again is not.

DefineEmbedded system
AnswerA computer built into a larger device to perform one dedicated task or a small set of dedicated tasks.
DefineGeneral purpose computer
AnswerA computer designed to run many different programs chosen by the user, such as a laptop or desktop.
DefineROM
AnswerRead only memory. Non volatile memory holding the fixed program an embedded system runs.
DefineReal time system
AnswerA system that must respond to inputs within a guaranteed time limit, such as an anti lock braking system.
DefineDedicated function
AnswerThe single specific job an embedded system is built to carry out.

Reach the top grade on this topic

This topic is short, so the marks are won on precision.

Choose your examples carefully. A smartphone is a trap: it looks like a small device but it is general purpose. Safe examples are a washing machine controller, a traffic light system, a microwave and a central heating thermostat.

Give reasons that follow from the single task. Everything good about an embedded system, low cost, small size, low power, high reliability, follows from the same root cause: the task is fixed, so the design can be stripped back to exactly what is needed. Say that link explicitly.

Know the disadvantage. Higher mark questions often ask for a drawback. The answer is loss of flexibility: the system cannot be repurposed and the software is usually difficult or impossible for the user to update.

  • Be able to give three correct examples instantly
  • Be able to state four differences from a general purpose computer in a table format
  • Be able to explain one advantage and one disadvantage with reasons

Mistakes that cost marks here

Avoid these
  • Giving a smartphone or tablet as an example. They run user chosen software, so they are general purpose.
  • Saying an embedded system 'has no operating system'. Many have a small real time operating system. Say it is often minimal or absent rather than never present.
  • Writing that embedded systems are 'less powerful' as if it is a flaw. It is a deliberate design choice, because the task does not need more power.
  • Forgetting the disadvantage. Loss of flexibility and difficulty of updating is worth a mark in a two sided question.
Fun fact

A modern car contains somewhere between 50 and 150 embedded systems. The engine management unit alone runs continuously and makes thousands of adjustments per second, and it has to be right every time, because there is no restart button at 70 mph.

Knowledge check

0 of 10 answered
1Which of these is an embedded system?
2Embedded systems are usually cheaper to produce than general purpose computers because:
3Where is the program of an embedded system typically stored?
4Which is a disadvantage of an embedded system?
5Why is an embedded system generally more reliable than a general purpose computer doing the same job?
6A traffic light system must change lights within a guaranteed time. This makes it an example of:
7Which feature would you NOT expect to find in a typical embedded system?
8An embedded system usually consumes less power than a general purpose computer because:
9Which pair are both embedded systems?
10What is the best description of the user interface on a typical embedded system?
Score 0 / 10

Exam-style questions

Five written questions in the style of the real paper. Write a full answer, then let the marker check it against the mark scheme.

20 marks
1Define the term embedded system.2 marks
Define

Mark scheme0 / 2
  • LA computer system built into a larger device
  • LDesigned to perform one specific or dedicated task
Model answer

An embedded system is a computer system that is built into a larger device or machine, and it is designed to carry out one specific dedicated task rather than a range of different tasks chosen by the user.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
2Give two examples of embedded systems and, for each, state the task it performs.4 marks
Give

Mark scheme0 / 4
  • LFirst valid example named, such as a washing machine controller
  • LTask of the first example stated
  • LSecond valid example named
  • LTask of the second example stated
Model answer

One example is the controller inside a washing machine, which manages the wash cycle by controlling the water inlet valve, the drum motor speed and the heating element according to the programme the user has selected. A second example is a central heating thermostat, which monitors the temperature reported by a sensor and switches the boiler on or off to keep the room at the target temperature.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
3Explain two advantages of using an embedded system rather than a general purpose computer to control a microwave oven.4 marks
Explain

Mark scheme0 / 4
  • LCheaper to produce because only the hardware needed for the task is included
  • LReason linked to the fixed task, such as no need for a screen, keyboard or expansion
  • LMore reliable because the single fixed program can be tested thoroughly and there is less to go wrong
  • LSmaller and lower power, so it fits inside the appliance and generates little heat
Model answer

The first advantage is cost. Because the system only ever has to run the microwave, the manufacturer can include just the processing power, memory and inputs the task requires, with no monitor, keyboard or expansion slots, so the unit is far cheaper to produce in volume. The second advantage is reliability. The embedded system runs a single fixed program stored in ROM, which can be tested exhaustively before release, and there are far fewer hardware and software components that could fail than in a general purpose computer, so the microwave is much less likely to crash or need maintenance.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
4Describe two differences between an embedded system and a general purpose computer.4 marks
Describe

Mark scheme0 / 4
  • LEmbedded systems perform one dedicated task, general purpose computers run many different programs
  • LEmbedded software is fixed and usually stored in ROM, general purpose software is installed by the user
  • LEmbedded systems use minimal hardware and have limited interfaces, general purpose computers have full input and output devices
  • LEmbedded systems use less power and are physically smaller
Model answer

The first difference is purpose. An embedded system is built to carry out one dedicated task, such as controlling a set of traffic lights, whereas a general purpose computer such as a laptop is designed to run many different programs chosen by the user. The second difference is how the software is handled. In an embedded system the program is fixed and usually stored in ROM, so it is not intended to be changed by the user, while on a general purpose computer the user installs, updates and removes applications freely. This also means embedded systems need only minimal hardware and a very limited interface, often just a few buttons and lights, whereas a general purpose computer needs a keyboard, a monitor and support for a wide range of peripherals.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
5A manufacturer is deciding whether to control a new coffee machine using an embedded system or a small general purpose computer. Evaluate the use of an embedded system for this purpose.6 marks
Evaluate

Mark scheme0 / 6
  • LEmbedded system is cheaper to produce per unit
  • LSmaller physical size fits inside the machine and uses less power
  • LMore reliable because a single tested program runs on minimal hardware
  • LDisadvantage: difficult or impossible for the user to update the software
  • LDisadvantage: no flexibility, the system cannot be repurposed or given new features later
  • LReaches a supported conclusion for this specific product
Model answer

An embedded system is a strong choice here. Because a coffee machine only ever needs to run a fixed set of brewing programmes, the manufacturer can specify exactly the processing power, memory and inputs required, which makes each unit significantly cheaper to produce than fitting a general purpose computer. The reduced hardware is also physically smaller, so it fits easily inside the casing, and it draws far less power and generates less heat, which matters in an appliance that already produces heat. Reliability is the strongest argument: a single fixed program running on minimal hardware can be tested exhaustively, and there are far fewer components that could fail, so warranty returns should be low. There are drawbacks. The software is normally stored in ROM, so fixing a bug or adding a new drink option after release may require physically replacing a chip or recalling units, and the system cannot be repurposed for anything else. On balance, because the function of a coffee machine is stable and well defined, and cost and reliability matter far more to the manufacturer than future flexibility, the embedded system is the better choice, provided the design allows firmware to be updated during servicing.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
Machine mark 0 / 20