Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
The two modes are selected on the basis of the value present at the D 7 bit of the Control Word
Register. When D7 = 1, 8255 operates in I/O mode and when D 7 = 0, it operates in the BSR
mode.
INPUT/OUTPUT MODE
This mode is selected when D7 bit of the Control Word Register is 1. There are three I/O modes:
1. Mode 0 - Simple I/O
2. Mode 1 Hand Shaking I/O
3. Mode 2 - Hand Shaking Bi-directional I/O
Control Word Format
The ports of the 8255 can be programmed in any of the following modes
Mode 0, simple I/O
Any of the ports A, B, CL, and CU can be programmed as input out output
All bits are outputs or all are inputs
There is no signal-bit control as in P0-P3 of 8051
Mode 1, Hand Shaking I/O
Port A and B can be used as input or output ports with handshaking capabilities
Handshaking signals are provided by the port C
Mode 2, Hand Shaking Bi-directional I/O
Port A can be used as a bidirectional I/O port with handshaking capabilities provided by
port C
Port B can be used either in mode 0 or mode1
B1
B0
PC0
PC1
PC2
PC3
PC4
PC5
PC6
PC7