Hardware
Computer systems, embedded systems and buffers
What you need to be able to do
- 3.1Explain the need for input, output, primary memory and secondary (including removable) storage.
- 3.1Explain what an embedded system is, with its benefits and drawbacks, applied to a given device.
- 3.1Explain the use of buffers, with examples.
Next: Input and output devices, Storage devices and Memory.
Input, output, memory and storage
| Part | Why a computer needs it | Examples |
|---|---|---|
| Input | to get data / instructions into the computer from the user or the environment, converted into binary | keyboard, touchscreen, microphone, sensors, camera, scanner |
| Output | to present the results of processing in a form people (or other devices) can use | monitor, printer, speakers, actuators, VR headset |
| Primary memory | holds the data and instructions currently being used, directly accessible by the processor; fast | RAM (programs and data in use), ROM (start-up instructions) |
| Secondary storage | non-volatile: keeps programs and data permanently when the power is off; large capacity; not directly accessed by the processor | hard disk, SSD |
| Removable storage | secondary storage that can be taken out to transfer or back up data between computers | USB flash drive, memory card, optical disc |
Primary or secondary? Ask whether the data is needed now (being processed: primary) or must survive switching off (secondary). In a car's trip computer, the miles for the current journey are in primary memory while the engine runs; the total miles since the car was built are in secondary storage.
Embedded systems
| Characteristic | Example: a washing machine |
|---|---|
| built into / integrated into a larger system | the controller is part of the washing machine, not a separate computer |
| dedicated to one specific task (limited functions) | it only runs the wash programs |
| contains a processor, memory and input / output | a microcontroller, ROM with the programs, RAM for the current wash, buttons, sensors and motor outputs |
| not easily changed / updated by the user (firmware) | the owner can't install new programs |
| limited processing power needed, low cost, low power | a simple microcontroller is enough |
| Benefits | Drawbacks |
|---|---|
| small, cheap to mass-produce, low power consumption | difficult for the user to change / update the firmware |
| reliable: dedicated to one job, fast to respond | faults are hard to fix: troubleshooting / repair is a specialist, expensive task |
| can be controlled remotely / connected (smart devices) | can't be adapted for another task / functionality can't easily be extended |
| faulty or outdated devices are often thrown away rather than repaired, leading to e-waste |
Examples: washing machines, microwave ovens, TVs, car engine management and lane-detection systems, video doorbells, alarm systems, 3D printers, traffic lights, smart watches.
Buffers
- The sender (e.g. the computer) writes data into the buffer at its own, faster speed.
- The computer is then free to carry on with other tasks instead of waiting for the slower device.
- The receiver (e.g. the printer) takes data out of the buffer at its own, slower speed.
- When the buffer is empty, the device sends an interrupt to the processor requesting more data (or, if full, signals to stop sending).
| Example | Why the buffer is there |
|---|---|
| Printing (laser / 3D printer) | the printer is far slower than the computer: the document goes into the buffer and the user keeps working |
| Writing to a hard disk / optical disc | the computer transfers data faster than the drive can write it |
| Streaming video / audio | data arrives unevenly over the network; the buffer holds some ahead so playback is smooth |
| Keyboard | keys pressed while the processor is busy are kept in order until it reads them |
| Video doorbell / CCTV | video from the camera waits in a buffer before going to storage or across the network |
Mark-scheme focus
Why is the lane detection system an embedded system? (2 marks)
![A car has several features. (a) One feature is a lane detection system, which monitors the lines either side of the lane and automatically moves the car away from a line. Explain why the lane detection system is an example of an embedded system. [2]](/notes-content/9618/hardware/img/9618_s22_12_q02_a.png)
- The lane detection system is built into / integrated into the car B1
- It only performs one task // it is not easily changed / updated by the car owner B1
- “It is embedded in the car” (repeats the term)
- “It is a control system” (a different idea)
- Repeating how the system works (given in the question)
From: 9618/12/M/J/22 Q2(a)
Explain the purpose of a buffer, with one other example (3 marks)
![(c) A computer uses a buffer when playing the audio message. Explain the purpose of a buffer in a computer system using one other example. [3]](/notes-content/9618/hardware/img/9618_w22_13_q01_c.png)
- Purpose: to act as temporary storage … before data is used by the receiving device … to allow processes / devices to operate at different speeds / independently B2
- Example: printer buffer // video buffer when streaming // keyboard buffer B1
- Only describing how the buffer works, with no reason (speed difference)
- Using audio again (the question wants another example)
From: 9618/13/O/N/22 Q1(c)
- Embedded systems in most papers: define, why X is embedded, features, drawbacks (1-3 marks) - applied to the device given.
- Buffers: purpose (1-3) or how a buffer is used by a printer / disk / headset (3-4).
Worked examples
Example 1 · An embedded system in a washing machine, with its RAM and ROM (Paper 1, 4 marks) ★ Easy
![Kiara has a washing machine and a refrigerator. (a) She has an embedded system in her washing machine. Describe what is meant by an embedded system, using the washing machine as an example. [2] (b) The embedded system uses RAM and ROM. State the purpose of RAM and ROM within the washing machine's embedded system. [2]](/notes-content/9618/hardware/img/9618_s21_11_q05_ab.png)
Every answer must be about the washing machine: the report said many were generic.
- using … as an exampleapply each point to the washing machine
- (a)define + apply
- (b)RAM, ROM in the washer
- (b)
- RAMdata in use now: the chosen program, sensor readings
- ROMstart-up instructions / the wash programs
5 Now solve it have a go on paper first, then open the worked solution
- (a) A microprocessor within a larger system that performs one specific task B1; e.g. it only controls the programs for the washing cycle B1
- (b) RAM: stores the wash program the user chose / the data read from the sensors / the time left B1; ROM: stores the start-up instructions (for the washing cycles) B1
Each point names something the washing machine actually does ✓.
Example 2 · Characteristics of an embedded system (Paper 1, 3 marks) ★ Easy
![(b)(ii) The car alarm is an example of an embedded system. Describe the characteristics of an embedded system. [3]](/notes-content/9618/hardware/img/9618_w22_13_q10_bii.png)
Three separate characteristics.
- (b)(ii)3 characteristics
Is “embedded in another system” enough?
No: say “integrated into a larger system” (the report).
5 Now solve it have a go on paper first, then open the worked solution
- Built into / integrated into a larger system (the car alarm) B1
- Combination of hardware and software designed for a specific function B1
- Must have a processor, memory and input / output // not easily changed / updated by the owner B1
✓
Example 3 · Drawbacks of embedded systems (Paper 1, 3 marks) ★ Easy
![Embedded systems are used in many electronic devices. (a) Describe the drawbacks of embedded systems. [3]](/notes-content/9618/hardware/img/9618_w24_12_q02_a.png)
Drawbacks of being dedicated, built-in and hard to change.
- (a)3 points
5 Now solve it have a go on paper first, then open the worked solution
- It is difficult for the user to change / update the firmware B1
- Errors cannot be fixed easily: repair is a specialist / expensive task B1
- Faulty / outdated devices are often thrown away rather than repaired … leading to e-waste B1
Also credited: functionality can't easily be changed / extended for another task ✓.
Example 4 · A buffer for a hard disk (Paper 1, 4 marks) ★★ Medium
![A memory buffer uses DRAM. (b) Explain how a memory buffer is used when a computer is transferring data to its magnetic hard disk drive. [4]](/notes-content/9618/hardware/img/9618_w24_13_q02_b.png)
Speed mismatch → temporary store → computer fast in → drive slow out.
- (b)4 points
- Buffer
- Whycomputer faster than the HDD
- Incomputer writes at high speed, not held up
- OutHDD reads at its slower rate
5 Now solve it have a go on paper first, then open the worked solution
- The computer transfers data faster than the hard disk can receive it B1
- The buffer is used for temporary storage B1
- The computer transfers data to the buffer at the higher speed and is not held up waiting B1
- Data is transferred from the buffer to the hard disk at the slower rate B1
The order follows the data: computer → buffer → disk ✓.
Example 5 · How a laser printer uses a buffer (Paper 1, 4 marks) ★★ Medium
![A laptop has a laser printer connected. (c) Describe how the laser printer makes use of a buffer. [4]](/notes-content/9618/hardware/img/9618_w23_13_q07_c.png)
The same pattern, now with the interrupt when the buffer empties.
- (c)4 points
5 Now solve it have a go on paper first, then open the worked solution
- The print data is sent by the laptop to the buffer (at laptop speed) B1
- The data is transferred from the buffer to the printer (at printer speed) B1
- … allowing the user / processor to carry on instead of waiting for the slower printer B1
- When the buffer is empty an interrupt is sent to the laptop requesting more data B1
✓
Summary
- Input in, output out; primary memory holds what is in use (processor-accessible); secondary storage keeps data with the power off; removable storage moves it.
- Embedded: dedicated microprocessor system built into a larger device, one task, hard to update. Drawbacks: hard to update / repair, can't be adapted, e-waste.
- Buffer: temporary store between devices of different speeds, so the processor isn't held up; interrupt when empty.
Can I do this?
- I can explain the need for input, output, primary memory, secondary and removable storage.
- I can describe an embedded system and apply it to a given device.
- I can give benefits and drawbacks of embedded systems.
- I can explain the purpose of a buffer and how one is used in an example.
Anything unticked: revise that section first. All ticked: take the quiz.
Quiz
The multiple-choice and guided questions need JavaScript. The concept checks and exam practice below work without it.
Concept checks
Answer each one in your head first, then open it.
1Is a smartphone an embedded system?Show answer
No: it is a general-purpose computer that runs any app. But it contains embedded systems (e.g. the camera controller).
2Why is a buffer usually made of RAM?Show answer
It must be fast to write and read, and the data in it is only needed briefly, so volatile memory is fine.
Exam-style practice
New questions, not used above. Do them on paper, then mark your work against the official mark scheme.
![Many modern televisions are examples of embedded systems. (a) Explain why these televisions are embedded systems. [2]](/notes-content/9618/hardware/img/9618_w22_11_q09_a.png)
Show the mark scheme
| Part | Answer / working | Marks | Guidance |
|---|---|---|---|
| (a) | The embedded system is built into / integrated into the TV | B1 | |
| Combination of hardware and software designed for a specific function // not easily changed / updated by the TV owner | B1 | ||
| Total: 2 marks | |||
![(d)(ii) The computer uses a buffer when writing data to the optical disc. Explain the use of a buffer when writing data to the optical disc. [3]](/notes-content/9618/hardware/img/9618_w24_11_q03_dii.png)
Show the mark scheme
| Part | Answer / working | Marks | Guidance |
|---|---|---|---|
| (d)(ii) | The computer and optical drive send / receive at different speeds | B1 | |
| A buffer allows temporary storage, so the computer transfers at its higher speed and is not held up / carries on with other tasks | B1 | ||
| Data is transferred from the buffer to the drive at the slower rate (so the drive is not overloaded) | B1 | ||
| Total: 3 marks | |||
![(b) The computer uses a buffer when transmitting data to the VR headset. Explain how a buffer is used when data is transmitted between the computer and the VR headset. [3]](/notes-content/9618/hardware/img/9618_s24_12_q02_b.png)
Show the mark scheme
| Part | Answer / working | Marks | Guidance |
|---|---|---|---|
| (b) | The buffer is a temporary store for data going to the headset | B1 | |
| Data is transferred into the buffer by the computer and retrieved from it by the headset | B1 | ||
| When the buffer is empty / full an interrupt is sent requesting more data / stopping further data | B1 | ||
| Total: 3 marks | |||
![An architect needs a model of a building. (b) State why a 3D printer needs a buffer. [1]](/notes-content/9618/hardware/img/9618_w25_11_q10_b.png)
Show the mark scheme
| Part | Answer / working | Marks | Guidance |
|---|---|---|---|
| (b) | To manage the mismatch in speed between the processor and the 3D printer // to free the processor for other tasks, as data arrives faster than the printer can process it | B1 | |
| Total: 1 mark | |||
Your progress on this note is saved when JavaScript is on.