最近学习了Proteus软件,应用其测试显示了LED汉字点阵显示效果,目标显示内容为:信息学。有关这方面,希望与大家共同探讨,学习啊!
以下是简单的显示效果(部分截图)
其中,红色表示高电位,蓝色表示低电位,由于Proteus中没有16*16 LED阵列,所以我采用了4个8*8 LED拼凑而成。在每一个汉字显示中可以明显的看到有蓝色显示,这部分并不是错误 哦!
以下是源程序代码:
ORG 00H
START: MOV A,#0FFH
MOV P0,A
ANL P2,#00
MOV R2,#200
D1: MOV R3,#248 ;延时
DJNZ R3,$
DJNZ R2,D1
MOV 20H,#00H
l1: MOV R1,#100
L2: MOV R6,#16
MOV R4,#00H
MOV R0,20H
L3: MOV A,R4
MOV P1,A ;开三极管
INC R4
MOV A,R0
MOV DPTR,#TABLE
MOVC A,@A+DPTR
MOV P0,A ;查表送P0口
INC R0
MOV A,R0
MOV DPTR,#TABLE
MOVC A,@A+DPTR
MOV P2,A ;查表送P2口
INC R0
MOV R3,#02
D2: MOV R5,#248
DJNZ R5,$
DJNZ R3,D2
MOV A,#00H
MOV P0,A
ANL P2,#00H
DJNZ R6,L3
DJNZ R1,L2
MOV 20H,R0
CJNE R0,#0FFH,L1 ;检测是否送完
JMP START
TABLE :
db 01H,00H,02H,00H,04H,00H,1FH,0FFH
db 0E0H,00H,24H,80H,24H,0BFH,24H,0A2H
db 0A4H,0A2H,64H,0A2H,24H,0A2H,24H,0A2H
db 2DH,0BFH,64H,80H,20H,00H,00H,00H
db 00H,02H,00H,0CH,00H,00H,3FH,0EEH
db 25H,21H,65H,21H,0A5H,31H,25H,29H
db 25H,2DH,25H,21H,25H,21H,7FH,0E7H
db 20H,00H,00H,08H,00H,06H,00H,00H
db 02H,20H,0CH,20H,88H,20H,69H,20H
db 09H,20H,09H,22H,89H,21H,69H,7EH
db 09H,60H,09H,0A0H,19H,20H,28H,20H
db 0C8H,20H,0AH,60H,0CH,20H,00H,00H
以下是它的.HEX文件:
:100000007400F580F5A0110C112680F47A04752097
:10001000007C0079FF7E10A8201145DEFC7C00D911
:10002000F48820DAEC227520007C0079FF7E10A88D
:100030002011450CDEFB7C00D9F3E5202408F520D7
:10004000658070E722ECF590E890006593F58008F4
:10005000E890006593F5A0087B19DBFE740074003E
:10006000F580F5A022200023FF2202220A22123F5F
:10007000E22202220222023FE2221222122202671E
:10008000FF2200000000040406040404080408FF22
:10009000FE00000000FFFC04020802100230020013
:1000A00002000E0000040004020402040404080418
:1000B0003005C0FE00058004600410040804040C30
:1000C000060404000002200C208820692009200971
:1000D000228921697E096009A019202820C8200AE8
:1000E000600C2000000100020004001FFFE000245B
:1000F0008024BF24A2A4A264A224A224A22DBF64AF
:1001000080200000000002000C00003FEE25216569
:1001100021A5312529252D252125217FE720000036
:10012000080006000002200C208820692009200910
:10013000228921697E096009A019202820C8200A87
:10014000600C20000000007FFF44205A1069E1305D
:10015000812482248CA4F0648024FC2C82258228B3
:0501600082300E0000DA
:00000001FF
感觉不错的朋友,可以支持我一下哦,谢谢啦!^_^
用户1729250 2014-5-2 17:03
用户203646 2009-6-9 09:49
用户151342 2008-6-25 14:32
用户153739 2008-6-18 17:29
用户124183 2008-6-17 22:28
用户153739 2008-6-16 10:08