Building embedded software using algorithm flow charts

Embedded software consists of various functions performing particular tasks. Before writing any ASM or C code, it is good to draw an algorithm flow chart. Flow charts are a visual method of representing the inner algorithm. It is easier to analyze the algorithm and write the code according to the diagram.

The main parts of diagram:

Fig 1. Simple series instructions
Fig 2. Parallel instructions
Fig 3. if-then-else structure
Fig 4. while (for) structure
Fig 5. do until structure
Fig 6. case structure

For each function or procedure, make separate algorithm flow charts – this enables easier integration of them into the main function.

Sample how program flow chart may look.

Fig 7. Sample program Flow Chart

Leave a Reply