點(diǎn)陣式漢字LED顯示屏的制作
DJNZ R3,DELAY2
MOV A,#00H ;清除屏幕
MOV P0,A
ANL P2,#00H
DJNZ R6,L3 ;一個(gè)字16個(gè)碼是否完成?
DJNZ R1,L16 ;每個(gè)字的停留時(shí)間是否到了?
MOV 20H,R0 ;取碼指針存入20H
CJNE R0,#0FFH,L100 ;8個(gè)字256個(gè)碼是否完成?
JMP LOOP ;反復(fù)循環(huán)
TABLE :
;漢字“電”的代碼
DB 00H,00H,1FH,0E0H,12H,40H,12H,40H
DB 12H,40H,12H,40H,0FFH,0FCH,12H,42H
DB 12H,42H,12H,42H,12H,42H,3FH,0E2H
DB 10H,02H,00H,0EH,00H,00H,00H,00H
;漢字“路”的代碼
DB 00H,02H,7FH,7EH,42H,02H,43H,0FCH
DB 42H,44H,0FEH,44H,48H,80H,10H,0FFH
DB 31H,42H,0EAH,42H,24H,42H,2AH,42H
DB 31H,42H,21H,0FFH,01H,40H,00H,00H
;漢字“圖”的代碼
DB 00H,00H,7FH,0FFH,40H,22H,44H,22H
DB 48H,42H,78H,92H,55H,92H,52H,4AH
DB 55H,26H,58H,82H,50H,42H,40H,62H
DB 40H,42H,0FFH,0FFH,40H,00H,00H,00H
end
評(píng)論