2025-05-27 16:03:52 +08:00

110 lines
9.9 KiB
Plaintext
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<mxfile host="Electron" modified="2023-06-02T12:55:25.933Z" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/21.2.8 Chrome/112.0.5615.165 Electron/24.2.0 Safari/537.36" etag="95Rm5XCTjJJJ0MgO01JQ" version="21.2.8" type="device">
<diagram name="第 1 页" id="Ghm6eOXCY3Oxz9aPBUkc">
<mxGraphModel dx="1241" dy="744" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="PA3ascb84F3rLPraz_4V-12" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-1" target="PA3ascb84F3rLPraz_4V-3" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-1" value="程序开始" style="ellipse;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="320" y="80" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-14" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-2" target="PA3ascb84F3rLPraz_4V-4" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-2" value="将新的中断程序的地址&lt;br&gt;写入主片和从片的对应的中断号" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="320" y="240" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-13" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-3" target="PA3ascb84F3rLPraz_4V-2" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-3" value="获取并保存主片和从片的原中断向量" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="320" y="160" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-15" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-4" target="PA3ascb84F3rLPraz_4V-5" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-4" value="打开主片和从片相应的中断屏蔽" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="320" y="320" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-16" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-5" target="PA3ascb84F3rLPraz_4V-6" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-5" value="初始化8255芯片" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="320" y="400" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-17" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-6" target="PA3ascb84F3rLPraz_4V-9" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-6" value="开中断" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="320" y="480" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-18" value="Y" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-9" target="FDWMo__iFbWUBXxNi3Jb-6" edge="1">
<mxGeometry x="-0.5" y="10" relative="1" as="geometry">
<mxPoint as="offset" />
<mxPoint x="340" y="620" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-19" value="N" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-9" edge="1">
<mxGeometry x="-0.8889" y="-10" relative="1" as="geometry">
<mxPoint x="420" y="540" as="targetPoint" />
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-9" value="判断计数是否达到10次" style="rhombus;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="320" y="560" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-11" value="程序结束" style="ellipse;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="320" y="800" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-26" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-20" target="PA3ascb84F3rLPraz_4V-22" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-20" value="收到高脉冲,中断程序开始" style="ellipse;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="600" y="320" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-29" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-21" target="PA3ascb84F3rLPraz_4V-24" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-21" value="将LED灯状态取反" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="600" y="560" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-27" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-22" target="PA3ascb84F3rLPraz_4V-23" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-22" value="状态压栈,关中断" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="600" y="400" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-28" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-23" target="PA3ascb84F3rLPraz_4V-21" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-23" value="计数加1" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="600" y="480" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-30" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="PA3ascb84F3rLPraz_4V-24" target="PA3ascb84F3rLPraz_4V-25" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-24" value="向主从、片发送EOI命令开中断状态退栈" style="rounded=1;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="600" y="640" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="PA3ascb84F3rLPraz_4V-25" value="中断程序结束" style="ellipse;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="600" y="720" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="FDWMo__iFbWUBXxNi3Jb-9" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="FDWMo__iFbWUBXxNi3Jb-6" target="FDWMo__iFbWUBXxNi3Jb-7">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="FDWMo__iFbWUBXxNi3Jb-6" value="恢复主片和从片的原中断向量" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="320" y="640" width="200" height="40" as="geometry" />
</mxCell>
<mxCell id="FDWMo__iFbWUBXxNi3Jb-8" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="FDWMo__iFbWUBXxNi3Jb-7" target="PA3ascb84F3rLPraz_4V-11">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="FDWMo__iFbWUBXxNi3Jb-7" value="关闭主片和从片相应的中断屏蔽" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="320" y="720" width="200" height="40" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>