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.