一、设计题目点阵滚动广告牌二、设计内容(1)利用单片机I/O口或以扩展锁存器的方式控制点阵显示。(2)掌握单片机与16×16点阵块之间接口电路设计及编程。(3)利用实验系统16×16点阵实验单元,要求编制程序实现汉字点阵从下倒上滚动循环显示。三、设计原理及方案1、硬件设计原理图实验线路连接:(1)对于后缀名含有“H”的机型,按实验电路图连接138译码输入端A.B.C,其中A连A2,B连A3,C连A4,138使能控制输入端G与位于地址线A0引出孔所在位置下方的使能控制输出端G作对应连接,该端的寻址范围为0FFE0H~0FFFFH。(2)用一8芯扁平电缆把点阵单元总线接口与系统单元总线(D0~D7)任一接口相连。(3)用一根双头实验线把点阵单元的片选信号CS插孔与译码输出插孔Y0相连。(4)用一根双头实验线把点阵单元的写信号WR插孔与系统控制信号插孔WR相连。硬件电路图:2、软件设计流程图四、设计方案源程序CODESEGMENTASSUMECS:CODE,DS:CODE,ES:CODEORG3AD2H;====================================================================HE14:JMPSTARTLED0equ0ffe3h;列代码高段(字形)高八位接口地址LED1equ0ffe0h;列代码低段(字形)低位接口地址JED0equ0ffe2h;行扫描高段(字位)高八位接口地址JED1equ0ffe1h;行扫描低段(字位)低八位接口地址;======================================================START:JMPXB13;===================================================x01a:movBUF+2,00h;清列值x023:movbx,OFFSETBUF;取列值moval,02hxlatcmpal,10h;减16(十进制数)jcx0d2;末满16列继续扫描下一列ret;本次扫描完毕返回主程序x0d2:MOVdx,0002HMOVah,00hMULdx;当前列乘02movcx,axcallxb1f;===送扫描代码==movdx,led0;列代码送高八位锁存器OUTDX,ALMOVDX,led1;列代码送低八位锁存器moval,ahOUTDX,Al;===取行代码==movbx,offsetbufmoval,02hxlatincalmovBUF+2,al;列指针加1movah,00hmovcx,axmoval,01hjmpx083x07e:SALax,1x083:loopx07emovdx,jed0;行代码送高八位锁存器OUTDX,ALMOVDX,jed1;行代码送低八位锁存器moval,ahOUTDX,Almovcx,0040h;当前行锁定显示250u秒loop$moval,00h;关闭显示movdx,jed0outdx,almovdx,jed1OUTdx,aljmpx023;继续下1行;============================================x097:moval,00h;关闭显示movdx,jed0outdx,almovdx,jed1OUTdx,al;============x0a0:moval,00h;清扫描个数寄存器movBUF+3,al;从第一个开始x0a2:movbx,OFFSETbuf;取当前扫描个数moval,03hxlatcmpal,16h;减16(十进制数)jncx0a0;满16个返回从第一个开始;===========================MOVah,00Hmovdx,0020hmuldxmovbx,OFFSETstlsaddax,bXmovBUF,aLMOVBUF+1,AH;===========================moval,00h;清扫描次数寄存器movBUF+4,alx0bd:movbx,OFFSETbuf;取当前扫描个数moval,04hxlatcmpal,64h;减64(十进制数)jncx0cf;==========================callx01a;扫描显示当前字体;==========================movbx,OFFSETbuf;扫描次数加1moval,04hxlatincalmovBUF+4,aljmpx0bd;=============================x0cf:movbx,OFFSETBUF;扫描个数加1moval,03hxlatincalmovBUF+3,aljmpx0a2;============================================================================STLS:;欢DB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,80HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,80H,00H,80HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,80H,00H,80H,0FCH,80HDBDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,80H,00H,80H,0FCH,80H,04H,0FCHDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00HDB00H,00H,00H,00H,00H,00H,00H,80H,00H,80H,0FCH,80H,04H,0FCH,45H,04HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00HDB00H,00H,00H,00H,00H,80H,00H,80H,0FCH,80H,04H,0FCH,45H,04H,46H,48HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00HDB00H,00H,00H,80H,00H,80H,0FCH,80H,04H,0FCH,45H,04H,46H,48H,28H,40HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00HDB00H,80H,00H,80H,0FCH,80H,04H,0FCH,45H,04H,46H,48H,28H,40H,28H,40HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,80HDB00H,80H,0FCH,80H,04H,0FCH,45H,04H,46H,48H,28H,40H,28H,40H,10H,40HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,80H,00H,80HDB0FCH,80H,04H,0FCH,45H,04H,46H,48H,28H,40H,28H,40H,10H,40H,28H,40HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,00H,80H,00H,80H,0FCH,80HDB04H,0FCH,45H,04H,46H,48H,28H,40H,28H,40H,10H,40H,28H,40H,24H,0A0HDB00H,00H,00H,00H,00H,00H,00H,00H,00H,80H,00H,80H,0FCH,80H,04H,0FCHDB45H,04H,46H,48H,28H,40H,28H,40H,10H,40H,28H,40H,24H,0A0H,44H,0A0HDB00H,00H,00H,00H,00H,00H,00H,80H,00H,80H,0FCH,80H,04H,0FCH,45H,04HDB46H,48H,28H,40H,28H,40H,10H,40H,28H,40H,24H,0A0H,44H,0A0H,81H,10HDB00H,00H,00H,00H,00H,80H,00H,80H,0FCH,80H,04H,0FCH,45H,04H,46H,48HDB28H,40H,28H,40H,10H,40H,28H,40H,24H,0A0H,44H,0A0H,81H,10H,01H,08HDB00H,00H,00H,80H,00H,80H,0FCH,80H,04H,0FCH,45H,04H,46H,48H,28H,40HDB28H,40H,10H,40H,28H,40H,24H,0A0H,44H,0A0H,81H,10H,01H,08H,02H,0EH;迎DB00H,00H,41H,84H,26H,7EH,14H,44H,04H,44H,04H,44H,0F4H,44H,14H,0C4HDB15H,44H,16H,54H,14H,48H,10H,40H,10H,40H,28H,46H,47H,0FCH,00H,00H;光DB01H,00H,21H,08H,11H,0CH,09H,10H,09H,20H,01H,04H,0FFH,0FEH,04H,40HDB04H,40H,04H,40H,04H,40H,08H,40H,08H,42H,10H,42H,20H,3EH,40H,00H;临DB10H,80H,10H,80H,51H,04H,51H,0FEH,52H,00H,54H,80H,58H,60H,50H,24HDB57H,0FEH,54H,44H,54H,44H,54H,44H,54H,44H,14H,44H,17H,0FCH,14H,04H;嘉DB01H,08H,7FH,0FCH,01H,00H,3FH,0F8H,00H,00H,1FH,0F0H,10H,10H,1FH,0F0HDB04H,44H,0FFH,0FEH,10H,08H,7EH,0FCH,12H,88H,12H,88H,2AH,0F8H,44H,88H;兴DB02H,00H,02H,08H,21H,08H,11H,10H,19H,10H,09H,20H,00H,20H,00H,44HDB0FFH,0FEH,00H,00H,00H,00H,04H,40H,0CH,20H,10H,18H,20H,0CH,40H,04H;学DB22H,08H,11H,08H,11H,10H,00H,20H,7FH,0FEH,40H,02H,80H,04H,1FH,0E0HDB00H,40H,01H,84H,0FFH,0FEH,01H,00H,01H,00H,01H,00H,05H,00H,02H,00H;院DB00H,80H,78H,40H,4FH,0FEH,54H,02H,58H,14H,63H,0F8H,50H,00H,48H,08HDB4FH,0FCH,48H,0A0H,68H,0A0H,50H,0A0H,41H,22H,41H,22H,42H,1EH,4CH,00H;!DB00H,