2079 9

CSC167 ยท 2079 ยท 5 marks

What is the purpose of Programmable Peripheral Interface 8255A? Explain about its different ports.

What is the purpose of Programmable Peripheral Interface 8255A? Explain about its different ports. [5]

MicroprocessorChapter 6: Input/ Output InterfacesProgrammable Peripheral Interface 8255A

Quick answer

The 8255A is a widely used programmable parallel I/O device designed to interface a microprocessor with peripheral devices.

Programmable Peripheral Interface 8255A

Purpose of 8255A

The 8255A is a widely used programmable parallel I/O device designed to interface a microprocessor with peripheral devices. Its main purposes are:

  • It can be programmed to transfer data under various conditions, ranging from simple I/O to interrupt-driven I/O.
  • It is flexible, versatile, and economical, especially when multiple I/O ports are required.
  • It is a general-purpose I/O device that can be used with almost any microprocessor (including the 8085).
  • It reduces the complexity of interfacing external devices by providing programmable control through a control register.

Ports of 8255A

The 8255A has 24 I/O pins organized into three ports: Port A, Port B, and Port C.

1. Port A (8-bit)

  • A full 8-bit parallel port.
  • Can be configured as input or output.
  • Supports all three operating modes: Mode 0, Mode 1, and Mode 2.
  • In Mode 2 (bidirectional), only Port A can be used for bidirectional data transfer.

2. Port B (8-bit)

  • A full 8-bit parallel port.
  • Can be configured as input or output.
  • Supports Mode 0 and Mode 1 only (not Mode 2).

3. Port C (8-bit)

  • An 8-bit port that can be used in two ways:
    • As a single 8-bit port for simple I/O.
    • Split into two 4-bit ports:
      • C Upper (C_U) -- upper nibble (bits 7-4)
      • C Lower (C_L) -- lower nibble (bits 3-0)
  • Port C is often used to provide control/status signals (handshake signals) for Port A and Port B in Mode 1 and Mode 2 operations.
  • Individual bits of Port C can be set or reset using the Bit Set/Reset (BSR) feature.

Data Bus Buffer

The 8255A also contains a three-state bidirectional 8-bit buffer that interfaces it to the system data bus. Data is transmitted or received through this buffer upon execution of input/output instructions by the CPU. Control words and status information are also transferred through this buffer.


Summary Table

PortSizeModes SupportedSpecial Feature
Port A8-bitMode 0, 1, 2Bidirectional in Mode 2
Port B8-bitMode 0, 1Strobed I/O in Mode 1
Port C8-bitMode 0Split into C_U and C_L; Bit Set/Reset

The functions of all ports are defined by writing a control word into the control register of the 8255A, making it highly programmable and adaptable to various interfacing requirements.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.