The 8255 Programmable Peripheral Interface (PPI) is a general-purpose parallel I/O device designed for Intel microcomputer systems. It provides 24 I/O lines organized into three 8-bit ports (A, B, C) that can be individually programmed. The 8255 operates in three modes - Mode 0 provides simple I/O, Mode 1 adds handshaking, and Mode 2 enables bidirectional data transfer between the 8255 and external devices using handshake signals.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
188 views18 pages
Programmable Peripheral Interface - PPI (8255)
The 8255 Programmable Peripheral Interface (PPI) is a general-purpose parallel I/O device designed for Intel microcomputer systems. It provides 24 I/O lines organized into three 8-bit ports (A, B, C) that can be individually programmed. The 8255 operates in three modes - Mode 0 provides simple I/O, Mode 1 adds handshaking, and Mode 2 enables bidirectional data transfer between the 8255 and external devices using handshake signals.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 18
Programmable Peripheral
Interface – PPI (8255)
Programmable Peripheral Interface - PPI PPI – Programmable Peripheral Interface General-purpose parallel I/O interfacing device designed for use in Intel microcomputer systems Its function is to interface peripheral equipment to the microcomputer data bus The functional configuration of the 8255 is programmed by the system software so that normally no external logic is necessary The 8255 provides 24 I/O lines organized as three 8-bit I/O ports labeled A, B, and C individually programmed in 2 groups of 12 I/O lines Used in 3 major modes of operation Pin Diagram of 8255 Selection of 8255 ports using Address Lines Architecture of 8255 Control Word Format for 8255 In this mode any of the 8-bits of port C can BSR Mode be set or reset depending on D0 of the control word. The bit to be set or reset is selected by bit select flags D3, D2 and D1 of the CWR as given in table Control Word Format for 8255 IO Mode Operating Modes of 8255 8255 has three operation modes: mode 0, mode 1 and mode 2 Mode 0 - Simple Input or Output mode Mode 1 - Input or Output with Handshake mode Mode 2 - Bidirectional Data Transfer mode Mode 0: In this mode, ports A, B are used as two simple 8-bit I/O ports & port C as two independent 4-bit ports Each port can be programmed to function as simply an input port or an output port The input/output features in Mode 0 are as follows, 1. Outputs are latched 2. Inputs are buffered 3. Ports don’t have handshake or interrupt capability Port C Pin Assignment for Various Modes Operating Modes of 8255 Mode 1: In this mode, handshake signals are exchanged between the MPU and peripherals prior to data transfer The features of the mode include the following: Two ports (A and B) function as 8-bit I/O ports They can be configured as either as input or output ports Each port uses three lines from port C as handshake signals The remaining two lines of Port C can be used for simple I/O operations Input and Output data are latched Interrupt logic is supported Mode 1 Input Configured (Handshake) Mode 1 Input Configured (Handshake) Mode 1 Output Configured (Handshake) Mode 1 Output Configured (Handshake) Operating Modes of 8255 Mode 2: This mode is used primarily in applications such as data transfer between two computers. In this mode, Port A can be configured as the bidirectional port, Port B either in Mode 0 or Mode 1. Port A uses five signals from Port C as handshake signals for data transfer. The remaining three signals from Port C can be used either as simple I/O or as handshake for port B. Operating Mode - Mode 2 Operating Mode - Mode 2