ExamBank Scot · N5 Engineering Science question bank · All N5 Engineering Science questions

N5 Engineering Science 2017 Question 9

9 marks · Flowcharts and programs

A question display board in a television game show is operated by a microcontroller. Contestants are shown a question and given 10 seconds to answer. The system must perform the following sequence: • When the host presses a question switch, a display turns on showing the question. • When the host presses a timer start switch, an LED will pulse on and off 16 times over an 8 second period. • A buzzer will then sound for 2 seconds. • The buzzer and display board then turn off. • The system then restarts ready for the next question. Input and output connections to the microcontroller are shown in the table below. Input Connection Pin Output Connection 7 Display board 6 LED 5 Buzzer Timer start switch 1 Question switch 0 Complete, with reference to the Data Booklet and the input and output connections shown, the flowchart for the control sequence. Include all pin numbers in your flowchart. Start N Pin 0 on? Y

Marking scheme

Pin numbers must be correct where applicable. Pin 7 on and off – 1 Pin 6 on and off - 1 Pin 5 on and off - 1 Pin 1 on? (inc. Y/N, loop and arrow head) – 1 All 3 delays (with wait 2s) – 1 Assume all delays in seconds unless units are given or a high level command is used: pause 250 (PBASIC) delay 250 (C) LED on/off time total = 0.5 s – 1 Loop x 16? (inc. Y/N, loop and arrow to before pin 6 on) – 1 Continuous loop (with arrow to start) – 1 All marked symbols correct – 1 Ignore any additional steps.

Previous question: N5 Engineering Science 2017 Question 8

Next question: N5 Engineering Science 2017 Question 10