3.4. System software
A subsection of Computer Science, 9608, through 3. Advanced Theory
Listing 10 of 52 questions
A computer system is used to manage some of the functions in a vehicle. The vehicle has a number of sensors and actuators. One sensor is used to monitor the moisture on the screen. If the moisture exceeds a pre-set value, the windscreen wiper motor turns on automatically. The software used in the computer system is dedicated to the sensor management functions. When the system starts, the software runs some initial tasks. It then loops continuously until the system is switched off. State the name given to the type of system described. Explain your answer to part . Within the software loop, the value of each sensor is read in turn. The value read from the sensor is then processed. State two drawbacks with this method of reading and processing sensor data. Drawback 1 Drawback 2 An alternative method of reading and processing sensor data is to use interrupts. Each sensor is connected so that it can send an interrupt signal to the processor if its value changes. On receipt of an interrupt signal, the processor carries out a number of steps as shown in the following diagram. Interrupt Return to task 1. Disable interrupts 6. Enable interrupts 2. Save current task 3. Identify source of 4. Jump to Interrupt Service Routine interrupt 5. Restore task State the purpose of step 1. State the purpose of step 6. Explain how the current task is saved in step 2. State two benefits of using interrupts to read and process the sensor data. Benefit 1 Benefit 2 The interrupt handler in step 3 has to test each bit of a 16-bit register to discover the source of the interrupt. The contents of the 16-bit register are loaded into the 16-bit accumulator: Accumulator Bit: An instruction is required to achieve the following: • If bit 9 is zero, set the accumulator to zero. • If bit 9 is one, set the accumulator to a non-zero value. Write this instruction using an appropriate bitwise operation.
9608_s17_qp_31
THEORY
2017
Paper 3, Variant 1
A computer system is used to manage some of the functions in a vehicle. The vehicle has a number of sensors and actuators. One sensor is used to monitor the moisture on the screen. If the moisture exceeds a pre-set value, the windscreen wiper motor turns on automatically. The software used in the computer system is dedicated to the sensor management functions. When the system starts, the software runs some initial tasks. It then loops continuously until the system is switched off. State the name given to the type of system described. Explain your answer to part . Within the software loop, the value of each sensor is read in turn. The value read from the sensor is then processed. State two drawbacks with this method of reading and processing sensor data. Drawback 1 Drawback 2 An alternative method of reading and processing sensor data is to use interrupts. Each sensor is connected so that it can send an interrupt signal to the processor if its value changes. On receipt of an interrupt signal, the processor carries out a number of steps as shown in the following diagram. Interrupt Return to task 1. Disable interrupts 6. Enable interrupts 2. Save current task 3. Identify source of 4. Jump to Interrupt Service Routine interrupt 5. Restore task State the purpose of step 1. State the purpose of step 6. Explain how the current task is saved in step 2. State two benefits of using interrupts to read and process the sensor data. Benefit 1 Benefit 2 The interrupt handler in step 3 has to test each bit of a 16-bit register to discover the source of the interrupt. The contents of the 16-bit register are loaded into the 16-bit accumulator: Accumulator Bit: An instruction is required to achieve the following: • If bit 9 is zero, set the accumulator to zero. • If bit 9 is one, set the accumulator to a non-zero value. Write this instruction using an appropriate bitwise operation.
9608_s17_qp_33
THEORY
2017
Paper 3, Variant 3
Questions Discovered
52