0% found this document useful (0 votes)
13 views19 pages

Ppi

Uploaded by

umaganji89788
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views19 pages

Ppi

Uploaded by

umaganji89788
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

8255 - PPI

1
Introduction
• PPI – Programmable Peripheral Interface

• It is an I/O port chip used for interfacing I/O


devices with microprocessor

• Very commonly used peripheral chip

• Knowledge of 8255 essential for students in the


Microprocessors lab for Interfacing experiments
2
8255 Ports
• 8255 PPI has three 8-bit ports.
• Port A (PA)
• Port B (PB)
• Port C (PC)

• Port C composed of two independent 4-bit ports: PC7-4


(PC Upper) and PC3-0 (PC Lower)

• Port A, Port B, Port C and Control port will have the


addresses as 7CH, 7DH, 7EH, and 7FH respectively.

3
Block Diagram

8086 Interfacing ICs Suresh.P.Nair , HOD - ECE , RCET 4


Pin Diagram

5
Pin Description
• PA7-PA0 : These are eight port A lines that acts as either latched
output or buffered input lines depending upon the
control word loaded into the control word register.

• PC7-PC4 : Upper nibble of port C lines. They may act as either


output latches or input buffers lines.
This port also can be used for generation of handshake lines in
mode 1 or mode 2.

• PC3-PC0 : These are the lower port C lines, other details are the
same as PC7-PC4 lines.

• PB0-PB7 : These are the eight port B lines which are used as
latched output lines or buffered input lines in the same
way as port A.
6
Pin Description
• RD : This is the input line driven by the microprocessor and
should be low to indicate read operation to 8255.

• WR : This is an input line driven by the microprocessor. A


low on this line indicates write operation.

• CS : This is a chip select line. If this line goes low, it enables


the 8255 to respond to RD and WR signals, otherwise
RD and WR signal are neglected.

• A1-A0 : These are the address input lines and are driven by the
microprocessor.

• RESET : The 8255 is placed into its reset state if this input line is
a logical 1. All peripheral ports are set to the input
mode.
7
8255 Operations
• The lines A1-A0 with RD, WR and CS form the following
operations for 8255.

8086 Interfacing ICs Suresh.P.Nair , HOD - ECE , RCET 8


Programming 8255
• 8255 has three operation modes: mode 0, mode 1, and
mode 2

Mode 0 - Simple Input or Output mode

Mode 1 - Input or Output with Handshake mode

Mode 2 - Bidirectional Data Transfer mode

9
Mode 0 - Simple Input or Output
• In this mode, ports A, B are used as two simple 8-bit I/O
ports & port C as two independent 4-bit ports.
• Each port can be programmed to function as simply an
input port or an output port.

• The input/output features in Mode 0 are as follows.


1. Outputs are latched.
2. Inputs are not latched.
3. Ports don’t have handshake or interrupt capability.

10
Mode 1 - Input or Output with Handshake
• In this mode, handshake signals are exchanged between
the MPU and peripherals prior to data transfer.

• The features of the mode include the following:


1. Two ports (A and B) function as 8-bit I/O ports.
They can be configured as either as input or output ports.

2. Each port uses three lines from port C as handshake signals.


The remaining two lines of Port C can be used for simple I/O operations.
3. Input and Output data are latched.
4. Interrupt logic is supported.

11
Mode 1 - Input or Output with Handshake
Mode 1 - Input or Output with Handshake

13
Mode 2 - Bidirectional Data Transfer
• This mode is used primarily in applications such as data
transfer between two computers.

• In this mode, Port A can be configured as the


bidirectional port, 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.

14
Mode 2 - Bidirectional Data Transfer
8255 Modes Summary
• Port A can work in Mode 0, Mode 1, or Mode 2
• Port B can work in Mode 0, or Mode 1
• Port C can work in Mode 0 only, if at all

• Port A, Port B and Port C can work in Mode 0


• Port A and Port B can work in Mode 1
• Only Port A can work in Mode 2
17
8255 Control Words
• There are 2 control words in 8255.
1. Mode Definition (MD) Control word and
2. Bit Set / Reset (BSR) Control Word

• MD control word configures the ports of 8255 as


input or output in Mode 0, 1, or 2.

• PCBSR control word is used to set to 1 or reset to


0 any one selected bit of Port C
8255 Control words

19

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy