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

2.2 PROGRAM DEVELOPMENT TOOLS                      13



















            FIG. 2.4  Sequencing and its equivalent flow chart.















            FIG. 2.5  Using IF-THEN-ENDIF.



















            FIG. 2.6  Using IF-THEN-ELSE-ENDIF.

            2.2.4 DO-FOREVER-ENDDO

              The DO-FOREVER-ENDDO statement is used to repeat a loop forever. This kind of loop is
            commonly used in microcontroller applications where an operation or a number of opera-
            tions are executed continuously. Fig. 2.8 shows an example of using the DO-FOREVER-
            ENDDO statement.
   22   23   24   25   26   27   28   29   30   31   32