Question 6(b) 2016 · May-June · Paper 32 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 6
Part (b)
Part (b)
Show text version of question
Question 6
Part (b)
Question 6
An intruder detection system for a large house has four sensors. An 8-bit memory location stores
the output from each sensor in its own bit position.
The bit value for each sensor shows:
- 1 – the sensor has been triggered
- 0 – the sensor has not been triggered
The bit positions are used as follows:
Not used Sensor 4 Sensor 3 Sensor 2 Sensor 1
The output from the intruder detection system is a loud alarm.
Part (b)
Name two sensors that could be used in this intruder detection system. Give a reason for
your choice.
Sensor 1 ...................................................................................................................................
Reason .....................................................................................................................................
...................................................................................................................................................
Sensor 2 ...................................................................................................................................
Reason .....................................................................................................................................
...............................................................................................................................................[4]
Question 13
The intruder system is set up so that the alarm will only sound if two or more sensors have been triggered. An assembly language program has been written to process the contents of the memory location.
The table shows part of the instruction set for the processor used.
Instruction Explanation Op code Operand Direct addressing. Load the contents of the given address to LDD <address> ACC STO <address> Store the contents of ACC at the given address INC <register> Add 1 to the contents of the register (ACC or IX) ADD <address> Add the contents of the given address to the contents of ACC Bitwise AND operation of the contents of ACC with the AND <address> contents of <address> CMP #n Compare the contents of ACC with the number n JMP <address> Jump to the given address Following a compare instruction, jump to <address> if the JPE <address> compare was True Following a compare instruction, jump to <address> if the JGT <address> content of ACC is greater than the number used in the compare instruction END End the program and return to the operating system
Question 14
Why this question appears here
99% assigned-topic match · Processor fundamentals › Assembly language
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_s16_qp_32.pdf
