Past exam question: 2081 Chaitra (Regular), Q6
Open in the Padhaiko appQuestion
Explain in brief about 8255A PPI with its block diagram.
Solution
Overview & Function of Intel 8255A: The Intel 8255A is a 40-pin Programmable Peripheral Interface (PPI) chip designed to provide flexible parallel I/O interfacing between a microprocessor and peripheral devices. It features 24 programmable I/O pins organized into three 8-bit ports (A, B, and C) and can be configured through software into various modes without hardware changes.
Internal Block Diagram:
+-------------------------------------------------------------------------+
| INTEL 8255A INTERNAL BLOCK DIAGRAM |
| |
| +--------------------+ 8-bit Internal Bus +--------------------+ |
| | Data Bus Buffer |<========================>| Group A Control | |
| | D7–D0 (To System) | +---------+----------+ |
| +--------------------+ | |
| v |
| +--------------------+ +--------------------+ |
| | Read / Write & | | Port A (8) | |
| | Control Logic | | PA7–PA0 | |
| | - CS_bar | +--------------------+ |
| | - RD_bar | | |
| | - WR_bar | v |
| | - A1, A0 | +--------------------+ |
| | - RESET | | Port C Upper (4) | |
| +--------------------+ | PC7–PC4 | |
| +--------------------+ |
| |
| +--------------------+ |
| | Group B Control | |
| +---------+----------+ |
| | |
| v |
| +--------------------+ |
| | Port C Lower (4) | |
| | PC3–PC0 | |
| +--------------------+ |
| | |
| v |
| +--------------------+ |
| | Port B (8) | |
| | PB7–PB0 | |
| +--------------------+ |
+-------------------------------------------------------------------------+Detailed Explanation of Functional Units:
- Data Bus Buffer:
- 8-bit bidirectional tri-state buffer connecting internal 8255 buses to system data bus D7–D0.
- Transmits control words, status information, and data between CPU and 8255.
- Read/Write and Control Logic:
- Controls internal data transfers according to signals from CPU:
CS_bar: Chip Select (active low).RD_bar: Read strobe (active low) to read data/status.WR_bar: Write strobe (active low) to write data/control words.A1, A0: Port address selection lines:00: Port A01: Port B10: Port C11: Control Word Register (Write only)
RESET: Clears control register and resets all ports to input Mode 0.
- Controls internal data transfers according to signals from CPU:
- Group A and Group B Controls:
- Group A Control: Configures Port A (PA7–PA0) and Port C Upper (PC7–PC4).
- Group B Control: Configures Port B (PB7–PB0) and Port C Lower (PC3–PC0).
- Three 8-Bit Ports:
- Port A: 8-bit data output latch/buffer and input buffer. Can operate in Mode 0, Mode 1, or Mode 2.
- Port B: 8-bit data output latch/buffer and input buffer. Can operate in Mode 0 or Mode 1.
- Port C: Split into two 4-bit nibbles (PC7–PC4 and PC3–PC0). Can be used for simple I/O or for handshaking control signals in Mode 1 and Mode 2.
Answer:
Intel 8255A PPI contains a Data Bus Buffer, Read/Write Control Logic (CS, RD, WR, A1, A0), Group A and B controls, and three 8-bit ports (A, B, C) supporting Mode 0 (basic I/O), Mode 1 (strobed handshaking), Mode 2 (bidirectional bus), and BSR mode.