📄 00-99jishuqi.htm
字号:
style='mso-bidi-font-size:10.5pt;font-family:"Times New Roman";mso-bidi-font-family:
宋体'>3</span><span style='mso-bidi-font-size:10.5pt;mso-ascii-font-family:
"Times New Roman";mso-hansi-font-family:"Times New Roman"'>.</span><span
lang=EN-US style='font-size:7.0pt;font-family:"Times New Roman"'>
</span><span style='mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:
"Times New Roman"'>单片机对计的数值要进行数码显示,计得的数是十进数,含有十位和个位,我们要把十位和个位拆开分别送出这样的十位和个位数值到对应的数码管上显示。如何拆开十位和个位我们可以把所计得的数值对</span><span
lang=EN-US>10</span><span style='mso-ascii-font-family:"Times New Roman";
mso-hansi-font-family:"Times New Roman"'>求余,即可个位数字,对</span><span lang=EN-US>10</span><span
style='mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman"'>整除,即可得到十位数字了。</span><span
style='mso-bidi-font-size:10.5pt'><u1:P> </span><span lang=EN-US></u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:36.0pt;text-indent:-36.0pt;tab-stops:list 36.0pt;word-break:break-all'><span
style='mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman"'>(</span><span
lang=EN-US style='font-family:"Times New Roman";mso-bidi-font-family:宋体'>4</span><span
style='mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:"Times New Roman"'>.</span><span
lang=EN-US style='font-size:7.0pt;font-family:"Times New Roman"'>
</span><span style='mso-ascii-font-family:"Times New Roman";mso-hansi-font-family:
"Times New Roman"'>通过查表方式,分别显示出个位和十位数字。</span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:18.0pt;text-indent:-18.0pt;tab-stops:list 18.0pt;word-break:break-all'><b
style='mso-bidi-font-weight:normal'><i style='mso-bidi-font-style:normal'><span
lang=EN-US style='font-family:幼圆'>5</span></i></b><b style='mso-bidi-font-weight:
normal'><i style='mso-bidi-font-style:normal'><span style='font-family:幼圆'>.</span></i></b><b
style='mso-bidi-font-weight:normal'><i style='mso-bidi-font-style:normal'><span
style='font-size:7.0pt;font-family:"Times New Roman";mso-fareast-font-family:
幼圆'> </span></i></b><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="_x0000_s1026" type="#_x0000_t75" alt="" style='position:absolute;
left:0;text-align:left;margin-left:0;margin-top:0;width:214.5pt;height:210.75pt;
z-index:1;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;
mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;
mso-position-horizontal:left;mso-position-horizontal-relative:text;
mso-position-vertical-relative:line' o:allowoverlap="f">
<v:imagedata src="http://www.runmcu.com/Article/UploadFiles/200509/20050902105812365.jpg"/>
<w:wrap type="square"/>
</v:shape><![endif]--><![if !vml]><img width=286 height=281
src="http://www.runmcu.com/Article/UploadFiles/200509/20050902105812365.jpg"
align=left hspace=12 u7:shapes="_x0000_s1026" v:shapes="_x0000_s1026"><![endif]><span
lang=EN-US style='mso-no-proof:yes'><u2:SHAPE id="_x0000_s1026" style="MARGIN-TOP: 7.8pt; Z-INDEX: 1; LEFT: 0px; MARGIN-LEFT: 99pt; WIDTH: 214.5pt; POSITION: absolute; HEIGHT: 210.6pt; TEXT-ALIGN: left" type="#_x0000_t75" u3:allowoverlap="f"><u2:IMAGEDATA u3:title="C8" src="file:///C:/DOCUME~1/sxj1/LOCALS~1/Temp/msoclip1/01/clip_image003.png"></u2:IMAGEDATA><u6:WRAP type="square"></u6:WRAP></u2:SHAPE></span><b
style='mso-bidi-font-weight:normal'><i style='mso-bidi-font-style:normal'><span
style='font-family:幼圆'>程序框图<u1:P> </u1:P></span></i></b></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
word-break:break-all'><span lang=EN-US> <u1:P> </u1:P></span></p>
<p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:
auto;text-align:center;word-break:break-all'><span style='mso-ascii-font-family:
"Times New Roman";mso-hansi-font-family:"Times New Roman"'>图</span><span
lang=EN-US>4.10.2</span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:18.0pt;text-indent:-18.0pt;tab-stops:list 18.0pt;word-break:break-all'><b
style='mso-bidi-font-weight:normal'><i style='mso-bidi-font-style:normal'><span
lang=EN-US style='font-family:幼圆'>6</span></i></b><b style='mso-bidi-font-weight:
normal'><i style='mso-bidi-font-style:normal'><span style='font-family:幼圆'>.</span></i></b><b
style='mso-bidi-font-weight:normal'><i style='mso-bidi-font-style:normal'><span
style='font-size:7.0pt;font-family:"Times New Roman";mso-fareast-font-family:
幼圆'> </span></i></b><b style='mso-bidi-font-weight:normal'><i
style='mso-bidi-font-style:normal'><span style='font-family:幼圆'>汇编源程序<u1:P> </span></i></b><span
lang=EN-US></u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>Count<span style='mso-tab-count:2'> </span>EQU
30H<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>SP1<span style='mso-tab-count:3'> </span>BIT
P3.7<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>ORG
0<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>START:<span style='mso-tab-count:2'> </span>MOV
Count,#00H<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>NEXT:<span style='mso-tab-count:2'> </span>MOV
A,Count<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>MOV
B,#10<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:1'> </span>DIV
AB<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>MOV
DPTR,#TABLE<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:1'> </span>MOVC
A,@A+DPTR<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>MOV
P0,A<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>MOV
A,B<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:1'> </span>MOVC
A,@A+DPTR<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>MOV
P2,A<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>WT:<span style='mso-tab-count:3'> </span>JNB
SP1,WT<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>WAIT:<span style='mso-tab-count:2'> </span>JB
SP1,WAIT<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>LCALL
DELY10MS<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:1'> </span>JB
SP1,WAIT<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>INC
Count<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>MOV
A,Count<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:1'> </span>CJNE
A,#100,NEXT<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>LJMP
START<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>DELY10MS:<span style='mso-tab-count:1'> </span>MOV
R6,#20<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>D1:<span style='mso-tab-count:3'> </span>MOV
R7,#248<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>DJNZ
R7,$<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:1'> </span>DJNZ
R6,D1<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>RET<u1:P>
</u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>TABLE:<span style='mso-tab-count:2'> </span>DB
3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span style='mso-tab-count:3'> </span>END<u1:P>
</u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:18.0pt;text-indent:-18.0pt;tab-stops:list 18.0pt;word-break:break-all'><b
style='mso-bidi-font-weight:normal'><i style='mso-bidi-font-style:normal'><span
lang=EN-US style='font-family:幼圆'>7</span></i></b><b style='mso-bidi-font-weight:
normal'><i style='mso-bidi-font-style:normal'><span style='font-family:幼圆'>.</span></i></b><b
style='mso-bidi-font-weight:normal'><i style='mso-bidi-font-style:normal'><span
style='font-size:7.0pt;font-family:"Times New Roman";mso-fareast-font-family:
幼圆'> </span></i></b><b style='mso-bidi-font-weight:normal'><i
style='mso-bidi-font-style:normal'><span lang=EN-US style='font-family:幼圆'>C</span></i></b><b
style='mso-bidi-font-weight:normal'><i style='mso-bidi-font-style:normal'><span
style='font-family:幼圆'>语言源程序<u1:P> </u1:P></span></i></b></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>#include <AT89X51.H><u1:P></u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'>unsigned char code
table[]={0x3f,0x06,0x5b,0x4f,0x66,<u1:P> </u1:P></span></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
line-height:12.0pt;mso-line-height-rule:exactly;word-break:break-all'><span
lang=EN-US style='font-size:9.0pt'><span
style='mso-spacerun:yes'> &nbs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -