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 algorithm flow chart. Flow charts are visual method of representing inner algorithm. It is easer analyze the algorithm and write the code according to diagram.

The main parts of diagram:

image001.gif

Fig 1. Simple series instructions

image002.gif

Fig 2. Parallel instructions

image003.gif

Fig 3. if-then-else structure

image004.gif

Fig 4. while (for) structure

image005.gif

Fig 5. do until structure

image006.gif

Fig 6. case structure

For each function or procedure make separate algorithm flow charts – this enables easer integration of them in to main function.

Sample how program flow chart may look.

image007.png
Fig 7. Sample program Flow Chart

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

To submit your comment, click the image below where it asks you to...