8ร8 LED Dot Matrix Display Interfacing (8051 Assembly)
This experiment demonstrates interfacing an 8ร8 LED Dot Matrix Display with the ARDU-8051 hardware platform. Rows are driven through Port-1 and columns through Port-2. Row scanning and column pattern data are controlled using assembly-level multiplexing.
; -------- ARDU-8051 PIN MAPPING --------
; ROWS -> P1.0 โ P1.7
; COLUMNS -> P2.0 โ P2.7
ORG 0000H
MOV DPTR,#PATTERN
MAIN:
MOV R0,#08H ; 8 rows
MOV A,#01H ; Initial row select
SCAN:
MOV P1,A ; Activate one row
MOVC A,@A+DPTR ; Read pattern
MOV P2,A ; Send column data
ACALL DELAY
RL A ; Next row
DJNZ R0,SCAN
SJMP MAIN
; Character Pattern ('A')
PATTERN:
DB 3CH
DB 66H
DB 66H
DB 7EH
DB 66H
DB 66H
DB 66H
DB 00H
DELAY:
MOV R7,#255
DJNZ R7,$
RET
END