12

有没有人有任何视觉例子?

4

5 回答 5

3

You would have to have a separate flow chart for the interrupt processing. Flowcharts are meant for showing flow of control, and interrupts, by their very nature, are a break in control flow.

于 2010-03-27T14:21:56.343 回答
3

通常,中断通过在基于 C 的嵌入式系统中使用“共享”全局变量与您的“主”函数(或其他中断)进行通信。我认为在流程图中表示这一点的一种明智方法是在处理块之间使用虚线,其中此类“通信”会影响程序流。

于 2010-05-03T18:49:37.327 回答
2

I would set up a finite state diagram that represents the normal states of control and the interrupt states; each state would be a block-level element that contained a flowcharty kind of diagram.

于 2010-03-27T14:25:09.453 回答
2

根据流程图结构,让中断源自不是源自另一个节点/框的节点/框可能最有意义,因为根据定义,中断不会源自正常的软件流程(除非它是软件-触发中断)。将它放在单独的流程图上可能有意义,或者将其与流程图的其余部分一起显示,这取决于它是否可能触发图表主要流程中的行为。

于 2010-05-03T04:50:09.120 回答
0

通常,如果没有任务操作系统或库,中断只是标记一个变量,然后影响流程。我认为@JustJeff 是对的。

于 2010-03-30T01:02:33.760 回答