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:
![image001.gif](https://scienceprog.com/wp-content/uploads/2021/01/image-90.gif)
![image002.gif](https://scienceprog.com/wp-content/uploads/2021/01/image-91.gif)
![image003.gif](https://scienceprog.com/wp-content/uploads/2021/01/image-92.gif)
![image004.gif](https://scienceprog.com/wp-content/uploads/2021/01/image-93.gif)
![image005.gif](https://scienceprog.com/wp-content/uploads/2021/01/image-94.gif)
![image006.gif](https://scienceprog.com/wp-content/uploads/2021/01/image-95.gif)
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.
![image007.png](https://scienceprog.com/wp-content/uploads/2021/01/image-45.png)