📄 点阵式汉字led显示屏的原理与制作.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0041)http://www.8951.com/test/test/16hanzi.htm -->
<HTML><HEAD><TITLE>点阵式汉字LED显示屏的原理与制作 石学军</TITLE><LINK
href="点阵式汉字LED显示屏的原理与制作.files/gpszx.css" type=text/css rel=stylesheet><LINK
href="点阵式汉字LED显示屏的原理与制作.files/gpszx.css" type=text/css rel=stylesheet>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<META content=FrontPage.Editor.Document name=ProgId></HEAD>
<BODY>
<DIV align=center>
<CENTER>
<TABLE width=770 border=0>
<TBODY>
<TR>
<TD>
<P class=MsoNormal style="TEXT-ALIGN: center" align=center><IMG height=91
src="点阵式汉字LED显示屏的原理与制作.files/titou2.jpg" width=770 align=center
border=0></P>
<P class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
color=#272727 size=5><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">点阵式汉字</SPAN><SPAN
lang=EN-US>LED</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="mso-spacerun: yes"> </SPAN></FONT><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 align=center><SPAN lang=EN-US><FONT color=#272727
font><O:P></O:P></FONT></SPAN><FONT color=#ff0000 font>注:
本文版权属www.51c51.com 51单片机学习网所有如需要转载请著名出处!</FONT></P>
<P class=MsoNormal
style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0; mso-char-indent-size: 10.5pt"><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>8*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>256</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><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"><SPAN
lang=EN-US><FONT color=#272727 font>1</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><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>UCDOS</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
lang=EN-US>256</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>256</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><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"><SPAN
lang=EN-US><FONT color=#272727 font><!--[if gte vml 1]><V:SHAPETYPE
id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe"
o:preferrelative="t" o:spt="75" coordsize="21600,21600"><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:connecttype="rect"
gradientshapeok="t" o:extrusionok="f" /><O:LOCK aspectratio="t"
v:ext="edit" /></V:SHAPETYPE><V:SHAPE id=_x0000_i1025
style="WIDTH: 180pt; HEIGHT: 194.25pt" type="#_x0000_t75"><V:IMAGEDATA
gain="112993f" o:title="001"
src="file:///C:/WINDOWS/TEMP/msoclip1/01/clip_image001.jpg" /></V:SHAPE><![endif]--><IMG height=259
src="点阵式汉字LED显示屏的原理与制作.files/16hanz1.jpg" width=240
v:shapes="_x0000_i1025"><!--[if gte vml 1]><V:SHAPE id=_x0000_i1026
style="WIDTH: 198pt; HEIGHT: 184.5pt" type="#_x0000_t75"> <V:IMAGEDATA
gain="142470f" o:title="0000"
src="file:///C:/WINDOWS/TEMP/msoclip1/01/clip_image003.jpg" /></V:SHAPE><![endif]--><IMG height=246
src="点阵式汉字LED显示屏的原理与制作.files/16hanz2.jpg" width=264
v:shapes="_x0000_i1026"></FONT></SPAN></P>
<P> </P></TD></TR>
<TR>
<TD>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727
font><O:P></O:P></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 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>UCDOS</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></FONT></P>
<P class=MsoNormal><SPAN lang=EN-US><FONT color=#272727
font>8</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>AT89C51</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>8</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">位,一个字需要拆分为</SPAN><SPAN
lang=EN-US>2</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>8*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>8*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><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>0</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">列的</SPAN><SPAN
lang=EN-US>p00---p07</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">口。方向为</SPAN><SPAN
lang=EN-US>p00</SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">到</SPAN><SPAN
lang=EN-US>p07 ,</SPAN><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>,</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.0 </SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">灭,</SPAN><SPAN
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -