SlideShare a Scribd company logo
OPERATION OF
8255A
PROGRAMMABLE PERIPHERAL INTERFACE

BY : ANUJ YADAV
14606, ECS
anuj_yadav

1
MODES
There are two basic modes of operation of 8255A.
• I/O mode – In this mode, the 8255A ports work as
programmable I/O ports.
• Bit Set-Reset mode – In this mode, only port C (PC0 – PC7) can
be used to set or reset its individual port bits.

anuj_yadav

2
Bit

Operation

D7

1 for I/O Mode | 0 for BSR Mode

D6, D5, D4

These are Undefined or Don’t Care

D3, D2, D1

These are Bit select flags
000-111 => for bits PC0 – PC7

D0

1 for set | 0 for Reset

• I/O Mode Control Word Register Format – The I/O modes can
be programmed using control word register by putting D7 at
logic 1. Format is shown below:
D7

D6

D5

D4

D3

D2

D1

D0

1

X

X

X

B2

B1

B0

S/R

• Bit Set-Reset Mode – In this mode any of the 8-bits of port C
can be set or reset depending on D0 of the control word. The
bit to be set or reset is selected by bit select flags D3, D2 and
D1 of CWR. Format is shown below:
D7

D6

D5

D4

D3

D2

D1

D0

0

X

X

X

B2

B1

B0

S/R

anuj_yadav

3
HANDSHAKING Signals
• Dedicated lines used to coordinate data transfer.
• Used to signal ready/not ready, or to acknowledge or request.
NEED:
• The MPU and peripherals operate at different speeds, the
MPU being faster than the peripherals.
• To avoid overlapping of data during data input or data output,
handshake signals are used between MPU & the peripherals.

anuj_yadav

4
I/O Operating Modes
• Under the I/O mode of operation, further there are three
modes of operation of 8255A.
 Mode 0 – Basic Input/output
 Mode 1 – Strobed Input/output
 Mode 2 – Bi-directional Bus
• All these modes can be selected by programming register
internal to 8255A known Control Word Register(CWR).
• This very register with different format can also be used for
Bit Set-Reset(BSR) mode of Operation.

anuj_yadav

5
Mode 0 (BASIC I/O)
• Provides simple input and output capabilities using each of
the three ports.
• Data can be simply read from and written to the input and
output ports respectively, after appropriate initialization.
• No Handshaking is required.
PA
8255A

PA6-PA7

PA

PCU

PC4-PC7

PCU

PCL

PC0-PC3

PB

PB0-PB7

8255A

PA

PC

PCL
PB

PB0-PB7

Signals in MODE 0
anuj_yadav

6
•
•
•
•
•

Features of mode 0:
Two 8-bits and two 4-bits ports.
Output ports are latched.
Input ports are buffered, not latched.
Any port can be input or output.
With 4 ports, 16 different combinations of I/O are possible.

anuj_yadav

7
Mode 1 (STROBE I/O)
• This functional configuration provides a means for
transferring I/O data to or from a specified port in conjunction
with strobes or ā€œhandshakingā€ signals.
• In mode 1, Port A and Port B use the lines on Port C to
generate or accept these ā€œhandshakingā€ signals.
PC4
PC5
PC3
8255A

I/P

PC2
PC1
PC0
PC6,7

PA[0:7]
STB(A)[AL]
IBF(A)
INTR(A)
PB[0:7]
STB(B)[AL]
IBF(B)
INTR(B)
O/P

PC7
PC6
PC3
8255A

anuj_yadav

PC2
PC1
PC0
PC4,5

PA[0:7]
OBF(A)[AL]
ACK(A)[AL]
INTR(A)
PB[0:7]
OBF(B)[AL]
ACK(B)[AL]
INTR(B)
8
•
•
•
•

Features of mode 1:
Two Groups (Group A and Group B).
Each group contains one 8-bit data port and one 4-bit
control/data port.
The 8-bit data port can be either input or output. Both inputs
and outputs are latched.
The 4-bit port is used for control and status of the 8-bit data
port. PC0 – PC2 for Port B and PC3 – PC5 for Port A.

anuj_yadav

9
Mode 2

(STROBE BIDIRECTIONAL BUS I/O)
• This functional configuration provides a means for
communicating with a peripheral device or structure on a
single 8-bit bus for both transmitting and receiving data
(bidirectional bus I/O).
• ā€œHandshakingā€ signals are provided to maintain proper bus
flow discipline in a similar manner to MODE 1.
• Interrupt generation and enable/disable functions are also
available.
PA[0:7]

8255A

PC7
STB(A)[AL]
PC6
IBF(A)
INTR(A)
PC4
PC5
INTR(A)
PC3
INTR(A)
PC2
PC1
PC0
anuj_yadav
PB[0:7]

10
• Features of mode 1:
• Used in Group A only.
• One 8-bit, bi-directional bus port (Port A) and a 5-bit control
port (Port C).
• Three I/O lines available at port C.
• Both inputs and outputs are latched.
• The 5-bit control port (Port C) is used for control and status for
the 8-bit, bi-directional bus port (Port A).

anuj_yadav

11
THANK YOU

anuj_yadav

12

More Related Content

PPTX
8086 microprocessor-architecture
prasadpawaskar
Ā 
PPTX
UNIT 2 8086 System Bus Structure.pptx
Gowrishankar C
Ā 
PPTX
8251 USART
coolsdhanesh
Ā 
PPT
Architecture of 8086 Microprocessor
Mustapha Fatty
Ā 
PDF
DRAM Cell - Working and Read and Write Operations
Naman Bhalla
Ā 
PPTX
8255 Programmable parallel I/O
Muhammed Afsal Villan
Ā 
PPTX
Microprocessor 8086
Gopikrishna Madanan
Ā 
PPT
8237 / 8257 DMA
AJAL A J
Ā 
8086 microprocessor-architecture
prasadpawaskar
Ā 
UNIT 2 8086 System Bus Structure.pptx
Gowrishankar C
Ā 
8251 USART
coolsdhanesh
Ā 
Architecture of 8086 Microprocessor
Mustapha Fatty
Ā 
DRAM Cell - Working and Read and Write Operations
Naman Bhalla
Ā 
8255 Programmable parallel I/O
Muhammed Afsal Villan
Ā 
Microprocessor 8086
Gopikrishna Madanan
Ā 
8237 / 8257 DMA
AJAL A J
Ā 

What's hot (20)

PPTX
INTERRUPTS OF 8086 MICROPROCESSOR
Gurudev joshi
Ā 
PPTX
8251 USART
ShivamSood22
Ā 
PPTX
Introduction to 8085 Microprocessor
Ravi Anand
Ā 
PPTX
8086 architecture By Er. Swapnil Kaware
Prof. Swapnil V. Kaware
Ā 
PPT
8086 microprocessor
Vikas Gupta
Ā 
PPT
8085 Architecture & Memory Interfacing1
techbed
Ā 
PPTX
Programmable peripheral interface 8255
Marajulislam3
Ā 
PDF
Arm instruction set
Mathivanan Natarajan
Ā 
PPTX
8255 PPI
deval patel
Ā 
PPTX
8085 microprocessor
Anuja Gunale
Ā 
PPT
I2C Protocol
Anurag Tomar
Ā 
PDF
Introduction to 8085 Microprocessors
Veerakumar S
Ā 
PPTX
8051 Microcontroller
Ravikumar Tiwari
Ā 
PPTX
Interrupts of microprocessor 8085
mujeebkhanelectronic
Ā 
PPTX
Addressing modes of 8086
Dr. AISHWARYA N
Ā 
PDF
8259 Programmable Interrupt Controller
abhikalmegh
Ā 
PPT
8086 assembly language
Mir Majid
Ā 
PPTX
Microprogrammed Control Unit
PreethiSureshkumar1
Ā 
PPTX
Presentation on 8086 Microprocessor
Nahian Ahmed
Ā 
PDF
microprocessor Questions with solution
dit
Ā 
INTERRUPTS OF 8086 MICROPROCESSOR
Gurudev joshi
Ā 
8251 USART
ShivamSood22
Ā 
Introduction to 8085 Microprocessor
Ravi Anand
Ā 
8086 architecture By Er. Swapnil Kaware
Prof. Swapnil V. Kaware
Ā 
8086 microprocessor
Vikas Gupta
Ā 
8085 Architecture & Memory Interfacing1
techbed
Ā 
Programmable peripheral interface 8255
Marajulislam3
Ā 
Arm instruction set
Mathivanan Natarajan
Ā 
8255 PPI
deval patel
Ā 
8085 microprocessor
Anuja Gunale
Ā 
I2C Protocol
Anurag Tomar
Ā 
Introduction to 8085 Microprocessors
Veerakumar S
Ā 
8051 Microcontroller
Ravikumar Tiwari
Ā 
Interrupts of microprocessor 8085
mujeebkhanelectronic
Ā 
Addressing modes of 8086
Dr. AISHWARYA N
Ā 
8259 Programmable Interrupt Controller
abhikalmegh
Ā 
8086 assembly language
Mir Majid
Ā 
Microprogrammed Control Unit
PreethiSureshkumar1
Ā 
Presentation on 8086 Microprocessor
Nahian Ahmed
Ā 
microprocessor Questions with solution
dit
Ā 
Ad

Viewers also liked (20)

PPT
Interfacing 8255
Anuja Bhakuni
Ā 
PPTX
Interfacing of 8255 IC By Er. Swapnil Kaware.
Prof. Swapnil V. Kaware
Ā 
PPT
8255_utkarsh_kulshrestha
Utkarsh Kulshrestha
Ā 
PPTX
8254 Programmable Interval Timer by vijay
Vijay Kumar
Ā 
PPTX
8259 Programmable Interrupt Controller by vijay
Vijay Kumar
Ā 
PDF
8085 instruction set and addressing modes
Vijay Kumar
Ā 
PPT
1204 Ppi 8255
techbed
Ā 
DOCX
Basics of peripheral devices and Working
Dr.YNM
Ā 
PPTX
Microcontroller 8051 and its interfacing
Ankur Mahajan
Ā 
DOC
8051 Microcontroller Notes
Dr.YNM
Ā 
PDF
8085 microprocessor 8155, 8255
Xavier Institute of Engineering, Mumbai
Ā 
PPTX
8295
jemimajerome
Ā 
PPTX
8155 Basic Concepts
Srinath Kalikivayi
Ā 
PPT
Programmable Timer 8253/8254
Muhammed Afsal Villan
Ā 
PDF
Microprocess Microconroller mcq 1000+
Kumaran K
Ā 
PPT
1203 Ppi 8155
techbed
Ā 
PPTX
USART
Islam Samir
Ā 
PPTX
8237 dma controller
Tech_MX
Ā 
PPT
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
Ā 
Interfacing 8255
Anuja Bhakuni
Ā 
Interfacing of 8255 IC By Er. Swapnil Kaware.
Prof. Swapnil V. Kaware
Ā 
8255_utkarsh_kulshrestha
Utkarsh Kulshrestha
Ā 
8254 Programmable Interval Timer by vijay
Vijay Kumar
Ā 
8259 Programmable Interrupt Controller by vijay
Vijay Kumar
Ā 
8085 instruction set and addressing modes
Vijay Kumar
Ā 
1204 Ppi 8255
techbed
Ā 
Basics of peripheral devices and Working
Dr.YNM
Ā 
Microcontroller 8051 and its interfacing
Ankur Mahajan
Ā 
8051 Microcontroller Notes
Dr.YNM
Ā 
8085 microprocessor 8155, 8255
Xavier Institute of Engineering, Mumbai
Ā 
8295
jemimajerome
Ā 
8155 Basic Concepts
Srinath Kalikivayi
Ā 
Programmable Timer 8253/8254
Muhammed Afsal Villan
Ā 
Microprocess Microconroller mcq 1000+
Kumaran K
Ā 
1203 Ppi 8155
techbed
Ā 
USART
Islam Samir
Ā 
8237 dma controller
Tech_MX
Ā 
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
Ā 
Ad

Similar to Operation of 8255A (20)

PPT
8255 class
riyasekaran
Ā 
PPT
8255 presentaion.ppt
kamlesh deshmukh
Ā 
PDF
8255 & IO Interfacing.pdf
Ilavarasan Tamizh
Ā 
PPTX
Mod-2 M&M.pptx
TechCook1
Ā 
PPTX
MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3
AnbazhaganSelvanatha
Ā 
PPTX
MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3
AnbazhaganSelvanatha
Ā 
PDF
Programmable Peripheral Devices
glorypriyadharshini1
Ā 
PPTX
Unit-3 IO Interfacing-1.pptximportant questions to be noted
mandakalyan811
Ā 
PPTX
1.ppi 8255
MdFazleRabbi18
Ā 
PPTX
PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255
Zahid Parvez
Ā 
PDF
8255.pdf
someshdash1
Ā 
PPT
8255 ppi
Suraj Bora
Ā 
PPT
Lecture_8255_MODIfggggggggggggFIED_BY_ME_24-11-2020.ppt
MrRobot26030
Ā 
PPT
Ppi 8255
Muhammadalizardari
Ā 
PPTX
Lec14
siddu kadiwal
Ā 
PPTX
UNIT 3 Peripheral Interfacing.pptx
Gowrishankar C
Ā 
PDF
8255 programable io
prabhat pandey
Ā 
PPTX
8255 ppi students material for ppi mpmc study
Sirisha Vamsi
Ā 
PPT
Programmableperipheralinterface 8255 ppt
sharan Kumar
Ā 
PPTX
Unit-IV.pptx
ssuser47c811
Ā 
8255 class
riyasekaran
Ā 
8255 presentaion.ppt
kamlesh deshmukh
Ā 
8255 & IO Interfacing.pdf
Ilavarasan Tamizh
Ā 
Mod-2 M&M.pptx
TechCook1
Ā 
MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3
AnbazhaganSelvanatha
Ā 
MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3 MPMC UNIT 3
AnbazhaganSelvanatha
Ā 
Programmable Peripheral Devices
glorypriyadharshini1
Ā 
Unit-3 IO Interfacing-1.pptximportant questions to be noted
mandakalyan811
Ā 
1.ppi 8255
MdFazleRabbi18
Ā 
PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255
Zahid Parvez
Ā 
8255.pdf
someshdash1
Ā 
8255 ppi
Suraj Bora
Ā 
Lecture_8255_MODIfggggggggggggFIED_BY_ME_24-11-2020.ppt
MrRobot26030
Ā 
Ppi 8255
Muhammadalizardari
Ā 
Lec14
siddu kadiwal
Ā 
UNIT 3 Peripheral Interfacing.pptx
Gowrishankar C
Ā 
8255 programable io
prabhat pandey
Ā 
8255 ppi students material for ppi mpmc study
Sirisha Vamsi
Ā 
Programmableperipheralinterface 8255 ppt
sharan Kumar
Ā 
Unit-IV.pptx
ssuser47c811
Ā 

Recently uploaded (20)

PPTX
CDH. pptx
AneetaSharma15
Ā 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
Ā 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
Ā 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
Ā 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
Ā 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
Ā 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
Ā 
PDF
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
Ā 
PDF
BƀI Tįŗ¬P TEST Bį»” TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KƈM BƀI Tįŗ¬P NGHE - TIįŗ¾NG A...
Nguyen Thanh Tu Collection
Ā 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
Ā 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
Ā 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
Ā 
PPTX
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
Ā 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
Ā 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
Ā 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
Ā 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
Ā 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
Ā 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
Ā 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
Ā 
CDH. pptx
AneetaSharma15
Ā 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
Ā 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
Ā 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
Ā 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
Ā 
Basics and rules of probability with real-life uses
ravatkaran694
Ā 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
Ā 
Biological Classification Class 11th NCERT CBSE NEET.pdf
NehaRohtagi1
Ā 
BƀI Tįŗ¬P TEST Bį»” TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KƈM BƀI Tįŗ¬P NGHE - TIįŗ¾NG A...
Nguyen Thanh Tu Collection
Ā 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
Ā 
Care of patients with elImination deviation.pptx
AneetaSharma15
Ā 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
Ā 
Artificial Intelligence in Gastroentrology: Advancements and Future Presprec...
AyanHossain
Ā 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
Ā 
Virus sequence retrieval from NCBI database
yamunaK13
Ā 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
Ā 
How to Apply for a Job From Odoo 18 Website
Celine George
Ā 
Review of Related Literature & Studies.pdf
Thelma Villaflores
Ā 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
Ā 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
Ā 

Operation of 8255A

  • 1. OPERATION OF 8255A PROGRAMMABLE PERIPHERAL INTERFACE BY : ANUJ YADAV 14606, ECS anuj_yadav 1
  • 2. MODES There are two basic modes of operation of 8255A. • I/O mode – In this mode, the 8255A ports work as programmable I/O ports. • Bit Set-Reset mode – In this mode, only port C (PC0 – PC7) can be used to set or reset its individual port bits. anuj_yadav 2
  • 3. Bit Operation D7 1 for I/O Mode | 0 for BSR Mode D6, D5, D4 These are Undefined or Don’t Care D3, D2, D1 These are Bit select flags 000-111 => for bits PC0 – PC7 D0 1 for set | 0 for Reset • I/O Mode Control Word Register Format – The I/O modes can be programmed using control word register by putting D7 at logic 1. Format is shown below: D7 D6 D5 D4 D3 D2 D1 D0 1 X X X B2 B1 B0 S/R • Bit Set-Reset Mode – In this mode any of the 8-bits of port C can be set or reset depending on D0 of the control word. The bit to be set or reset is selected by bit select flags D3, D2 and D1 of CWR. Format is shown below: D7 D6 D5 D4 D3 D2 D1 D0 0 X X X B2 B1 B0 S/R anuj_yadav 3
  • 4. HANDSHAKING Signals • Dedicated lines used to coordinate data transfer. • Used to signal ready/not ready, or to acknowledge or request. NEED: • The MPU and peripherals operate at different speeds, the MPU being faster than the peripherals. • To avoid overlapping of data during data input or data output, handshake signals are used between MPU & the peripherals. anuj_yadav 4
  • 5. I/O Operating Modes • Under the I/O mode of operation, further there are three modes of operation of 8255A.  Mode 0 – Basic Input/output  Mode 1 – Strobed Input/output  Mode 2 – Bi-directional Bus • All these modes can be selected by programming register internal to 8255A known Control Word Register(CWR). • This very register with different format can also be used for Bit Set-Reset(BSR) mode of Operation. anuj_yadav 5
  • 6. Mode 0 (BASIC I/O) • Provides simple input and output capabilities using each of the three ports. • Data can be simply read from and written to the input and output ports respectively, after appropriate initialization. • No Handshaking is required. PA 8255A PA6-PA7 PA PCU PC4-PC7 PCU PCL PC0-PC3 PB PB0-PB7 8255A PA PC PCL PB PB0-PB7 Signals in MODE 0 anuj_yadav 6
  • 7. • • • • • Features of mode 0: Two 8-bits and two 4-bits ports. Output ports are latched. Input ports are buffered, not latched. Any port can be input or output. With 4 ports, 16 different combinations of I/O are possible. anuj_yadav 7
  • 8. Mode 1 (STROBE I/O) • This functional configuration provides a means for transferring I/O data to or from a specified port in conjunction with strobes or ā€œhandshakingā€ signals. • In mode 1, Port A and Port B use the lines on Port C to generate or accept these ā€œhandshakingā€ signals. PC4 PC5 PC3 8255A I/P PC2 PC1 PC0 PC6,7 PA[0:7] STB(A)[AL] IBF(A) INTR(A) PB[0:7] STB(B)[AL] IBF(B) INTR(B) O/P PC7 PC6 PC3 8255A anuj_yadav PC2 PC1 PC0 PC4,5 PA[0:7] OBF(A)[AL] ACK(A)[AL] INTR(A) PB[0:7] OBF(B)[AL] ACK(B)[AL] INTR(B) 8
  • 9. • • • • Features of mode 1: Two Groups (Group A and Group B). Each group contains one 8-bit data port and one 4-bit control/data port. The 8-bit data port can be either input or output. Both inputs and outputs are latched. The 4-bit port is used for control and status of the 8-bit data port. PC0 – PC2 for Port B and PC3 – PC5 for Port A. anuj_yadav 9
  • 10. Mode 2 (STROBE BIDIRECTIONAL BUS I/O) • This functional configuration provides a means for communicating with a peripheral device or structure on a single 8-bit bus for both transmitting and receiving data (bidirectional bus I/O). • ā€œHandshakingā€ signals are provided to maintain proper bus flow discipline in a similar manner to MODE 1. • Interrupt generation and enable/disable functions are also available. PA[0:7] 8255A PC7 STB(A)[AL] PC6 IBF(A) INTR(A) PC4 PC5 INTR(A) PC3 INTR(A) PC2 PC1 PC0 anuj_yadav PB[0:7] 10
  • 11. • Features of mode 1: • Used in Group A only. • One 8-bit, bi-directional bus port (Port A) and a 5-bit control port (Port C). • Three I/O lines available at port C. • Both inputs and outputs are latched. • The 5-bit control port (Port C) is used for control and status for the 8-bit, bi-directional bus port (Port A). anuj_yadav 11