Chapter 7
Chapter 7
(MPI)
GTU # 3160712
Unit-7:
I/O Interfacing
Subject Overview
IO Interfacing
What do you mean by I/O Interfacing?
There are various communication devices like the keyboard, mouse,
printer, etc.
So, we need to interface the keyboard and other devices with the
microprocessor by using latches and buffers.
This type of interfacing is known as I/O interfacing.
8085 Interfacing Pins
Following is the list of 8085 pins used for
interfacing with other devices:
1. A15-A8 (Higher Address Bus)
2. AD7-AD0(Lower Address/Data Bus)
3. ALE
4. RD
5. WR
6. READY
Ways of Communication with Microprocessor
There are two ways of communication in which the microprocessor can
connect with the outside world.
1. Serial Communication Interface
In this type of communication, the interface gets a single bit of data
from the microprocessor and sends it bit by bit to the other system
serially and vice-a-versa.
PORT A 8-bit
GROUP
A
CU 4-bit
8255A CL 4-bit
PORT C I/O Devices
GROUP
B
PORT B 8-bit
8255A I/O port
8255A has three ports, i.e., PORT A, PORT B,
and PORT C.
Port A contains 8-bit I/O latch/buffer.
Port B is similar to PORT A.
Port C splits into two parts, i.e. PORT C
lower (PC3-PC0) and PORT C upper (PC7-
PC4) by the control word.
These three ports are further divided into
two groups,
Group A includes PORT A and upper 4-bit of
PORT C.
Group B includes PORT B and lower 4-bit of
PORT C.
These two groups can be programmed in
three different modes, i.e. the first mode is
named as mode 0, the second mode is
Power +5V
Group Group I/O
Block diagram : 8255A
Suppliers GND A A Port A PA7-PA0
Control
Bidirectional
Data
bus Data
D0- Group
D7 Bus A Port C I/O
Buffer Upper PC7-PC4
8-bit Internal data bus
RD Group I/O
WR B Port C PC3-PC0
A1 Read Lower
Group
A0 Write B
RESET
Control Control
Logic I/O
Group
PB7-PB0
B Port B
CS
Programmable Interrupt
Controller 8259A
Programmable Interrupt Controller 8259A: Introduction
SP/EN
INTERRUPT MASK REGISTER
(IMR)
Thank You