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

7.4 PROJECT 1—FLASHING LED                       83
                                 7.4 PROJECT 1—FLASHING LED

            7.4.1 Description
              In this project the user LED on the Nucleo-F411RE board is flashed every 2s.




            7.4.2 Aim
              The aim of this project is to show how the Mbed can be used to write a program, compile it,
            and then upload the program to the program memory of the Nucleo development board. Ad-
            ditionally, the program shows how a GPIO port can be used in output mode and also how the
            user LED on the board can be flashed at regular intervals.




            7.4.3 Block Diagram
              Fig. 7.9 shows the block diagram of the project.



            7.4.4 PDL of the Project

              The PDL of the project is shown in Fig. 7.10













            FIG. 7.9  Block diagram of the project.


                                    BEGIN
                                          Configure user LED as output
                                          DO FOREVER
                                                Turn ON LED
                                                Wait 2 seconds
                                                Turn OFF LED
                                                Wait 2 seconds
                                          ENDDO
                                    END
            FIG. 7.10  PDL of the project.
   92   93   94   95   96   97   98   99   100   101   102