Hardware

Hardware

Computer systems, embedded systems and buffers

Computers and their components AS Level 14 min read

On this page
  1. What you need to be able to do
  2. Input, output, memory and storage
  3. Embedded systems
  4. Buffers
  5. Mark-scheme focus
  6. Worked examples
  7. Summary
  8. Can I do this?
  9. Quiz

What you need to be able to do

Syllabus 3.1 Computers and their components
  • 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

Input devicesProcessor + primary memory (RAM, ROM)Output devices
Data flows in, is processed in memory, and flows out; secondary storage keeps it when the power is off.
PartWhy a computer needs itExamples
Inputto get data / instructions into the computer from the user or the environment, converted into binarykeyboard, touchscreen, microphone, sensors, camera, scanner
Outputto present the results of processing in a form people (or other devices) can usemonitor, printer, speakers, actuators, VR headset
Primary memoryholds the data and instructions currently being used, directly accessible by the processor; fastRAM (programs and data in use), ROM (start-up instructions)
Secondary storagenon-volatile: keeps programs and data permanently when the power is off; large capacity; not directly accessed by the processorhard disk, SSD
Removable storagesecondary storage that can be taken out to transfer or back up data between computersUSB 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

An embedded system is a microprocessor / microcontroller system built into (integrated into) a larger system (a device that is not a general-purpose computer), dedicated to performing one specific task: a combination of hardware and software designed for a specific function.
CharacteristicExample: a washing machine
built into / integrated into a larger systemthe 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 / outputa 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 powera simple microcontroller is enough
“It is an embedded system because it is embedded in the car” repeats the question; “because it is a control system” confuses two ideas (June 2022). Use the characteristics above, applied to the device in the question.
BenefitsDrawbacks
small, cheap to mass-produce, low power consumptiondifficult for the user to change / update the firmware
reliable: dedicated to one job, fast to respondfaults 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

A buffer is an area of memory used as a temporary store for data being transferred between two devices or processes that work at different speeds.
  1. The sender (e.g. the computer) writes data into the buffer at its own, faster speed.
  2. The computer is then free to carry on with other tasks instead of waiting for the slower device.
  3. The receiver (e.g. the printer) takes data out of the buffer at its own, slower speed.
  4. When the buffer is empty, the device sends an interrupt to the processor requesting more data (or, if full, signals to stop sending).
ExampleWhy 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 discthe computer transfers data faster than the drive can write it
Streaming video / audiodata arrives unevenly over the network; the buffer holds some ahead so playback is smooth
Keyboardkeys pressed while the processor is busy are kept in order until it reads them
Video doorbell / CCTVvideo from the camera waits in a buffer before going to storage or across the network
“Explain the purpose of a buffer” is asking why: say the devices work at different speeds and the processor is not held up. Describing only how it fills and empties was the common gap (November 2022).

Mark-scheme focus

Why is the lane detection system an embedded system? (2 marks)

9618/12/M/J/22 Q2Paper 1 · Theory fundamentalsPart (a)2 marksFull size
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]
Credited
  • 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
Not credited
  • “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)

9618/13/O/N/22 Q1Paper 1 · Theory fundamentalsPart (c)3 marksFull size
(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]
Credited
  • 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
Not credited
  • 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
9618/11/M/J/21 Q5Paper 1 · Theory fundamentalsParts (a) and (b)4 marksFull size
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]
1 Read it with me what is actually happening?

Every answer must be about the washing machine: the report said many were generic.

  • using … as an exampleapply each point to the washing machine
2 What is it asking for? the target, part by part
  • (a)define + apply2
  • (b)RAM, ROM in the washer2
3 What do we know? everything the question gives us
    4 Plan the route work backwards from what we want
    FindKey ideaAlready have itWork out firstTrap
    • (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
    1. (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
    2. (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
    6 Check it does the answer make sense?

    Each point names something the washing machine actually does ✓.

    Example 2 · Characteristics of an embedded system (Paper 1, 3 marks) ★ Easy
    9618/13/O/N/22 Q10Paper 1 · Theory fundamentalsPart (b)(ii)3 marksFull size
    (b)(ii) The car alarm is an example of an embedded system. Describe the characteristics of an embedded system. [3]
    1 Read it with me what is actually happening?

    Three separate characteristics.

      2 What is it asking for? the target, part by part
      • (b)(ii)3 characteristics3
      3 What do we know? everything the question gives us
        4 Plan the route work backwards from what we want
        FindKey ideaAlready have itWork out firstTrap
          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
          1. Built into / integrated into a larger system (the car alarm) B1
          2. Combination of hardware and software designed for a specific function B1
          3. Must have a processor, memory and input / output // not easily changed / updated by the owner B1
          6 Check it does the answer make sense?

          ✓

          Example 3 · Drawbacks of embedded systems (Paper 1, 3 marks) ★ Easy
          9618/12/O/N/24 Q2Paper 1 · Theory fundamentalsPart (a)3 marksFull size
          Embedded systems are used in many electronic devices. (a) Describe the drawbacks of embedded systems. [3]
          1 Read it with me what is actually happening?

          Drawbacks of being dedicated, built-in and hard to change.

            2 What is it asking for? the target, part by part
            • (a)3 points3
            3 What do we know? everything the question gives us
              4 Plan the route work backwards from what we want
              FindKey ideaAlready have itWork out firstTrap
                5 Now solve it have a go on paper first, then open the worked solution
                1. It is difficult for the user to change / update the firmware B1
                2. Errors cannot be fixed easily: repair is a specialist / expensive task B1
                3. Faulty / outdated devices are often thrown away rather than repaired … leading to e-waste B1
                6 Check it does the answer make sense?

                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
                9618/13/O/N/24 Q2Paper 1 · Theory fundamentalsPart (b)4 marksFull size
                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]
                1 Read it with me what is actually happening?

                Speed mismatch → temporary store → computer fast in → drive slow out.

                  2 What is it asking for? the target, part by part
                  • (b)4 points4
                  3 What do we know? everything the question gives us
                    4 Plan the route work backwards from what we want
                    FindKey ideaAlready have itWork out firstTrap
                    • 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
                    1. The computer transfers data faster than the hard disk can receive it B1
                    2. The buffer is used for temporary storage B1
                    3. The computer transfers data to the buffer at the higher speed and is not held up waiting B1
                    4. Data is transferred from the buffer to the hard disk at the slower rate B1
                    6 Check it does the answer make sense?

                    The order follows the data: computer → buffer → disk ✓.

                    Example 5 · How a laser printer uses a buffer (Paper 1, 4 marks) ★★ Medium
                    9618/13/O/N/23 Q7Paper 1 · Theory fundamentalsPart (c)4 marksFull size
                    A laptop has a laser printer connected. (c) Describe how the laser printer makes use of a buffer. [4]
                    1 Read it with me what is actually happening?

                    The same pattern, now with the interrupt when the buffer empties.

                      2 What is it asking for? the target, part by part
                      • (c)4 points4
                      3 What do we know? everything the question gives us
                        4 Plan the route work backwards from what we want
                        FindKey ideaAlready have itWork out firstTrap
                          5 Now solve it have a go on paper first, then open the worked solution
                          1. The print data is sent by the laptop to the buffer (at laptop speed) B1
                          2. The data is transferred from the buffer to the printer (at printer speed) B1
                          3. … allowing the user / processor to carry on instead of waiting for the slower printer B1
                          4. When the buffer is empty an interrupt is sent to the laptop requesting more data B1
                          6 Check it does the answer make sense?

                          ✓

                          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?

                          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.

                          Q19618/11/O/N/22 Q9Paper 1 · Theory fundamentalsPart (a)2 marksFull size
                          Many modern televisions are examples of embedded systems. (a) Explain why these televisions are embedded systems. [2]
                          Show the mark scheme
                          PartAnswer / workingMarksGuidance
                          (a)The embedded system is built into / integrated into the TVB1
                          Combination of hardware and software designed for a specific function // not easily changed / updated by the TV ownerB1
                          Total: 2 marks
                          Q29618/11/O/N/24 Q3Paper 1 · Theory fundamentalsPart (d)(ii)3 marksFull size
                          (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]
                          Show the mark scheme
                          PartAnswer / workingMarksGuidance
                          (d)(ii)The computer and optical drive send / receive at different speedsB1
                          A buffer allows temporary storage, so the computer transfers at its higher speed and is not held up / carries on with other tasksB1
                          Data is transferred from the buffer to the drive at the slower rate (so the drive is not overloaded)B1
                          Total: 3 marks
                          Q39618/12/M/J/24 Q2Paper 1 · Theory fundamentalsPart (b)3 marksFull size
                          (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]
                          Show the mark scheme
                          PartAnswer / workingMarksGuidance
                          (b)The buffer is a temporary store for data going to the headsetB1
                          Data is transferred into the buffer by the computer and retrieved from it by the headsetB1
                          When the buffer is empty / full an interrupt is sent requesting more data / stopping further dataB1
                          Total: 3 marks
                          Q49618/11/O/N/25 Q10Paper 1 · Theory fundamentalsPart (b)1 markFull size
                          An architect needs a model of a building. (b) State why a 3D printer needs a buffer. [1]
                          Show the mark scheme
                          PartAnswer / workingMarksGuidance
                          (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 itB1
                          Total: 1 mark

                          Your progress on this note is saved when JavaScript is on.