基于8×8点阵汉字滚动显示实现方法.pdfVIP

  • 1
  • 0
  • 约1.05万字
  • 约 18页
  • 2025-10-23 发布于北京
  • 举报

汉字滚动显示

点阵的汉字滚动实现其实很简单,用一句话概括就是:一边在行

(列)上进行扫描,一遍循环依次取出显示代码输入到列(行)上。

以我们板上载有的8×8点阵为例,当要实现2个汉字的滚动时,

我们把整个滚动的过程拆开,会发现每一次完整的滚动,点阵要显示

2×8=16个状态。我们可以把两个汉字的行(或列)扫描代码通过字

模提取软件提出后保存在数组里,然后顺序循环的去取数组里的数据

放到行(或列)上就可。

我们用图示来解析一下整个过程。我们假设要显示两个汉字”人”

和”天”的左右滚动。

首先我们假设在行和列的输入数据中,1代表亮,0代表灭。数组

code里保存好从字模软件中按行提取出来的扫描码,假设

code[15]=A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,B3,B4,B5,B6,B7(A代

表“人”字的列扫描码,B代表“天”字的列扫描码)

思路是这样的:

character

scrollingdisy

Theimplementationofdotmatrixcharacterscrollingisactuallyvery

simple.Itcanbesummarizedinonesentence:whilescanningontherows

(columns),thedisycodeistakenoutandinputtothecolumns(rows)inaloop.

Takethe8×8dotmatrixonourboardasanexample.When

wewanttoscroll2characters,wetakeaparttheentire

scrollingprocessandfindthatforeachcompletescroll,thedot

matrixneedstodisy2×8=16states.Wecanextracttherow(or

column)scanningcodesofthetwocharactersthroughthe

fontextractionsoftwareandsavetheminthearray,andthen

sequentiallycyclethroughthedatainthearrayandputitintothe

rows(orcolumns).

Let’susediagramstoanalyzetheentireprocess.Weassume

thatwewanttodisytheleftandrightscrollingoftwo

characters人and天.

First,weassumethatintheinputdataofrowsandcolumns,1

representslightand0representsoff.Saveinthearraycodethe

scancodesextractedrowbyrowfromthefontsoftware,assuming

code[15]A0,A1,A2,A3,A4,A5,A6,A7,B0,B1,B2,B3,B4,B5,B6,B7(A

representsthecolumnscancodeoftheword人,BThecolumn

scancoderepresentingtheword天)Theideaisasfollows:

第1个时段T1:(完整的汉字“人”)

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档