?? 點陣式漢字led顯示屏的原理與制作.htm
字號:
style="mso-spacerun: yes"> </SPAN>00H</FONT></SPAN></P>
<P class=MsoNormal><FONT color=#272727 font><SPAN lang=EN-US>LOOP: MOV
A,#0FFH </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;開機初始化,清除畫面</SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 37.5pt"><SPAN lang=EN-US><FONT
color=#272727 font>MOV P0,A<SPAN
style="mso-spacerun: yes"> </SPAN></FONT></SPAN><FONT
color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;清除</SPAN><SPAN
lang=EN-US>P0</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">口</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>ANL P2,#00<SPAN
style="mso-spacerun: yes"> </SPAN></FONT></SPAN><FONT
color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;清除</SPAN><SPAN
lang=EN-US>P2</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">口</SPAN></FONT></P>
<P class=MsoNormal style="TEXT-INDENT: 37.5pt"><SPAN lang=EN-US><FONT
color=#272727 font>MOV R2,#200<SPAN
style="mso-spacerun: yes"> </SPAN></FONT></SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 37.5pt"><SPAN lang=EN-US><FONT
color=#272727 font>D100MS: MOV R3,#250 </FONT></SPAN><FONT color=#272727
font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;延時</SPAN><SPAN
lang=EN-US>100</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">毫秒</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>DJNZ R3,$</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>DJNZ R2,D100MS</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOV 20H,#00H
</FONT></SPAN><FONT color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;取碼指針的初值</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727 font>l100:<SPAN
style="mso-spacerun: yes"> </SPAN>MOV R1,#100
</FONT></SPAN><FONT color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;每個字的停留時間</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727 font>L16:<SPAN
style="mso-spacerun: yes"> </SPAN>MOV R6,#16
</FONT></SPAN><FONT color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;每個字</SPAN><SPAN
lang=EN-US>16</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">個碼</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOV R4,#00H </FONT></SPAN><FONT
color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;掃描指針清零</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOV R0,20H </FONT></SPAN><FONT
color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;取碼指針存入</SPAN><SPAN
lang=EN-US>R0</SPAN></FONT></P>
<P class=MsoNormal><FONT color=#272727 font><SPAN lang=EN-US>L3:<SPAN
style="mso-spacerun: yes"> </SPAN>MOV A,R4<SPAN
style="mso-spacerun: yes"> </SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;掃描指針存入</SPAN><SPAN
lang=EN-US>A</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOV P1,A<SPAN
style="mso-spacerun: yes"> </SPAN></FONT></SPAN><FONT
color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;掃描輸出</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>INC R4<SPAN
style="mso-spacerun: yes">
</SPAN></FONT></SPAN><FONT color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;掃描指針加</SPAN><SPAN
lang=EN-US>1</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,掃描下一個</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOV A,R0<SPAN
style="mso-spacerun: yes"> </SPAN></FONT></SPAN><FONT
color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;</SPAN>
<SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">取碼指針存入</SPAN><SPAN
lang=EN-US>A</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOV DPTR,#TABLE
</FONT></SPAN><FONT color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;取數(shù)據(jù)表的上半部分的代碼</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOVC A,@A+DPTR</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOV P0,A<SPAN
style="mso-spacerun: yes"> </SPAN></FONT></SPAN><FONT
color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;</SPAN>
<SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">輸出到</SPAN><SPAN
lang=EN-US>P0</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>INC R0<SPAN
style="mso-spacerun: yes">
</SPAN></FONT></SPAN><FONT color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;取碼指針加</SPAN><SPAN
lang=EN-US>1</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,取下一個碼。</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOV A,R0</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOV DPTR,#TABLE </FONT></SPAN><FONT
color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;取數(shù)據(jù)表下半部份的代碼</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOVC A,@A+DPTR</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>MOV P2,A<SPAN
style="mso-spacerun: yes">
</SPAN></FONT></SPAN><FONT color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;輸出到</SPAN><SPAN
lang=EN-US>P2</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">口</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>INC R0</FONT></SPAN></P>
<P class=MsoNormal style="TEXT-INDENT: 37.5pt"><FONT color=#272727
font><SPAN lang=EN-US>MOV R3,#02<SPAN
style="mso-spacerun: yes">
</SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;掃描</SPAN><SPAN
lang=EN-US>1</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">毫秒</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727 font>DELAY2:<SPAN
style="mso-spacerun: yes"> </SPAN>MOV R5,#248<SPAN
style="mso-spacerun: yes"> </SPAN></FONT></SPAN><FONT
color=#272727 font><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">;</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>DJNZ R5,$</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><SPAN style="mso-spacerun: yes"><FONT
color=#272727 font>
</FONT></SPAN><FONT color=#272727 font>DJNZ R3,DELAY2</FONT></SPAN></P>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -