?? 點陣式漢字led顯示屏的原理與制作.htm
字號:
lang=EN-US>p0.1 </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.2 </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.3 </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.4 </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.5 </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.6 </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.7 </SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">滅。即二進制</SPAN><SPAN
lang=EN-US>00000100</SPAN><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><SPAN
lang=EN-US> 04h.</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><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>p27</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">向</SPAN><SPAN
lang=EN-US>p20</SPAN><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>00000000</SPAN><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><SPAN
lang=EN-US>00h</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN><SPAN
lang=EN-US><O:P> </O:P></SPAN></FONT></P>
<P class=MsoNormal
style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0; mso-char-indent-size: 10.5pt"><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>p05</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">點亮,為</SPAN><SPAN
lang=EN-US>00000100</SPAN><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><SPAN
lang=EN-US>04h.</SPAN></FONT></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT
color=#272727 font>這一列完成后繼續進行下半部分的掃描,</FONT></SPAN><FONT color=#272727
font><SPAN lang=EN-US>p21</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">點亮,為二進制</SPAN><SPAN
lang=EN-US>00000010</SPAN><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><SPAN
lang=EN-US>02h.</SPAN></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US style="mso-spacerun: yes"><FONT
color=#272727 font> </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>32</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">個</SPAN><SPAN
lang=EN-US>8</SPAN><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>”</SPAN></FONT></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT
color=#272727 font>的掃描代碼為:</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727
font>04H,00H,04H,02H,04H,02H,04H,04H</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727
font>04H,08H,04H,30H,05H,0C0H,0FEH,00H</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727
font>05H,80H,04H,60H,04H,10H,04H,08H</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727
font>04H,04H,0CH,06H,04H,04H,00H,00H</FONT></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT
color=#272727 font>由這個原理可以看出,</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></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US style="mso-spacerun: yes"><FONT
color=#272727 font> </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></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727 font><!--[if gte vml 1]><V:SHAPE id=_x0000_i1027
style="WIDTH: 4in; HEIGHT: 216.75pt" type="#_x0000_t75"><V:IMAGEDATA
o:title="999" src="16hanz3.jpg" /></V:SHAPE><![endif]--><IMG height=289
src="點陣式漢字LED顯示屏的原理與制作.files/16hanz3.jpg" width=384
v:shapes="_x0000_i1027"><O:P> </O:P></FONT></SPAN></P>
<P class=MsoNormal
style="TEXT-INDENT: 31.5pt; mso-char-indent-count: 3.0; mso-char-indent-size: 10.5pt"><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>”</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 style="mso-spacerun: yes"><FONT
color=#272727 font> </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>i0</SPAN><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
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><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>
<SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如果將其全部接入</SPAN><SPAN
lang=EN-US>89c51</SPAN></FONT></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT
color=#272727 font>單片機,</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>32</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">條</SPAN><SPAN
lang=EN-US>io</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">口,這樣造成了</SPAN><SPAN
lang=EN-US>io</SPAN><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>4-16</SPAN><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">線譯碼器</SPAN><SPAN
lang=EN-US>74ls154</SPAN><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>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><FONT color=#272727
font>p0</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><FONT color=#272727 font><!--[if gte vml 1]><V:SHAPE id=_x0000_i1028
style="WIDTH: 387pt; HEIGHT: 322.5pt" type="#_x0000_t75"><V:IMAGEDATA
gain="74473f" o:title="hanzi"
src="file:///C:/WINDOWS/TEMP/msoclip1/01/clip_image006.jpg" /></V:SHAPE><![endif]--><IMG height=430
src="點陣式漢字LED顯示屏的原理與制作.files/16hanz4.jpg" width=516
v:shapes="_x0000_i1028"></FONT></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-FAMILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT
color=#272727 font>程序清單:</FONT></SPAN></P>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727 font>ORG<SPAN
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -