Department of Computer Scien
ce and Information Engineering
National Cheng Kung University, TAIWAN
HANEL
PROGRAMMING THE 8255Connecting 8031/51 to
(^8255) (cont’)
¾or, see the following, also using EQU:
CONTRBYT EQU 90H
;(PA=IN, PB=OUT, PC=OUT)
BAS8255P EQU 1000H
;base address for 8255
MOV A,#CONTRBYTMOV DPTR,#BAS8255P+3
;load c port addr
MOVX @DPTR,A ;issue control word MOV DPTR,#BAS8255P+3 ;PA address...