Page 112 - ARM Based Microcontroller Projects Using MBED
P. 112

98                        7. USING THE Mbed WITH SIMPLE PROJECTS

                                7.8 PROJECT 5—BINARY COUNTING LEDs

                 7.8.1 Description
                   In this project 8 external LEDs are connected to PORT C the Nucleo-F411RE development
                 board as in the previous project. The LEDs count up in binary every second as shown in
                 Fig. 7.32.

                 7.8.2 Aim

                   The aim of this project is to show how external LEDs can be connected to the Nucleo-
                 F411RE board and how a program can be written so that the LEDs count up in binary.


                 7.8.3 Block Diagram
                   The block diagram of the project is shown in Fig. 7.25, where 8 LEDs are connected to PORT
                 C pins of the Nucleo-F411RE development board.

                 7.8.4 Circuit Diagram

                   The circuit diagram of the project is shown in Fig. 7.26 where the LEDs are connected using
                 current limiting resistors.

                 7.8.5 The PDL

                   Fig. 7.33 shows the PDL of the program.


























                 FIG. 7.32  LEDs counting up in binary.
   107   108   109   110   111   112   113   114   115   116   117