Department of Computer Science and Information EngineeringNational Cheng Kung University, TAIWAN
HANELPROGRAMMING 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 8255MOV A,#CONTRBYTMOV DPTR,#BAS8255P+3;load c port addrMOVX @DPTR,A ;issue control word MOV DPTR,#BAS8255P+3 ;PA address...