📄 点阵式汉字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 + -