8255 Programmable Peripheral Interface

(Dated: pre-2000)

Features:


Pinout

[Pinout 8255]
A1A0Select
00PA
01PB
10PC
11Control reg.

Block diagram

[8255 block diagram]

BSR mode

Bit set/reset, applicable to PC only. One bit is S/R at a time. Control word:

D7D6D5D4D3D2D1D0
0 (0=BSR)XXXB2B1B0S/R (1=S,0=R)

Bit select: (Taking Don't care's as 0)

B2B1B0PC bitControl word (Set)Control word (reset)
00000000 0001 = 01h0000 0000 = 00h
00110000 0011 = 03h0000 0010 = 02h
01020000 0101 = 05h0000 0100 = 04h
01130000 0111 = 07h0000 0110 = 06h
10040000 1001 = 09h0000 1000 = 08h
10150000 1011 = 0Bh0000 1010 = 0Ah
11060000 1101 = 0Dh0000 1100 = 0Ch
11170000 1111 = 0Fh0000 1110 = 0Eh

I/O mode

D7D6D5D4D3D2D1D0
1 (1=I/O)GA mode selectPAPCUGB mode selectPBPCL

Mode 0: No interrupts. Plain I/O. Two 8 bit ports PA, PB. Two 4 bit ports PCU and PCL. Outputs latched, inputs buffered.


Mode 1

(Input and output data are latched)

PC bits in input mode:
D7D6D5D4D3D2D1D0
PC7PC6IBF-AINTE-A / STB-A-barINTR-AINTE-B / STB-B-barIBF-BINTR-B
PC bits in output mode:
D7D6D5D4D3D2D1D0
OBF-A-barINTE-A / ACK-A-barPC5PC4INTR-AINTE-B / ACK-B-barOBF-B-barINTR-B

Input mode:

Output mode:


Mode 2

Only for PA

Status:
D7D6D5D4D3D2D1D0
OBF-A-barINTE1(O/P) /
ACK-A-BAR
IBF-AINTE2(I/P) /
STB-A-bAR
INTR-AXXX

Return to the IC list