The 8255PPI is a programmable peripheral interface with 3 8-bit ports (A, B, C). Ports can be configured as input or output in different modes. It has 2 main modes - Bit Set/Reset for individual bit operations and I/O mode with submodes 0, 1, 2 for port configuration. Ports A and B can be used for simple I/O in mode 0 or handshake operations in mode 1. Mode 2 allows bidirectional data transfer on port A using port C pins as handshake signals.
Introduces the 8255 PPI pin diagram and its functionality. It describes its 40-pin structure, 24 I/O pins, and two operational modes: Bit Set Reset and I/O mode.
Details the function of blocks and pins in 8255. It includes descriptions of Data Bus, Control Logic, and I/O pins of Ports A, B, and C including read/write operations.
Presents the block diagram of 8255 PPI illustrating connections between components. Details input port selections through control signals using A0, A1, and related pins.
Explains the format for control words in both BSR and I/O modes. Details bit allocation for setting/resetting and operational configurations for ports.
Describes operational modes of 8255: I/O mode with sub-modes (0, 1, 2) and Bit Set/Reset mode. Each mode functionality, including handshaking capabilities and port operations, is outlined.
Control Word Formatin I/OMode
D7 D6 D5 D4 D3 D2 D1 D0 GROUP B
PORT C(LOWER)1=I/P,
0=O/P
PORT B
1=I/P, 0=O/P
MODESELECTION
0=MODE 0
1=MODE1
GROUP A
PORT C(UPPER)1=I/P,
0=O/P
PORTA
1=I/P, 0=O/P
MODESELECTION
00=MODE 0
01=MODE 1
1X =MODE2
MODE SETFLAG
1=ACTIVE
13.
Operating Modes Of8255
•There are two main operational modes of8255:
(1)Input/output mode,
(2)Bit set/reset mode (BSRMode).
I/O mode againclassified into three types
• (1) Mode 0,
• (2) Mode 1,
• (3) Mode 2.
14.
MODE 0
• Inthis mode, the ports can be used for simple input/output operations
without handshaking.
• If both port A and B are initialized in mode 0,the two halves of port Ccan
be either used together as an additional 8-bit port, or they can be used as
individual 4-bitports.
• Since the two halves of port Care independent, they may be used such that
one-half is initialized as an input port while the other half is initialized as an
output port.
Themode 0has followingfeatures:
• O/p arelatched.
• I/p are buffered notlatched.
• Port do not have handshake or interruptcapability.
15.
MODE 1
• Whenwe wish to use portAor port B for handshake (strobed) input or
output operation, we initialize that port in mode 1.
• Forport B in this mode (irrespective of whether is acting as an input port
or output port), PC0,PC1 and PC2pins function as handshake lines.
Themode 1has followingfeatures:
• Twoports i.e. portAand B can be use as 8-biti/o port.
• Each port uses three lines of port cas handshake signal and remaining two
signals can be function as i/oport.
• Interrupt logic issupported.
• Input and Output data arelatched.
16.
MODE 2
•Only groupAcan be initialized in thismode.
•PortA can be used for bidirectional handshake data
transfer.This means that data can be input or outputon
the same eight lines (PA0-PA7).
•Pins PC3- PC7are used as handshake lines for portA.
•Theremaining pins of port C(PC0 - PC2) can be usedas
input/output lines if group B is initialized in mode 0.
•In this mode, the 8255may be used to extend thesystem
bus to a slavemicroprocessor.