Electronic – Flow diagrams for embedded applications

code-designembedded

I have embedded application which uses interrupts and dma. The main loop only sends data to PC.

How to design flow diagram of program? How to show interrupts and dma working on flow diagram?

I've found several topics in google about embedded uml diagrams, and some questions there: Designing embedded software , but haven't found examples of such a diagrams.

Best Answer

Show the workflow diagrams independently, one for the main loop, one for the DMA and the other for the interrupts.

As the interrups are triggered by external events (like ADC ready, timer, external interrupts) it cannot be in the main loop.

Just at the begining of the workflow, put the tittle in a circle, for example: "Main", "EXT_INT", "DMA", etc.

Good luck!