Past exam question: 2082 Chaitra (Regular), Q9(b)
Open in the Padhaiko appQuestion
Explain the operating modes of Intel 8255A PPI.
Solution
Classification of Modes: The Intel 8255A operates in two primary modes dictated by bit D7 of the Control Word:
- BSR (Bit Set/Reset) Mode (D7 = 0): Used exclusively to set or reset individual pins of Port C (PC7–PC0) without changing any other port.
- I/O Mode (D7 = 1): Provides three operational modes for parallel data transfer.
Detailed Explanation of I/O Modes:
- Mode 0 (Basic / Simple I/O):
- Unidirectional, simple I/O with no handshaking.
- Ports A, B, Port C Upper (PC7–PC4), and Port C Lower (PC3–PC0) can each be independently programmed as simple input or simple output.
- Outputs are latched; inputs are buffered but not latched.
- Used for interfacing simple LEDs, toggle switches, and 7-segment displays.
- Mode 1 (Strobed / Handshake I/O):
- Unidirectional data transfer with handshaking control signals provided by Port C pins.
- Port A and Port B can be configured independently as strobed input or strobed output.
- For Input: Port C provides STB\_bar (Strobe), IBF (Input Buffer Full), and INTR (Interrupt Request).
- For Output: Port C provides OBF\_bar (Output Buffer Full), ACK\_bar (Acknowledge), and INTR.
- Mode 2 (Strobed Bidirectional Bus I/O):
- Only Port A can operate in Mode 2, acting as an 8-bit bidirectional data bus.
- Uses 5 pins of Port C (PC7–PC3) for bidirectional handshaking (OBF\_bar, ACK\_bar, STB\_bar, IBF, INTR).
- While Port A is in Mode 2, Port B can independently operate in Mode 0 or Mode 1 using the remaining Port C lines.
Answer:
Intel 8255A operates in BSR mode (for bitwise Port C control) and I/O mode: Mode 0 (basic I/O without handshaking), Mode 1 (strobed unidirectional I/O with Port C handshaking), and Mode 2 (strobed bidirectional bus on Port A).