SlideShare a Scribd company logo
EC304: Microprocessors and Microcontrollers Lab
Birla Institute of Technology, Mesra
• Riddhima Varshney (BTech/25077/20)
• Sujal Gupta (BTech/25098/20)
1
2
ACKNOWLEDGEMENT
We would like to express our special thanks of gratitude to our faculty Mr. Snehanshu Shekhar who
gave us the golden opportunity to do this wonderful project on the topic 8255 PPI, which also
helped us in doing a lot of Research and we came to know about so many new things. We would also
like to thank our professor for guidance and constant source of encouragement in finishing this
assignment.
Lastly, we would also like to thank our parents and friends who helped us a lot in finalizing this
project within the limited time frame.
Table Of Content
8255 PPI
4
8255 PPI Architecture
5-6
Features of 8255
7
8255 PPI Pin Diagram
8
Operating modes of 8255 PPI
9-10
Reference
11
8255 PPI (Programmable Peripheral Interface)
• PPI 8255 is a general purpose
programmable I/O device
designed to interface the CPU
with its outside world such as
ADC, DAC, keyboard etc.
• We can program it according to
the given condition. It can be
used with almost any
microprocessor.
• It consists of three 8-bit
bidirectional I/O ports i.e.
PORT A, PORT B and PORT C.
We can assign different ports as
input or output functions.
4
8255 PPI
Architecture
8
Features of 8255
WIDELY USED,
PROGRAMMABLE,
PARALLEL I/O DEVICE
PROGRAMMED TO
TRANSFER DATA UNDER
VARIOUS CONDITIONS
COMPATIBLE WITH ALL
INTEL AND MOST OTHER
MICROPROCESSORS
TTL COMPATIBLE
HAS THREE 8-BIT PORTS:
PORT A, PORT B, PORT C
6
8255 PPI Pin Diagram
• PA0-PA7: Pins of Port A
• PB0-PB7: Pins of Port B
• PC0-PC7: Pins of Port C
• D0-D7: Data pins for the
transfer of data
• RESET: Reset input
• RD’: Read input
• WR’: Write input
• CS’: Chip select
• A1 and A0: Address pins
8
9
Operating modes of 8255 PPI
Operating Modes
Bit Set Reset
(BSR Mode)
Input-Output Mode
Mode 0 Mode 1 Mode 2
10
Operating Modes:
1. Bit Set Reset (BSR Mode): 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.
2. Input-Output Mode: If MSB of control word (D7) is 1,
PPI works in input-output mode. This is further divided
into three modes:
• Mode 0 –In this mode all the three ports (port A, B, C) can
work as simple input function or simple output function. In
this mode there is no interrupt handling capacity.
• Mode 1 – Handshake I/O mode or strobed I/O mode. In
this mode either port A or port B can work as simple input
port or simple output port, and port C bits are used for
handshake signals before actual data transmission. It has
interrupt handling capacity and input and output are latched.
• Mode 2 – Bi-directional data bus mode. In this mode only
port A works, and port B can work either in mode 0 or
mode 1. 6 bits port C are used as handshake signals. It also
has interrupt handling capacity.
Reference
11
• https://www.geeksforgeeks.org/programmable-peripheral-interface-8255/
• https://www.tutorialspoint.com/microprocessor/microprocessor_intel_8255a_programmable_periphera
l_interface.htm
• https://www.eeeguide.com/features-of-8255-microprocessor/
THANK YOU!

More Related Content

Similar to Riddhima Varshney (25077) and Sujal Gupta (25098).pptx

Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
tamilnesaner
 
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
karthik R
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt
Mohanumar S
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Mohanumar S
 
Operation of 8255A
Operation of 8255AOperation of 8255A
Operation of 8255A
Anuj Yadav
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and Working
Dr.YNM
 
Unit-IV.pptx
Unit-IV.pptxUnit-IV.pptx
Unit-IV.pptx
ssuser47c811
 
L4-L6 8255 A.pptx
L4-L6 8255 A.pptxL4-L6 8255 A.pptx
L4-L6 8255 A.pptx
Motaleb Hossen Manik
 
8255 Introduction
8255 Introduction8255 Introduction
8255 Introduction
SharmilaChidaravalli
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communication
canh phan
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)
Gurwinder Singh
 
The 8255 PPI
The 8255 PPIThe 8255 PPI
The 8255 PPI
Srikrishna Thota
 
Lec11
Lec11Lec11
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptx
BASKARS53
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
someshdash1
 
project 3 full report
project 3 full reportproject 3 full report
project 3 full report
Shubham Shivhare
 
8255_Ppi new
8255_Ppi new8255_Ppi new
8255_Ppi new
Monica Gunjal
 
7 8255
7 82557 8255
Plc 1
Plc 1Plc 1
Microprocessor Instructions
Microprocessor InstructionsMicroprocessor Instructions
Microprocessor Instructions
Chinmoy Ghorai
 

Similar to Riddhima Varshney (25077) and Sujal Gupta (25098).pptx (20)

Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
 
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
 
Operation of 8255A
Operation of 8255AOperation of 8255A
Operation of 8255A
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and Working
 
Unit-IV.pptx
Unit-IV.pptxUnit-IV.pptx
Unit-IV.pptx
 
L4-L6 8255 A.pptx
L4-L6 8255 A.pptxL4-L6 8255 A.pptx
L4-L6 8255 A.pptx
 
8255 Introduction
8255 Introduction8255 Introduction
8255 Introduction
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communication
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)
 
The 8255 PPI
The 8255 PPIThe 8255 PPI
The 8255 PPI
 
Lec11
Lec11Lec11
Lec11
 
UNIT- 3.pptx
UNIT- 3.pptxUNIT- 3.pptx
UNIT- 3.pptx
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
 
project 3 full report
project 3 full reportproject 3 full report
project 3 full report
 
8255_Ppi new
8255_Ppi new8255_Ppi new
8255_Ppi new
 
7 8255
7 82557 8255
7 8255
 
Plc 1
Plc 1Plc 1
Plc 1
 
Microprocessor Instructions
Microprocessor InstructionsMicroprocessor Instructions
Microprocessor Instructions
 

More from ManuGupta344215

SRINAL90.pptx
SRINAL90.pptxSRINAL90.pptx
SRINAL90.pptx
ManuGupta344215
 
8254-timer.ppt
8254-timer.ppt8254-timer.ppt
8254-timer.ppt
ManuGupta344215
 
8051 MICROCONTROLLER ECE.pptx
8051 MICROCONTROLLER ECE.pptx8051 MICROCONTROLLER ECE.pptx
8051 MICROCONTROLLER ECE.pptx
ManuGupta344215
 
Ronit Mathur Cyber Security assesment.pptx
Ronit Mathur Cyber Security assesment.pptxRonit Mathur Cyber Security assesment.pptx
Ronit Mathur Cyber Security assesment.pptx
ManuGupta344215
 
cyber .pptx
cyber .pptxcyber .pptx
cyber .pptx
ManuGupta344215
 
Basics_of_Stock_Selection_03022022.pptx
Basics_of_Stock_Selection_03022022.pptxBasics_of_Stock_Selection_03022022.pptx
Basics_of_Stock_Selection_03022022.pptx
ManuGupta344215
 

More from ManuGupta344215 (6)

SRINAL90.pptx
SRINAL90.pptxSRINAL90.pptx
SRINAL90.pptx
 
8254-timer.ppt
8254-timer.ppt8254-timer.ppt
8254-timer.ppt
 
8051 MICROCONTROLLER ECE.pptx
8051 MICROCONTROLLER ECE.pptx8051 MICROCONTROLLER ECE.pptx
8051 MICROCONTROLLER ECE.pptx
 
Ronit Mathur Cyber Security assesment.pptx
Ronit Mathur Cyber Security assesment.pptxRonit Mathur Cyber Security assesment.pptx
Ronit Mathur Cyber Security assesment.pptx
 
cyber .pptx
cyber .pptxcyber .pptx
cyber .pptx
 
Basics_of_Stock_Selection_03022022.pptx
Basics_of_Stock_Selection_03022022.pptxBasics_of_Stock_Selection_03022022.pptx
Basics_of_Stock_Selection_03022022.pptx
 

Recently uploaded

一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
zsjl4mimo
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
AndrzejJarynowski
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
Roger Valdez
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
Bill641377
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
g4dpvqap0
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Kiwi Creative
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
74nqk8xf
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
aqzctr7x
 

Recently uploaded (20)

一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
Everything you wanted to know about LIHTC
Everything you wanted to know about LIHTCEverything you wanted to know about LIHTC
Everything you wanted to know about LIHTC
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 
Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证如何办理
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 

Riddhima Varshney (25077) and Sujal Gupta (25098).pptx

  • 1. EC304: Microprocessors and Microcontrollers Lab Birla Institute of Technology, Mesra • Riddhima Varshney (BTech/25077/20) • Sujal Gupta (BTech/25098/20) 1
  • 2. 2 ACKNOWLEDGEMENT We would like to express our special thanks of gratitude to our faculty Mr. Snehanshu Shekhar who gave us the golden opportunity to do this wonderful project on the topic 8255 PPI, which also helped us in doing a lot of Research and we came to know about so many new things. We would also like to thank our professor for guidance and constant source of encouragement in finishing this assignment. Lastly, we would also like to thank our parents and friends who helped us a lot in finalizing this project within the limited time frame.
  • 3. Table Of Content 8255 PPI 4 8255 PPI Architecture 5-6 Features of 8255 7 8255 PPI Pin Diagram 8 Operating modes of 8255 PPI 9-10 Reference 11
  • 4. 8255 PPI (Programmable Peripheral Interface) • PPI 8255 is a general purpose programmable I/O device designed to interface the CPU with its outside world such as ADC, DAC, keyboard etc. • We can program it according to the given condition. It can be used with almost any microprocessor. • It consists of three 8-bit bidirectional I/O ports i.e. PORT A, PORT B and PORT C. We can assign different ports as input or output functions. 4
  • 6. 8
  • 7. Features of 8255 WIDELY USED, PROGRAMMABLE, PARALLEL I/O DEVICE PROGRAMMED TO TRANSFER DATA UNDER VARIOUS CONDITIONS COMPATIBLE WITH ALL INTEL AND MOST OTHER MICROPROCESSORS TTL COMPATIBLE HAS THREE 8-BIT PORTS: PORT A, PORT B, PORT C 6
  • 8. 8255 PPI Pin Diagram • PA0-PA7: Pins of Port A • PB0-PB7: Pins of Port B • PC0-PC7: Pins of Port C • D0-D7: Data pins for the transfer of data • RESET: Reset input • RD’: Read input • WR’: Write input • CS’: Chip select • A1 and A0: Address pins 8
  • 9. 9 Operating modes of 8255 PPI Operating Modes Bit Set Reset (BSR Mode) Input-Output Mode Mode 0 Mode 1 Mode 2
  • 10. 10 Operating Modes: 1. Bit Set Reset (BSR Mode): 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. 2. Input-Output Mode: If MSB of control word (D7) is 1, PPI works in input-output mode. This is further divided into three modes: • Mode 0 –In this mode all the three ports (port A, B, C) can work as simple input function or simple output function. In this mode there is no interrupt handling capacity. • Mode 1 – Handshake I/O mode or strobed I/O mode. In this mode either port A or port B can work as simple input port or simple output port, and port C bits are used for handshake signals before actual data transmission. It has interrupt handling capacity and input and output are latched. • Mode 2 – Bi-directional data bus mode. In this mode only port A works, and port B can work either in mode 0 or mode 1. 6 bits port C are used as handshake signals. It also has interrupt handling capacity.