Question 3

AQA Computer Science Specimen Paper 2 (7517/2)A level7 marks

On the specification

3.1
3.6 Fundamentals of computer systems
3.2
3.6 Fundamentals of computer systems
3.3
4.6 Fundamentals of computer systems
Question text

3 A burglar alarm system is to be implemented that has the following sensors:  a door sensor D that outputs TRUE when the door is open and FALSE when the door is shut  a pressure mat sensor M that outputs TRUE while a weight is detected on it and FALSE when no weight is detected on it. The alarm also has a key K that turns the alarm on and off. K outputs a TRUE signal when the alarm is switched on and FALSE when the alarm is off. The alarm output A sounds a bell. It should be TRUE if:  the alarm is on AND  either of the sensors D or M are set to the value TRUE. 3.1 In the space below, draw a logic circuit that will behave as described above for the inputs D, M and K and the output A. [2 marks] K D A M 3.2 Write a Boolean expression to represent the logic of this alarm system. [2 marks] A = 3.3 In this alarm system, the alarm bell will sound only while the door is open or a weight is placed on the pressure mat. If someone who has stepped on to the mat moves off it, or an open door is closed, the alarm bell will stop ringing. A D-type flip-flop could be incorporated into the logic circuit so that the alarm bell would continue to sound after a person closed the door or moved off the pressure mat. Explain how this could be achieved. In your answer refer to:  why a D-type flip-flop would be suitable for this task  where the D-type flip-flop would need to be inserted into the circuit  what additional input the D-type flip-flop would need. [3 marks]