Professional Documents
Culture Documents
Mode 1 8255 - SD
Mode 1 8255 - SD
Operating Modes
1. Mode 0: Simple I/O
2. Mode 1: Strobed I/O
3. Mode 2: Strobed Bidirectional I/O
When D7=1
Mode 1: I/O with Handshaking Capability
Mode 1
8255 in Mode 1
MODE 1 Input Operation
Input with handshake
#STB (in):
Device provides data to an input
port
IBF (out):
Data has been latched by 8255
INTR (out):
After activation of IBF
INTE (interrupt enable)
Internal flip-flop
Controlled by PC4 and PC2
MODE 1 Timing (input)
#STB (in):
Device provides data to an input port
IBF (out):
Data has been latched by 8255
INTR (out):
After activation of IBF
INTE (interrupt enable)
Internal flip-flop
Controlled by PC4 and PC2
MODE 1 Output Operation
Output with handshake
#OBFa :
CPU has written a byte
#ACKa:
Data has been picked up by receiving device
INTRa:
After rising edge of #ACKa
INTEa (interrupt enable)
Internal flipflop
Controlled by PC6
MODE 1 Timing (output)
#OBFa :
CPU has written a byte
#ACKa:
Data has been picked up by receiving device
INTRa:
After rising edge of #ACKa
INTEa (interrupt enable)
Internal flipflop
Controlled by PC6
Mapping of 8255 I/O ports
An Example I/O Device
(cont’d)