微机原理及单片机应用实验实验报告实验LED16*16点阵显示实验一、实验内容用取模软件建立标准字库,编制程序实现点阵循环左移显示汉字。二、实验步骤将JHPC接JX16,JHP1接JX10,JLPA接JX9,JLPB接JX15,运行程序即可左移显示“启东东疆计算机OK”字样。三、实验原理图实验接线图:四.实验程序清单ORG0000HLJMPSTARTORG2D80HXPAEQU0FF28H;L-SAO-1,CTL-MODE:BINGXINKOXPBEQU0FF29H;L-SAO-2;--------------------------------------------------------------------XPCEQU0FF2AH;H-CODE-2XPCTLEQU0FF2BHSTART:MOVDPTR,#XPCTL;THISISAPROGRAMOFL-MOVE-WORDMOVA,#80HMOVX@DPTR,A;WR-CTLCALLOFFLED;OFFLEDCLR00HMOVR6,#28HMOVR7,#0FFH;----------------------------------------X0:MOVR0,#00H;ONE-WORD-FIRST-NUMX1:CALLDEL1;QIINCR0;RL-1-BITmova,r0anla,#0fhcjnea,#00h,l2mova,#10hadda,r0movr0,al2:CJNER0,#00H,X1SJMPX0;--------------------------------------------------------------------DISPW:PUSH00H;DISP-ONE-WORDMOVR1,#01H;L-NUMCLRCDISP1:MOVA,R0;BH1MOVDPTR,#TABMOVCA,@A+DPTRMOVDPTR,#XPCMOVX@DPTR,A;-------------------------------------------mova,#10hadda,r0MOVDPTR,#TABMOVCA,@A+DPTRMOVP1,AINCR0;BH2;-------------------------------------------mova,r0anla,#0fhcjnea,#00h,l1mova,#10hadda,r0movr0,aclrc;!!!!!l1:MOVDPL,R6;XPA/XPBMOVDPH,R7MOVA,R1;L0----L7CPLAMOVX@DPTR,Amovr3,#80hdjnzr3,$CALLOFFLEDMOVA,R1RLCAMOVR1,AJNCDISP1JB00H,EXIT;----------------------------------SETB00HCLRCMOVR1,#01HMOVR6,#29HMOVR7,#0FFHAJMPDISP1EXIT:MOVR6,#28HMOVR7,#0ffHCLR00HPOP00HRET;--------------------------------------------------------------------DEL1:MOVR2,#05HDELY:PUSH02HDEL2:PUSH02HDEL3:PUSH02HDEL4:DJNZR2,DEL4CALLDISPWPOP02HDJNZR2,DEL3POP02HDJNZR2,DEL2POP02HDJNZR2,DELYRET;---------------------------------------------------------OFFLED:MOVDPTR,#XPAMOVA,#0FFHMOVX@DPTR,AMOVDPTR,#XPBMOVX@DPTR,ARETtab:;--文字:祝--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB10H,10H,91H,73H,15H,18H,00H,7FH,41H,41H,41H,41H,7FH,00H,00H,00H;DB40H,80H,00H,0FFH,00H,0C1H,02H,0CH,0F0H,00H,00H,0FEH,01H,01H,0FH,00H;--文字:高--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB20H,20H,20H,20H,2EH,2AH,0AAH,6AH,2AH,2AH,2EH,20H,20H,20H,20H,00H;DB00H,0FFH,80H,80H,0BCH,0A4H,0A4H,0A4H,0A4H,0A4H,0BCH,82H,81H,0FEH,00H,00H;--文字:教--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB08H,28H,29H,2BH,0FDH,29H,39H,28H,0AH,1FH,0F0H,10H,11H,1EH,10H,00H;DB90H,90H,12H,11H,7EH,0A0H,22H,22H,04H,04H,0C8H,30H,0CCH,03H,02H,00h;--文字:会--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB01H,02H,02H,04H,0AH,12H,22H,0C2H,22H,12H,0AH,04H,06H,03H,02H,00H;DB00H,00H,42H,47H,4AH,52H,62H,46H,44H,44H,54H,4FH,46H,00H,00H,00H;--文字:胜--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB00H,00H,7FH,48H,48H,7FH,04H,38H,08H,08H,0FFH,08H,08H,08H,00H,00H;DB02H,0CH,0F0H,84H,82H,0FCH,04H,84H,84H,84H,0FCH,84H,84H,84H,04H,00H;--文字:利--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB00H,04H,24H,24H,27H,3FH,44H,44H,44H,00H,1FH,00H,00H,00H,0FFH,00H;DB08H,10H,20H,0C0H,00H,0FFH,80H,70H,20H,00H,0F0H,04H,02H,01H,0FEH,00H;--文字:召--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB00H,00H,41H,41H,42H,44H,48H,70H,40H,42H,42H,43H,42H,7CH,00H,00H;DB00H,00H,00H,00H,0FFH,82H,82H,82H,82H,82H,82H,82H,0FFH,00H,00H,00H;--文字:开--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB02H,42H,42H,42H,42H,7FH,42H,42H,42H,42H,7FH,42H,42H,42H,42H,00H;DB00H,02H,04H,08H,30H,0C0H,00H,00H,00H,00H,0FEH,00H,00H,00H,00H,00H;--文字:来--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB00H,01H,21H,21H,29H,25H,23H,0FFH,21H,23H,2DH,29H,21H,21H,01H,00H;DB04H,04H,08H,08H,10H,20H,40H,0FFH,80H,40H,20H,10H,18H,0CH,08H,00H;--文字:宾--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB00H,18H,20H,20H,2FH,29H,29H,0A9H,69H,29H,29H,21H,29H,30H,20H,00H;DB20H,21H,22H,24H,0ECH,38H,28H,20H,20H,0F0H,28H,2CH,27H,22H,20H,00H;--文字:您--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB01H,02H,0CH,3FH,0C0H,09H,16H,60H,20H,2FH,20H,24H,22H,31H,20H,00H;DB00H,04H,1CH,0C0H,1CH,02H,02H,92H,4AH,82H,02H,0EH,00H,90H,0CH,00H;--文字:好--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB08H,08H,0FH,0F8H,08H,0FH,01H,41H,41H,41H,4FH,51H,61H,41H,01H,00H;DB01H,0C2H,44H,28H,30H,0CEH,04H,00H,02H,01H,0FEH,00H,00H,00H,00H,00H;--文字:欢--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB28H,24H,22H,21H,26H,38H,04H,18H,0F0H,17H,10H,10H,14H,18H,10H,00H;DB04H,08H,32H,0C2H,0C2H,34H,04H,08H,30H,0C0H,60H,18H,0CH,06H,04H,00H;--文字:迎--;--宋体12;此字体下对应的点阵为:宽x高=16x16--;DB02H,82H,73H,20H,00H,3FH,20H,40H,40H,3FH,20H,20H,20H,3FH,00H,00H;DB02H,04H,0F8H,04H,02H,0E2H,42H,82H,02H,0FAH,02H,42H,22H,0C2H,02H,00H;--文字:启--;--宋体12;此字体下对应的点阵为:宽x高=16x16--DB00H,00H,00H,1FH,12H,12H,12H,92H,72H,52H,12H,12H,12H,1EH,00H,00HDB02H,04H,18H,0E0H,00H,7EH,44H,44H,44H,44H,44H,44H,44H,7EH,00H,00H;--文字:东--;--宋体12;此字体下对应的点阵为:宽x高=16x16--DB00H,20H,20H,23H,2DH,31H,0E1H,21H,2FH,21H,21H,21H,21H,20H,00H,00HDB00H,00H,04H,18H,70H,20H,04H,02H,0FFH,00H,40H,20H,18H,0CH,00H,00H;--文字:东--;--宋体12;此字体下对应的点阵为:宽x高=16x16--DB00H,20H,20H,23H,2DH,31H,0E1H,21H,2FH,21H,21H,21H,21H,20H,00H,00HDB00H,00H,04H,18H,70H,20H,04H,02H,0FFH,00H,40H,20H,18H,0CH,00H,00H;--文字:疆--;--宋体12;此字体下对应的点阵为:宽x高=16x16--DB80H,9EH,92H,92H,0F3H,00H,80H,0BEH,0AAH,0AAH,0BEH,0AAH,0AAH,0BEH,80H,00HDB48H,0F4H,52H,04H,0F8H,02H,82H,0FAH,0AAH,0AAH,0FAH,0AAH,0AAH,0FAH,82H,00H;--文字:计--;--宋体12;此字体下对应的点阵为:宽x高=16x16--DB04H,84H,74H,27H,00H,00H,04H,04H,04H,04H,0FFH,04H,04H,04H,04H,00HDB00H,00H,00H,0FEH,04H,08H,10H,00H,00H,00H,0FFH,00H,00H,00H,00H,00H;--文字:算--;--宋体12;此字体下对应的点阵为:宽x高=16x16--DB10H,0E0H,5FH,55H,75H,55H,55H,15H,35