⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 常用接口电路及其编程.htm

📁 电压计(c语言编写的) 通过led灯显示 电路图说明: 1、R1、R2、D1、D2 组成发光二极管显示
💻 HTM
📖 第 1 页 / 共 5 页
字号:
lang=EN-US style="FONT-FAMILY: System">6</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个数据全显示完。</SPAN></P>
<P><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">RET</SPAN></P>
<P><SPAN lang=EN-US style="FONT-FAMILY: System">SETTAB:</SPAN><SPAN 
lang=EN-US><SPAN 
style="mso-tab-count: 6">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>;</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">字形表,前面有介绍,以后我们再介绍字形表的制作。</SPAN></P>
<P><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">DB<SPAN 
style="mso-tab-count: 1">&nbsp; </SPAN>03H 9FH 27H 0DH 99H 49H 41H 1FH 01H 09H 
0FFH</SPAN></P>
<P><SPAN lang=EN-US style="FONT-FAMILY: System">;<SPAN 
style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>0 1 2 3 4 5 6 7 8 9 </SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">消隐码</SPAN></P>
<P><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">测试用主程序</SPAN></P>
<P><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">ORG<SPAN 
style="mso-tab-count: 1"> </SPAN>0000H</SPAN></P>
<P><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">AJMP<SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </SPAN>START</SPAN></P>
<P><SPAN lang=EN-US style="FONT-FAMILY: System"><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </SPAN>ORG<SPAN 
style="mso-tab-count: 1"> </SPAN>30H<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-FAMILY: System">START:<SPAN 
style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>MOV<SPAN 
style="mso-tab-count: 1"> </SPAN>SP,#6FH<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US style="FONT-FAMILY: System"><SPAN 
style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN>MOV<SPAN style="mso-tab-count: 1"> </SPAN>65H,#0<o:p></o:p></SPAN></P>
<P><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">MOV<SPAN 
style="mso-tab-count: 1"> </SPAN>64H,#1</SPAN></P>
<P><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">MOV<SPAN 
style="mso-tab-count: 1"> </SPAN>63H,#2</SPAN></P>
<P><SPAN lang=EN-US style="FONT-FAMILY: System"><SPAN 
style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">MOV<SPAN 
style="mso-tab-count: 1"> </SPAN>62H,#3</SPAN></P>
<P><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">MOV<SPAN 
style="mso-tab-count: 1"> </SPAN>61H,#4</SPAN></P>
<P><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">MOV<SPAN 
style="mso-tab-count: 1"> </SPAN>60H,#5</SPAN></P>
<P><SPAN lang=EN-US style="FONT-FAMILY: System"><SPAN 
style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">LCALL<SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp; </SPAN>DISP</SPAN></P>
<P><SPAN lang=EN-US><SPAN 
style="mso-tab-count: 2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</SPAN></SPAN><SPAN lang=EN-US style="FONT-FAMILY: System">SJMP<SPAN 
style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp; </SPAN>$</SPAN></P>
<P><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如果按图示数码管排列,则以上主程序将显示的是</SPAN><SPAN 
lang=EN-US style="FONT-FAMILY: System">543210</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,想想看,如果要显示</SPAN><SPAN 
lang=EN-US style="FONT-FAMILY: System">012345</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">该怎样送数?</SPAN></P>
<P><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">下面我们来分析一下字形表的制作问题。先就上述</SPAN><SPAN 
lang=EN-US>“</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">标准</SPAN><SPAN 
lang=EN-US>”</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的图形来看吧。写出数据位和字形的对应关系并列一个表如下(设为共阳型,也就是相应的输出位为</SPAN><SPAN 
lang=EN-US style="FONT-FAMILY: System">0</SPAN><SPAN 
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">时笔段亮)</SPAN></P>
<TABLE border=1 cellPadding=0 cellSpacing=1 
style="BORDER-BOTTOM: black 0.75pt outset; BORDER-LEFT: black 0.75pt outset; BORDER-RIGHT: black 0.75pt outset; BORDER-TOP: black 0.75pt outset; WIDTH: 452.25pt; mso-cellspacing: .7pt; mso-padding-alt: 5.25pt 5.25pt 5.25pt 5.25pt" 
width=603>
  <TBODY>
  <TR>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 14%" 
    vAlign=top width="14%">
      <P><SPAN 
      style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">数据位</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 6%" 
    vAlign=top width="6%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">D7</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 10%" 
    vAlign=top width="10%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">D6</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 10%" 
    vAlign=top width="10%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">D5</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 10%" 
    vAlign=top width="10%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">D4</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 10%" 
    vAlign=top width="10%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">D3</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 10%" 
    vAlign=top width="10%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">D2</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 10%" 
    vAlign=top width="10%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">D1</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 10%" 
    vAlign=top width="10%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">D0</SPAN></P></TD>
    <TD rowSpan=2 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 12%" 
    vAlign=top width="12%">
      <P><SPAN 
      style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">字形码</SPAN></P></TD></TR>
  <TR>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 14%" 
    vAlign=top width="14%">
      <P><SPAN 
      style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">笔段位</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 6%" 
    vAlign=top width="6%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">A</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 10%" 
    vAlign=top width="10%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">B</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 10%" 
    vAlign=top width="10%">
      <P><SPAN lang=EN-US style="FONT-FAMILY: System">C</SPAN></P></TD>
    <TD 
    style="BORDER-BOTTOM: black 0.75pt inset; BORDER-LEFT: black 0.75pt inset; BORDER-RIGHT: black 0.75pt inset; BORDER-TOP: black 0.75pt inset; PADDING-BOTTOM: 5.25pt; PADDING-LEFT: 5.25pt; PADDING-RIGHT: 5.25pt; PADDING-TOP: 5.25pt; WIDTH: 10%" 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -