Page 30 - ARM Based Microcontroller Projects Using MBED
P. 30
16 2. MICROCONTROLLER-BASED PROJECT DEVELOPMENT CYCLE
FIG. 2.11 Using REPEAT-UNTIL statement.
2.2.7 Subprograms
There are many ways that subprograms can be represented in PDLs and in flow charts.
Since subprograms are independent program modules they must start and finish with the
BEGIN and END statements, respectively. We should also include the name of the subpro-
gram after the BEGIN and END keywords. Fig. 2.12 shows an example of subprogram called
DISPLAY. Both the PDL and the flow chart representation of the subprogram are shown in
this figure.
FIG. 2.12 Subprogram DISPLAY.