Embedded system

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Embedded system

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which statement describes an embedded system?
A A computer system built into a device to do one dedicated function
B A computer system designed to run many different applications
2. Which device contains an embedded system?
A A wooden chair
B A microwave oven with a timer controller
3. An embedded system is usually...
A A separate computer that the user installs software on
B Built into a larger device
4. What kind of program does an embedded system usually run?
A A fixed program that rarely changes
B Any program the user chooses to download
5. How many main tasks does an embedded system normally perform?
A One dedicated function
B Many different general tasks

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1embedded system Awashing_machine_controller = run("wash_program")
2microwave timer controller BAn embedded system has one dedicated function and usually a fixed program. Running any software the user installs describes a general-purpose computer.
3An embedded system has a dedicated function and usually runs a fixed program stored in the device CAn embedded system is built into a larger device, not a separate stand-alone computer like a desktop.
4An embedded system is built into a larger device and is usually small and low cost Ddevice = Thermostat(embedded_chip = True)
5embedded_system = runs_any_software_the_user_installs EAn embedded system inside a microwave that only controls the cooking time and power
6embedded_system = separate_desktop_computer FA computer system built into a larger device to perform one dedicated function, usually running a fixed program

Definitions

embedded system

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
A microwave timer is an _______________
2.
An embedded system is __________ a device
3.
Most embedded systems run a _____ program
4.
Embedded systems have one _________ function
5.
Embedded systems are small and ___ cost

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A time ← 30
B WHILE time < 0
C time ← time - 1
D ENDWHILE
E buzzer ← ON
Question 2
A INPUT temp FROM sensor
B IF temp < 40 THEN
C heater ON
D ENDIF
Question 3
A REPEAT
B INPUT temp FROM sensor
C IF temp > 25
D fan ← ON
E ENDIF
F UNTIL FALSE
Question 4
A WHILE TRUE
B INPUT door FROM sensor
C IF door = OPEN THEN
D siren ← OFF
E ENDIF
F ENDWHILE
Question 5
A // Program is rewritten daily
B WHILE power = ON
C RUN wash_program
D ENDWHILE

Answer Key

Embedded system
Section A: Quick Questions
Q1
A — A computer system built into a device to do one dedicated function
Q2
B — A microwave oven with a timer controller
Q3
B — Built into a larger device
Q4
A — A fixed program that rarely changes
Q5
A — One dedicated function
Section B: Match the Pairs
Q1
embedded system → A computer system built into a larger device to perform one dedicated function, usually running a fixed program
Q2
microwave timer controller → An embedded system inside a microwave that only controls the cooking time and power
Q3
An embedded system has a dedicated function and usually runs a fixed program stored in the device → washing_machine_controller = run("wash_program")
Q4
An embedded system is built into a larger device and is usually small and low cost → device = Thermostat(embedded_chip = True)
Q5
embedded_system = runs_any_software_the_user_installs → An embedded system has one dedicated function and usually a fixed program. Running any software the user installs describes a general-purpose computer.
Q6
embedded_system = separate_desktop_computer → An embedded system is built into a larger device, not a separate stand-alone computer like a desktop.
Section C: Definitions
Q1
embedded system — A computer system built into a larger device to perform one dedicated function, usually running a fixed program. Examples: a washing machine controller or a microwave timer.
Section D: Fill in the Blanks
Q1
A microwave timer is an embedded system
Q2
An embedded system is built into a device
Q3
Most embedded systems run a fixed program
Q4
Embedded systems have one dedicated function
Q5
Embedded systems are small and low cost
Section E: Spot the Error
Q1
B — The microwave timer should count down while time is greater than 0. With < 0 the loop never runs, so the dedicated timer task never happens. It should be WHILE time > 0.
Q2
C — The washing machine controller must assign a value to the heater output using the assignment arrow. It should be heater ← ON.
Q3
C — The IF statement is missing THEN. This embedded thermostat program should read IF temp > 25 THEN.
Q4
D — The alarm's one dedicated function is to sound when the door opens. Setting the siren to OFF means the alarm never sounds. It should be siren ← ON.
Q5
A — An embedded system usually runs a fixed program stored in ROM, so it is not rewritten daily. The comment should say the program is fixed and stored in ROM.