Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

8255A Programmable Peripheral Interface Pinout and Working

By EG Projects March 6, 2022

8255 is general purpose programmable peripheral interface. It is used with many microprocessors and microcontrollers for various purposes. The device has three 8-bit ports port A, port B and port C. These ports can be used as input or output. These ports are further divided in to two groups A and B. Each group further has ports. Group A is comprised of port A and port C upper nibbles (pins 7, 6, 5, 4) control. Group B contains port B and port C lower nibble( 0, 1, 2, 3).

8255A Pinout and working

8255A Pinout

8255 PPI pin out

  • Vcc Apply 5 volts to this pin.
  • GND Ground this pin
  • CS (chip select) A low on this selects the 8255. Now you can     use the chip. 
  • RD (read) A low on this pin indicates that we want to read        data from specified port of 8255.
  • WR (write) A low on this pin indicates that we want to write to 8255.
  • RESET A high on this pin clear all registers and ports.

A0 and A1
These both pins select the ports. Combination of high and low level signal on these pins selects the ports A, B and C. Not only these pins are used to select port but also can write control word in device.

Control Word is an instruction or command send to 8255 to set its ports or pins as input, output or interrupt driven.

8255A Port selection Pins--- A0 and A1

8255A Port selection Pins— A0 and A1

8255 Modes

There are three modes in which the device can be used.

  • Mode-0
  • Mode-1
  • Mode-2

8255 PPI in Mode-0

In mode 0 each group can be used as input or output. Port A , port B and port C can be used as input or output. Port C has the specialty that it can be divided in to two nibbles upper and lower.  Both upper and lower can now be programmed to use as input or output. Mode 0 is also known as input/output mode (I/O mode). Question arises how we can do so. Yes it’s simple. Just send a control word to 8255 and it will set itself according to your control word. The control word for mode 0 is like this.

8255 control word

8255 control word
D7 will always be high for mode 0. For selecting all ports as output the control word will be 0x80 in hexadecimal, or 10000000 in binary.

8255 control word

8255a control word
In mode 0 you can also access individual bits of port C. For bit set reset mode D7 will always be 0.

8255 control word

8255 control word

8255 PPI in Mode-1

In mode 1 each group can be used as 8-bit input or output data bus and the remaining 4-bits are used as handshaking and interrupt control signals. Port A is used with port c upper three bits and port B is used with port c lower 3 bits. The remaining 2 bits of port C can be used as control signals. For more details on mode 1 download the data sheet released from Intel from the links below.

8255 Mode-2

Mode 2 is a bidirectional bus mode it is used very rarely. Mode 2 is used with port A only and port C is used for interrupt and control signals only. For more details on mode 1 download the data sheet released from Intel from the links below.

Microcontroller Projects Related to 8255A. Practical Examples with Code.

  • Increasing digital Input/Output Pins of Arduino Uno using 8255A.​
  • Interfacing 8255A with 89c51 microcontroller and Blinking Leds.
Download

Filed Under: PIC Microcontroller
Tagged With: 8255A, operating modes, pinout
 

Next Article

← Previous Article
Next Article →

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: 5G Technology
This Tech Toolbox covers the basics of 5G technology plus a story about how engineers designed and built a prototype DSL router mostly from old cellphone parts. Download this first 5G/wired/wireless communications Tech Toolbox to learn more!

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


RSS EDABOARD.com Discussions

  • Finding past posts on edaboard?
  • I think i have devised a new type of "super_transformer" for the Electricity grid?
  • Industrial Relay Board Design for Motorcycle Use
  • What is the purpose of this relay?
  • mosfet driver problem in regeneration mode

RSS Electro-Tech-Online.com Discussions

  • Sump pit water alarm - Kicad 9
  • Pic18f25q10 osccon1 settings swordfish basic
  • Anyone jumped from Easyeda std to Easyeda pro?
  • turbo jet fan - feedback appreciated.
  • More fun with ws2812 this time XC8 and CLC

Featured – LoRa/LoRaWan Series

  • What is the LoRaWAN network and how does it work?
  • Understanding LoRa architecture: nodes, gateways, and servers
  • Revolutionizing RF: LoRa applications and advantages
  • How to build a LoRa gateway using Raspberry Pi
  • How LoRa enables long-range communication
  • How communication works between two LoRa end-node devices

Recent Articles

  • How IoT network topologies work
  • The top five AI startups to watch in 2025
  • STMicroelectronics unveils SoC based on secure MCU
  • Nexperia’s 48 V ESD diodes support higher data rates with ultra-low capacitance design
  • Taoglas releases Patriot antenna with 18 integrated elements covering 600 to 6000 MHz

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe