Professional Documents
Culture Documents
Interfacing 8255
Interfacing 8255
Interfacing 8255
1. Introduction
2. Architecture of 8255
3. Keyboard interfacing
4. LED display –interfacing
5. ADC and DAC interface
6. Temperature Control interface
7. Stepper Motor Control interface
8. Traffic Control interface
Introduction to INTERFACING:
Programmable Peripheral interface [PPI] :
• It is a general purpose I/O interfacing Chip used for parallel data
transfer
• It is a 40 pin IC out of which 24 pins are I/O pins which can be
grouped into 3X8 pins (Port A, B and C)
• 8 bits of Port C can be programmed individually hence it is used for
control purpose
• Port C can also be grouped as two 4 bit ports port CU and Port CL
• The function of Port C is set by passing Control Word
Features of 8255 PPI :
PIN DIAGRAM OF 8255 :
• Data bus(D0-D7):These are 8-bit bi-
directional buses, connected to 8085
data bus for transferring data.
A1 A0 Select
0 0 PA
0 1 PB
1 0 PC
Control
1 1
reg.
• PA0-PA7:It is the 8-bit bi-directional
I/O pins used to send the data to
peripheral or or to receive the data
from peripheral.
• PB0-PB7:Similar to PA
PORT A:
• This is a 8-bit buffered I/O latch.
• It can be programmed by mode 0 , mode
1, mode 2 .
PORT B:
• This is a 8-bit buffer I/O latch.
• It can be programmed by mode 0
and mode 1.
PORT C:
• It is splitted into two parts.
• It can be programmed by bit
set/reset operation.
Operation modes:
BIT SET/RESET MODE:
• The PORT C can be Set or Reset by sending OUT instruction to the CONTROL
registers.
I/O MODES:
1. MODE 0 (Simple input / Output):
- In this mode , port A, port B and port C is used as simple I/O ports
2. MODE 1 :(Input/output with Hand shake)
- In this mode, input or output is transferred by hand shaking signals
3. MODE 2: (bi-directional I/O data transfer)
- This mode allows bidirectional data transfer over a single 8-bit data bus
using handshake signals.
- This feature is possible only Group A