Page 273 - ARM Based Microcontroller Projects Using MBED
P. 273
8.39 EXERCISES 259
8.39 EXERCISES
1. Explain how a multiplexed 7-segment display works.
2. Some alphabetic characters can be displayed using a 7-segment display. Show with
examples which characters can be displayed.
3. A two-digit 7-segment display is connected to a Nucleo-F411RE development board. In
addition, two external buttons called UP and DOWN are connected to the development
board. Write a program that will count up when button UP is pressed, and it will count
down when button DOWN is pressed.
4. An LM35-type analog temperature sensor is connected to one of the analog inputs of a
Nucleo-F411RE development board. In addition, a two-digit 7-segment display is
connected to the development board. Write a program to display the temperature every
10s.
5. Write a program to display a sine wave with a frequency of 1.5kHz and a peak-to-peak
value of 1.2V.