SlideShare a Scribd company logo
4
Most read
6
Most read
9
Most read
Programmable peripheral
interface 8255
Md. Marajul Islam
ID:16CSE038
Contents
2
8255 PPI
Block Diagram of 8255 PPI
Function of Blocks
Pin Diagram of 8255 PPI
Function of Pins
Operating Modes Of 8255
Control Word Format in I/O mode
8255 PPI
3
The INTEL 8255 is a 40 pin IC
having total 24 I/O pins.
consisting of 3 numbers of 8 –
bit parallel I/O ports(i.e. PORT
A, PORT B,PORT C).
It requires 4 internal addresses
and has one logic LOW chip
select pin.
Its main functions are to
interface peripheral devices to
the microprocessor.
Block Diagram of 8255 PPI
4
Function
Of Blocks
5
Data Bus Buffer
Read/write
Control logic
Port A
Port B
Port C
8255 – Block diagram Description
Data Bus Buffer
This three-state bi-directional 8-bit buffer is used to interface the 8255
to the system data bus. Data is transmitted or received by the buffer
upon execution of input or output instructions by the CPU. Control
words and status information are also transferred through the data bus
buffer.
Read/Write and Control Logic
The function of this block is to manage all of the internal and external
transfers of both Data and Control or Status words. It accepts inputs
from the CPU Address and Control busses and in turn, issues
commands to both of the Control Groups.
6
8255 – Block diagram Description
 (CS) Chip Select. A "low" on this input pin enables the
communication between the 8255 and the CPU.
 (RD) Read. A "low" on this input pin enables 8255 to send the data
or status information to the CPU on the data bus. In essence, it
allows the CPU to "read from" the 8255.
 (WR) Write. A "low" on this input pin enables the CPU to write data
or control words into the 8255.
 (RESET) Reset. A "high" on this input initializes the control register
to 9Bh and all ports (A, B, C) are set to the input mode.
7
8255 – Block diagram Description
 (A0 and A1) Port Select 0 and Port Select 1. These input signals, in
conjunction with the RD and WR inputs, control the selection of
one of the three ports or the control word register. They are
normally connected to the least significant bits of the address bus
(A0 and A1).
8
8255 – Block diagram Description
Group A and Group B Controls
 The functional configuration of each port is programmed by the
systems software. In essence, the CPU "outputs" a control word
to the 8255. The control word contains information such as
"model", "bit set", "bit reset", etc., that initializes the
functional configuration of the 8255. Each of the Control blocks
(Group A and Group B) accepts "commands" from the
Read/Write Control logic, receives "control words" from the
internal data bus and issues the proper commands to its
associated ports.
9
8255 – Block diagram Description
 Port A One 8-bit data output latch/buffer and one 8-bit data input
latch.
 Port B One 8-bit data input/output latch/buffer and one 8-bit data
input buffer.
 Port C One 8-bit data output latch/buffer and one 8-bit data input
buffer (no latch for input). This port can be divided into two 4-bit
ports under the mode control. Each 4-bit port contains a 4-bit
latch and it can be used for the control signal output and status
signal inputs in conjunction with ports A and B.
10
PIN
DIAGRAM
OF 8255
PPI
11
Function
Of Pin
12
D0-D7 (Data Bus)
PA0-PA7 (Port A)
PB0-PB7 (Port B)
PC0-PC7 ((Port C)
RD
WR
CS
RESET
A0-A1
Interfacing 8255 with 8085 processor
13
Operating
Modes Of
8255
14
• There are two main
operational modes of 8255:
• (1) Input/output mode,
• (2) Bit set/reset mode (BSR
Mode).
I/O mode again classified
into three types
• (1) Mode 0,
• (2) Mode 1,
• (3) Mode 2.
Bit set Reset(bsr) Mode
15
 If MSB of control word (D7) is 0, PPI works in BSR
mode.
 In this mode only port C bits are used for set or
reset.
Control Word Format in I/O Mode
16
Mode 0
17
• In this mode, the ports can be used for
simple input/output operations without
handshaking.
• If both port A and B are initialized in mode 0,
0, the two halves of port C can be either used
together as an additional 8-bit port, or they
can be used as individual 4-bit ports.
• Since the two halves of port C are
independent, they may be used such that one-
half is initialized as an input port while the
other half is initialized as an output port.
• NB : In this mode all the three ports (port A, B, C) can work
as simple input function or simple output function
Mode 1
18
Two ports i.e. port A and B can be use
as 8-bit i/o port.
Each port uses three lines of port c as
handshake signal and remaining
two signals can be function as i/o port.
Input and Output data are latched.
• NB : In this mode all the three ports (port A, B, C)
can work as simple input function or simple output
function
Mode 2
19
Only group A can be initialized in this mode.
Port A can be used for bidirectional handshake
data transfer. This means that data can be input
or output on the same eight lines (PA0 - PA7).
Pins PC3 - PC7 are used as handshake lines for
port A.
The remaining pins of port C (PC0 - PC2) can be
used as input/output lines if group B is initialized
in mode 0.
In this mode, the 8255 may be used to extend
the system bus to a slave
THE END
20

More Related Content

PPTX
Digital Components
PPT
Multiple access techniques for wireless communications
PPTX
Presentation on half and full wave ractifier.ppt
PPTX
Bcd and ascii arithmetic instructions
PPTX
Architecture of 8085 microprocessor
PPTX
PPT
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
PPT
8085 MICROPROCESSOR
Digital Components
Multiple access techniques for wireless communications
Presentation on half and full wave ractifier.ppt
Bcd and ascii arithmetic instructions
Architecture of 8085 microprocessor
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
8085 MICROPROCESSOR

What's hot (20)

PPT
8255 presentaion.ppt
PPTX
8051 MICROCONTROLLER ARCHITECTURE.pptx
PPTX
MICROCONTROLLER 8051- Architecture & Pin Configuration
PPTX
Chapter 1 microprocessor introduction
PDF
8155 PPI
PPT
Interfacing 8255
PPTX
Addressing modes 8085
PPT
Memory & I/O interfacing
PPTX
Presentation on 8086 microprocessor
DOCX
Microprocessor Interfacing and 8155 Features
PDF
Serial communication in 8085
PPTX
Microcontroller 8051 and its interfacing
PPTX
8255 PPI
PPT
PPT
8254 timer - Microprocessor and interfacing
PDF
8085 microprocessor ramesh gaonkar
PPT
Interfacing of io device to 8085
PPT
Programmableperipheralinterface 8255 ppt
PPT
8051 MICROCONTROLLER
PPTX
4.programmable dma controller 8257
8255 presentaion.ppt
8051 MICROCONTROLLER ARCHITECTURE.pptx
MICROCONTROLLER 8051- Architecture & Pin Configuration
Chapter 1 microprocessor introduction
8155 PPI
Interfacing 8255
Addressing modes 8085
Memory & I/O interfacing
Presentation on 8086 microprocessor
Microprocessor Interfacing and 8155 Features
Serial communication in 8085
Microcontroller 8051 and its interfacing
8255 PPI
8254 timer - Microprocessor and interfacing
8085 microprocessor ramesh gaonkar
Interfacing of io device to 8085
Programmableperipheralinterface 8255 ppt
8051 MICROCONTROLLER
4.programmable dma controller 8257
Ad

Similar to Programmable peripheral interface 8255 (20)

PPTX
1.ppi 8255
PDF
8255 & IO Interfacing.pdf
PDF
8255 programable io
PDF
363118864 8255-nptel
PPT
8255 class
PPTX
8255 ppi.pptx
PPT
8255 PPI (programmable Peripheral Interface) mode 0
PPTX
8255 Programmble Peripheral Interface
PPTX
Interfacing of 8255 IC By Er. Swapnil Kaware.
PPTX
Mod-2 M&M.pptx
DOC
Microprocessor Basics 8085-8255 ch-5
PPTX
MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3
PPTX
MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3
PPT
8255 ppi
PPTX
8255_Ppi new
PPTX
Unit-IV.pptx
PDF
Programmable Peripheral Devices
PPTX
8255 ppi students material for ppi mpmc study
PPTX
Operation of 8255A
PPT
1.ppi 8255
8255 & IO Interfacing.pdf
8255 programable io
363118864 8255-nptel
8255 class
8255 ppi.pptx
8255 PPI (programmable Peripheral Interface) mode 0
8255 Programmble Peripheral Interface
Interfacing of 8255 IC By Er. Swapnil Kaware.
Mod-2 M&M.pptx
Microprocessor Basics 8085-8255 ch-5
MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3
MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3
8255 ppi
8255_Ppi new
Unit-IV.pptx
Programmable Peripheral Devices
8255 ppi students material for ppi mpmc study
Operation of 8255A
Ad

Recently uploaded (20)

PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Geodesy 1.pptx...............................................
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
PPT on Performance Review to get promotions
PPTX
Welding lecture in detail for understanding
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
composite construction of structures.pdf
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPT
Project quality management in manufacturing
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
web development for engineering and engineering
PPTX
OOP with Java - Java Introduction (Basics)
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Geodesy 1.pptx...............................................
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Arduino robotics embedded978-1-4302-3184-4.pdf
PPT on Performance Review to get promotions
Welding lecture in detail for understanding
Structs to JSON How Go Powers REST APIs.pdf
Model Code of Practice - Construction Work - 21102022 .pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Internet of Things (IOT) - A guide to understanding
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
composite construction of structures.pdf
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Project quality management in manufacturing
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
web development for engineering and engineering
OOP with Java - Java Introduction (Basics)

Programmable peripheral interface 8255

  • 1. Programmable peripheral interface 8255 Md. Marajul Islam ID:16CSE038
  • 2. Contents 2 8255 PPI Block Diagram of 8255 PPI Function of Blocks Pin Diagram of 8255 PPI Function of Pins Operating Modes Of 8255 Control Word Format in I/O mode
  • 3. 8255 PPI 3 The INTEL 8255 is a 40 pin IC having total 24 I/O pins. consisting of 3 numbers of 8 – bit parallel I/O ports(i.e. PORT A, PORT B,PORT C). It requires 4 internal addresses and has one logic LOW chip select pin. Its main functions are to interface peripheral devices to the microprocessor.
  • 4. Block Diagram of 8255 PPI 4
  • 5. Function Of Blocks 5 Data Bus Buffer Read/write Control logic Port A Port B Port C
  • 6. 8255 – Block diagram Description Data Bus Buffer This three-state bi-directional 8-bit buffer is used to interface the 8255 to the system data bus. Data is transmitted or received by the buffer upon execution of input or output instructions by the CPU. Control words and status information are also transferred through the data bus buffer. Read/Write and Control Logic The function of this block is to manage all of the internal and external transfers of both Data and Control or Status words. It accepts inputs from the CPU Address and Control busses and in turn, issues commands to both of the Control Groups. 6
  • 7. 8255 – Block diagram Description  (CS) Chip Select. A "low" on this input pin enables the communication between the 8255 and the CPU.  (RD) Read. A "low" on this input pin enables 8255 to send the data or status information to the CPU on the data bus. In essence, it allows the CPU to "read from" the 8255.  (WR) Write. A "low" on this input pin enables the CPU to write data or control words into the 8255.  (RESET) Reset. A "high" on this input initializes the control register to 9Bh and all ports (A, B, C) are set to the input mode. 7
  • 8. 8255 – Block diagram Description  (A0 and A1) Port Select 0 and Port Select 1. These input signals, in conjunction with the RD and WR inputs, control the selection of one of the three ports or the control word register. They are normally connected to the least significant bits of the address bus (A0 and A1). 8
  • 9. 8255 – Block diagram Description Group A and Group B Controls  The functional configuration of each port is programmed by the systems software. In essence, the CPU "outputs" a control word to the 8255. The control word contains information such as "model", "bit set", "bit reset", etc., that initializes the functional configuration of the 8255. Each of the Control blocks (Group A and Group B) accepts "commands" from the Read/Write Control logic, receives "control words" from the internal data bus and issues the proper commands to its associated ports. 9
  • 10. 8255 – Block diagram Description  Port A One 8-bit data output latch/buffer and one 8-bit data input latch.  Port B One 8-bit data input/output latch/buffer and one 8-bit data input buffer.  Port C One 8-bit data output latch/buffer and one 8-bit data input buffer (no latch for input). This port can be divided into two 4-bit ports under the mode control. Each 4-bit port contains a 4-bit latch and it can be used for the control signal output and status signal inputs in conjunction with ports A and B. 10
  • 12. Function Of Pin 12 D0-D7 (Data Bus) PA0-PA7 (Port A) PB0-PB7 (Port B) PC0-PC7 ((Port C) RD WR CS RESET A0-A1
  • 13. Interfacing 8255 with 8085 processor 13
  • 14. Operating Modes Of 8255 14 • There are two main operational modes of 8255: • (1) Input/output mode, • (2) Bit set/reset mode (BSR Mode). I/O mode again classified into three types • (1) Mode 0, • (2) Mode 1, • (3) Mode 2.
  • 15. Bit set Reset(bsr) Mode 15  If MSB of control word (D7) is 0, PPI works in BSR mode.  In this mode only port C bits are used for set or reset.
  • 16. Control Word Format in I/O Mode 16
  • 17. Mode 0 17 • In this mode, the ports can be used for simple input/output operations without handshaking. • If both port A and B are initialized in mode 0, 0, the two halves of port C can be either used together as an additional 8-bit port, or they can be used as individual 4-bit ports. • Since the two halves of port C are independent, they may be used such that one- half is initialized as an input port while the other half is initialized as an output port. • NB : In this mode all the three ports (port A, B, C) can work as simple input function or simple output function
  • 18. Mode 1 18 Two ports i.e. port A and B can be use as 8-bit i/o port. Each port uses three lines of port c as handshake signal and remaining two signals can be function as i/o port. Input and Output data are latched. • NB : In this mode all the three ports (port A, B, C) can work as simple input function or simple output function
  • 19. Mode 2 19 Only group A can be initialized in this mode. Port A can be used for bidirectional handshake data transfer. This means that data can be input or output on the same eight lines (PA0 - PA7). Pins PC3 - PC7 are used as handshake lines for port A. The remaining pins of port C (PC0 - PC2) can be used as input/output lines if group B is initialized in mode 0. In this mode, the 8255 may be used to extend the system bus to a slave