Question: Q1 b (b) Write an embedded C program with Mbed SDK for the FRDM-KL25Z development board to repeatedly display the last FOUR digits of your

Q1 b

Q1 b (b) Write an embedded C program with Mbed SDK for

the FRDM-KL25Z development board to repeatedly display the last FOUR digits of

(b) Write an embedded C program with Mbed SDK for the FRDM-KL25Z development board to repeatedly display the last FOUR digits of your Student ID on the 7-segment display as shown in Figure Q1(b). Each digit should be displayed for one second. For example, if your Student ID is 1357902468, the sequence of the digits to be displayed on the 7-segment display should be 2 + 4 6 8 and the sequence will be repeated continuously. Refer to Table Q1(b) for the 7-segment codes. [10 marks] 8x 1k +5V KL25Z D2 D3 b D4 b d 8 e f D5 D6 D7 D8 D9 e 8 do dp = Figure Q1(b) Table Q1(b) dp a Digit 0 1 2 3 4 5 6 7 8 g 0 0 1 1 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 f 1 0 0 0 1 1 1 0 1 1 e 1 0 1 0 0 0 1 0 1 0 d 1 0 1 1 0 1 1 0 1 1 1 b 1 1 1 1 1 0 0 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 9 1 1 Continued ... (b) Write an embedded C program with Mbed SDK for the FRDM-KL25Z development board to repeatedly display the last FOUR digits of your Student ID on the 7-segment display as shown in Figure Q1(b). Each digit should be displayed for one second. For example, if your Student ID is 1357902468, the sequence of the digits to be displayed on the 7-segment display should be 2 + 4 6 8 and the sequence will be repeated continuously. Refer to Table Q1(b) for the 7-segment codes. [10 marks] 8x 1k +5V KL25Z D2 D3 b D4 b d 8 e f D5 D6 D7 D8 D9 e 8 do dp = Figure Q1(b) Table Q1(b) dp a Digit 0 1 2 3 4 5 6 7 8 g 0 0 1 1 1 1 1 0 1 1 0 0 0 0 0 0 0 0 0 0 f 1 0 0 0 1 1 1 0 1 1 e 1 0 1 0 0 0 1 0 1 0 d 1 0 1 1 0 1 1 0 1 1 1 b 1 1 1 1 1 0 0 1 1 1 0 1 1 0 1 0 1 1 1 1 0 1 1 1 1 9 1 1 Continued

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!