Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Notes  >  PIO 8255 - Microprocessors and Microcontrollers

PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE) PDF Download

PIO 8255:

The parallel input-output port chip 8255 is also called as programmableperipheral input-output port. The Intel‟s 8255 are designed for use with Intel‟s 8-bit, 16-bit and higher capability microprocessors. It has 24 input/output lineswhich may be individually programmed in two groups of twelve lines each, orthree groups of eight lines.
The two groups of I/O pins are named as Group A and Group B. Each of thesetwo groups contains a subgroup of eight I/O lines called as 8-bit port and anothersubgroup of four lines or a 4-bit port. Thus Group A contains an 8-bit port Aalong with a 4-bit port C upper.

PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE)

The port A lines are identified by symbols PA0-PA7 while the port C lines are identified as PC4-PC7 similarly. Group B contains an 8-bit port B, containing lines PB0- PB7 and a 4-bit port C with lower bits PC0-PC3. The port C upper and port C lower can be used in combination as an 8-bit port C. Both the port Cs is assigned the same address. Thus one may have either three 8-bit I/O ports or two 8-bit and two 4-bit I/O ports from 8255. All of these ports can function independently either as input or as output ports. This can be achieved by programming the bits of an internal register of 8255 called as control word register (CWR). The internal block diagram and the pin configuration of 8255 are shown in figs.

The 8-bit data bus buffer is controlled by the read/write control logic. The read/write control logic manages all of the internal and external transfer of both data and control words.
RD, WR, A1, A0 and RESET are the inputs, provided by the microprocessor to READ/WRITE control logic of 8255. The 8-bit, 3-state bidirectional buffer is used to interface the 8255 internal data bus with the external system data bus. This buffer receives or transmits data upon the execution of input or output instructions by the microprocessor.
The control words or status information is also transferred through the buffer.

Pin Diagram of 8255A

PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE)

The pin configuration of 8255 is shown in fig.

  • The port A lines are identified by symbols PA0-PA7 while the port C lines are
  • Identified as PC4-PC7. Similarly, Group B contains an 8-bit port B, containing lines PB0-PB7 and a 4-bit port C with lower bits PC0- PC3. The port C upper and port C lower can be used in combination as an 8-bit port C.
  • Both the port C is assigned the same address. Thus one may have either three 8-bit I/O ports or two 8-bit and two 4-bit ports from 8255. All of these ports can function independently either as input or as output ports. This can be achieved by programming the bits of an internal register of 8255 called as control word register (CWR).
  • The 8-bit data bus buffer is controlled by the read/write control logic. The read/write control logic manages all of the internal and external transfers of both data and control words.
  • RD,WR, A1, A0 and RESET are the inputs provided by the microprocessor to the READ/ WRITE control logic of 8255. The 8-bit, 3-state bidirectional buffer is used to interface the 8255 internal data bus with the external system data bus.
  • This buffer receives or transmits data upon the execution of input or output instructions by the microprocessor. The control words or status information is also transferred through the buffer.

The signal description of 8255 is briefly presented as follows:

  • PA7-PA0: These are eight port A lines that acts as either latched output or buffered input lines depending upon the control word loaded into the control word register.
  • PC7-PC4: Upper nibble of port C lines. They may act as either output latches or input buffers lines.
  • This port also can be used for generation of handshake lines in mode1 or mode2.
  • PC3-PC0: These are the lower port C lines; other details are the same as PC7-PC4 lines
  • PB0-PB7: These are the eight port B lines which are used as latched output lines or buffered input lines in the same way as port A.
  • RD: This is the input line driven by the microprocessor and should be low to indicate read operation to 8255.
  • WR: This is an input line driven by the microprocessor. A low on this line indicates write operation.
  • CS: This is a chip select line. If this line goes low, it enables the 8255 to respond to RD and WR signals, otherwise RD and WR signal are neglected.
  • D0-D7: These are the data bus lines those carry data or control word to/from the microprocessor.
  • RESET: Logic high on this line clears the control word register of 8255. All ports are set as input ports by default after reset.
  • A1-A0: These are the address input lines and are driven by the microprocessor.
  • These lines A1-A0 with RD, WR and CS from the following operations for 8255.

These address lines are used for addressing any one of the four registers, i.e. three ports and a control word register as given in table below.

In case of 8086 systems, if the 8255 is to be interfaced with lower order data bus, the A0 and A1 pins of 8255 are connected with A1 and A2 respectively.

   PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE)

PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE)

PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE)

Modes of Operation of 8255

  • These are two basic modes of operation of 8255. I/O mode and Bit Set-Reset mode (BSR).
  • In I/O mode, the 8255 ports work as programmable I/O ports, while in BSR mode only port C (PC0-PC7) can be used to set or reset its individual port bits.
  • Under the I/O mode of operation, further there are three modes of operation of 8255, so as to support different types of applications, mode 0, mode 1 and mode 2.
  • BSR 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 the CWR as given in table.

 

 

The document PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE) is a part of Computer Science Engineering (CSE) category.
All you need of Computer Science Engineering (CSE) at this link: Computer Science Engineering (CSE)

Top Courses for Computer Science Engineering (CSE)

FAQs on PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE)

1. What is the function of PIO 8255 in microprocessors and microcontrollers?
Ans. The PIO 8255 is a programmable input/output (I/O) device that provides parallel I/O capabilities to microprocessors and microcontrollers. It can be programmed to function as either input or output ports, allowing data to be sent or received by external devices.
2. How does the PIO 8255 work in microprocessors and microcontrollers?
Ans. The PIO 8255 consists of three 8-bit ports: Port A, Port B, and Port C. Each port can be individually programmed as input or output. Data can be transferred to or from these ports by reading from or writing to their corresponding memory addresses. The mode control register of the PIO 8255 is used to configure the ports' operation modes.
3. What are the advantages of using PIO 8255 in microprocessors and microcontrollers?
Ans. The PIO 8255 offers several advantages in microprocessor and microcontroller systems. It provides flexible I/O capabilities, allowing communication with external devices such as sensors, actuators, and displays. It simplifies the interface between the microprocessor and the external world by handling data transfer and control signals. Additionally, its programmable nature allows customization of I/O operations based on specific application requirements.
4. Can the PIO 8255 be used with different microprocessors and microcontrollers?
Ans. Yes, the PIO 8255 can be used with various microprocessors and microcontrollers as long as they support the required data and control signals. Its functionality is independent of the specific microprocessor or microcontroller used, making it compatible with different systems. However, programming techniques and memory addresses may vary across different platforms.
5. What are some common applications of the PIO 8255 in microprocessors and microcontrollers?
Ans. The PIO 8255 finds applications in various fields, including industrial automation, robotics, data acquisition systems, and embedded systems. It can be used to interface with sensors for measuring temperature, pressure, or position. It can also control actuators such as motors, valves, or relays. In addition, it is used for data transfer between microprocessors and external memory or peripheral devices.
Download as PDF
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

mock tests for examination

,

study material

,

Semester Notes

,

Previous Year Questions with Solutions

,

Extra Questions

,

Summary

,

practice quizzes

,

Free

,

PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE)

,

past year papers

,

Viva Questions

,

ppt

,

PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE)

,

Exam

,

shortcuts and tricks

,

PIO 8255 - Microprocessors and Microcontrollers - Computer Science Engineering (CSE)

,

Important questions

,

Sample Paper

,

pdf

,

MCQs

,

Objective type Questions

,

video lectures

;