MPMC M4 PDF
MPMC M4 PDF
MPMC M4 PDF
S5 CSE
MODULE 4
1.BSR Mode – When MSB of the control register is zero(0), 8255 works in Bit Set-
Reset mode.in this only PC bit are used for set and reset.
2.I/O Mode – When MSB of the control register is one(1), 8255 works in Input-Output
mode.it is further divided into three categories.
3.Mode 0 – In this mode all three ports (PA, PB, PC) can work as simple input function
or output function also in this mode there is no interrupt handling capabilities.
4.Mode 1 – In this either port A or port B can work and port C bits are used as
Handshake signal before actual data transmission plus it has interrupt handling
capabilities.
5.Mode 2 – In this only port A works and port B can work either in Mode 0 or Mode 1
and the 6 bits of port C are used as Handshake signal plus it also has to interrupt
handling capability.
Format of control word 8255 - BSR Mode
Format of control word 8255- IO Mode
Operating Modes of 8255
8255A has three different operating modes −
• Mode 0 − In this mode, Port A and B is used as two 8-bit ports and Port C
as two 4-bit ports. Each port can be programmed in either input mode or
output mode where outputs are latched and inputs are not latched. Ports
do not have interrupt capability.
• Mode 1 − In this mode, Port A and B is used as 8-bit I/O ports. They can
be configured as either input or output ports. Each port uses three lines
from port C as handshake signals. Inputs and outputs are latched.
• Mode 2 − In this mode, Port A can be configured as the bidirectional port
and 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
Functional Description:
0 0 0 PORT A
0 0 1 PORT B
0 1 0 PORT C
0 1 1 Control Register
1 X X No Selection
RESET
• This is an active high signal. It clears the control register and sets all ports in
the input mode.
RD (Read):
• A low on this input enables the 8255A to send the data or status information to the
CPU on the data bus.
WR (Write):
• A low on this input pin enables the CPU to write data or control words into the
8255A.
Output
Operation
0 0 1 0 0 Data Bus → PORT A