8086 & 8085 Microprocessor.: 8255 Is A Programmable Peripheral Interface Device
8086 & 8085 Microprocessor.: 8255 Is A Programmable Peripheral Interface Device
possible directly.
• So in its place, there must be some device to which I/O ports
must connect I/O devices like 8255 PPI.
• This processor is from the Family of MCS-85, which Intel
designed, and it can be used with an 8086 & 8085
microprocessor.
• The 8255 is a Programmable peripheral interface device used to
achieve the basic communication method between the
microprocessor & machines.
• It is a peripheral device used for a machine programmed to
perform as an interface.
• This 8255 PPI is an interface between the microprocessors and
the I/O devices.
• 8255 microprocessor is a popularly used programmable
peripheral interface or PPI chip.
• The function of the 8255 microprocessor is to transmit data in
various conditions, from simple I/O to interrupted I/O.
• This microprocessor is also designed to interface the CPU with
its external world, such as ADC, keyboard, DAC, etc.
• This PPI is economical, functional, and flexible and thus can be
used with any microprocessor.
• So this peripheral device is also called an I/O device because the
I/O ports of this PPI are used for connecting I/O devices.
• This processor includes three 8-bit bidirectional I/O ports, which
can be configured based on necessity.
PA7 to PA0 (PortA Pins)
The PA7 to PA0 are Port A data line pins (1 to 4 & 37 to 40) distributed equally on two sides of
the top of the microprocessor. These eight port A pins work as either buffered input lines or
latched output based on the loaded control word into the control word register.
PB0 to PB7 (Port B Pins)
The PB0 to PB7 from 18 to 25 are the data line pins that carry the port B data.
PC0 to PC7 (Port C Pins)
PC0 to PC7 pins are port C pins, which include pin10 to pin17, which carry the port A data bits.
From there, pins 10 – pin13 are known as Port C upper pins & pin14 to pin17 are known as
lower pins. The pins from these two sections can be used individually to transmit 4 data bits
using two separate port C parts.
D0 to D7 (Data bus pins)
These D0 to D7 pins are data I/O lines which include 27-pin to 34-pin. These pins are used to
carry the 8-bit binary code and are utilized to train the entire IC work. These pins are jointly
known as the control register/control word which holds the data of the control word.
A0 & A1
A0 and A1 pins at pin8 & pin9 simply decide which port will be preferred for transmitting the
data.
If A0 = 0 & A1=0 then Port-A is selected.
If A0 = 0 & A1=1 then Port-B is selected.
If A0 = 1 & A1=0 then Port-C is selected.
If A0 = 1 & A1=1 then the control register is selected.
CS’
Pin 6, is a chip select input pin responsible for choosing a chip. A low signal at
the CS’ pin allows communication between the 8255 & the processor, which
means at this pin, the operation of data transfer gets allowed by an active low
signal.
RD’
Pin5, RD’, is a read input pin that puts the chip in reading mode. A low signal at
this RD’s pin provides data to the CPU by a data buffer.
WR’
The pin36 is the WR pin, a write input pin that puts the chip within writing mode.
So, a low signal at WR’s pin allows the CPU to execute the write operation
above the ports; otherwise, the microprocessor’s control registers through the
data bus buffer.
RESET
The pin35 is the RESET pin, which resets the data available in all the keys to
their default values when in set mode. It is an active high signal where the high
signal at the RESET pin clears the control registers &the ports are placed within
the input mode.
It comprises 40 pins and operates in a +5V regulated
power supply.
Port C is further divided into two 4-bit ports, i.e., port C
lower and port C upper, and port C can work in either
BSR (bit set reset) mode or in mode 0 of input-output
mode of 8255.
Port B can work in either mode 0 or mode 1 of input-
output mode.
Port A can work either in mode 0, mode 1, or mode 2 of
input-output mode.
It has two control groups, control group A and control
group B.
Control group A consists of port A and port C upper.