Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

EEE 3506

Microprocessor and Interfacing Sessional

Experiment-7

Interfacing of Dot-Matrix LED display with 8086 microprocessor.

Prepared By
Mohammed Abdul Kader
Assistant Professor, EEE, IIUC
8X8 Dot Matrix Display

"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
8X8 Bi-color Dot-Matrix Display

"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
Schematic of Dot-Matrix display interface with 8086

"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
"Exp-7: Microprocessor and Interfacing Sessional" Prepared
By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
PA7 PB7 PA6 PB6 PA5 PB5 PA4 PB4 PA3 PB3 PA2 PB2 PA1 PB1 PA0 PB0

PC7

PC6

PORTA- GREEN PC5


PORTB- RED
PC4

PC3

PC2

PC1

PC0

"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
Control Word for Dot-Matrix Display Interfacing

D7 D6 D5 D4 D3 D2 D1 D0 Control Word

If D7=0, BSR Mode If D7=1, I/O Mode

Mode 0 Mode 1 Mode 2

"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
Animation in Dot Matrix Display
CODE SEGMENT
ASSUME CS:CODE,DS:CODE,ES:CODE,SS:CODE TIMER: MOV CX,0FFFFH
; TIMER1: NOP
PPIC_C EQU 1EH ; control register NOP
PPIC EQU 1CH NOP
PPIB EQU 1AH NOP
PPIA EQU 18H LOOP TIMER1
ORG 1000H RET
MOV AL,10000000B CODE ENDS
OUT PPIC_C,AL END
MOV AL,11111111B
OUT PPIC,AL
MOV AL,11111111B
OUT PPIB,AL

L1: MOV AL,11111110B


L2: OUT PPIA,AL
CALL TIMER
ROL AL,1
JC L2
JMP L1
"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
Showing alphabet in Dot Matrix Display (Concept of scanning)
PA7 PB7 PA6 PB6 PA5 PB5 PA4 PB4 PA3 PB3 PA2 PB2 PA1 PB1 PA0 PB0

• Individual control of LED in dot


matrix display is possible for
the LED’s of same row or same PC7

column.
PC6

PC5

PC4

PC3

PC2

PC1

PC0

"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
0 0 0 0
0 0 1 1
0 1 0 0
0 1 0 0
0 1 1 1
0 1 0 0
0 1 0 0
0 1 0 0

0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1

0 0
0 1
0 0
0 0
0 1
0 0
0 0
0 0

1 1 1 1 1 1 1 0 1 1 1 1 0 1 1 1

0 0
0 1
1 0
1 0
1 1
1 0
1 0
1 0

1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1
Showing Alphabet ‘A’ in Dot Matrix Display
CODE SEGMENT
ASSUME CS:CODE,DS:CODE,ES:CODE,SS:CODE MOV AL,AH FONT:
; OUT PPIB,AL DB 00000000B
PPIC_C EQU 1EH ; control register CALL TIMER DB 11111100B
PPIC EQU 1CH ; c port INC SI DB 00010010B
PPIB EQU 1AH CLC DB 00010001B
PPIA EQU 18H ROL AH,1 DB 00010001B
; JC L2 DB 00010010B
ORG 1000H JMP L1 DB 11111100B
MOV AL,10000000B DB 00000000B
OUT PPIC_C,AL TIMER: MOV CX,300
; TIMER1: NOP CODE ENDS
MOV AL,11111111B NOP END
OUT PPIA,AL NOP
; NOP
L1: MOV SI,OFFSET FONT LOOP TIMER1
; RET
MOV AH,11111110B ;
;
L2: MOV AL,BYTE PTR CS:[SI]
OUT PPIC,AL
"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
Schematic of dot-matrix display interface with 8086

"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC
Thanks for Watching

"Exp-7: Microprocessor and Interfacing Sessional" Prepared By- Mohammed Abdul Kader, Assistant Prof., EEE, IIUC

You might also like