8255 Peripheral Interface
8255 Peripheral Interface
RESET: This pin is used to reset 8255.i.e control register gets cleared and all the
ports are set to the input mode.
A1-A0: The selection of port and control register is done by using A0 and A1 pins
In conjunction with RD and WR pins as below.
__ __ __
A1 A0 RD WR CS Operations
0 0 0 1 0 PORT A TO DATA BUS
1 1 0 1 0 ILLEGAL CONDITION
8255 modes
Program:
MOV DX, FFE6
MOV AL, 10000000B
OUT DX,AL
MOV DX, FFE0
IN AL, DX
MOV DX, FFE2
OUT DX,AL