Programmable Peripheral Interface 8255: Last Updated: 14 May, 2023
Programmable Peripheral Interface 8255: Last Updated: 14 May, 2023
CoursesTutorialsJobsPracticeContests
Trending Now DSA Web Tech Foundational Courses Data Science Practice Problem Python Machin
https://www.geeksforgeeks.org/programmable-peripheral-interface-8255/ 1/8
5/11/24, 12:25 AM Programmable peripheral interface 8255 - GeeksforGeeks
0 0 0 PORT A 80 H
0 0 1 PORT B 81 H
0 1 0 PORT C 82 H
0 1 1 Control Register 83 H
1 X X No Seletion X
Pin diagram –
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.
https://www.geeksforgeeks.org/programmable-peripheral-interface-8255/ 2/8
5/11/24, 12:25 AM Programmable peripheral interface 8255 - GeeksforGeeks
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. Example: A CPU wants to transfer data to a printer. In this
case since speed of processor is very fast as compared to relatively
slow printer, so before actual data transfer it will send handshake
signals to the printer for synchronization of the speed of the CPU and
the peripherals.
https://www.geeksforgeeks.org/programmable-peripheral-interface-8255/ 3/8
5/11/24, 12:25 AM Programmable peripheral interface 8255 - GeeksforGeeks
www.agoda.com/Opotiki/Hotels
Opotiki Hotel Booking - Best Price
Guarantee - Secure Best Price Today
Advantages:
Ease of use: The PPI 8255 is relatively easy to use and program, even for
novice programmers. The control register of the PPI can be programmed
using simple commands, which makes it easy to interface with other devices.
Compatibility: The PPI 8255 is widely used and has been around for many
years, which means that it is compatible with a wide range of devices and
software.
https://www.geeksforgeeks.org/programmable-peripheral-interface-8255/ 4/8
5/11/24, 12:25 AM Programmable peripheral interface 8255 - GeeksforGeeks
Low cost: The PPI 8255 is a relatively low-cost component, which makes it
an affordable option for many different applications.
Disadvantages:
Limited number of ports: The PPI 8255 provides only three 8-bit ports,
which may not be sufficient for some applications that require more I/O
ports.
Limited resolution: The PPI 8255 provides only 8 bits of resolution for each
port, which may not be sufficient for some applications that require higher
resolution.
Obsolete technology: While the PPI 8255 is still used in some applications,
it is considered an older technology and is being replaced by newer, more
advanced I/O interface components.
"GeeksforGeeks helped me ace the GATE exam! Whenever I had any doubt
regarding any topic, GFG always helped me and made my concepts quiet
clear." - Anshika Modi | AIR 21
Over 125,000+ students already trust us to be their GATE Exam guide. Join
them & let us help you in opening the GATE to top-tech IITs & NITs!
78 Suggest improvement
Previous Next