2081 10

CSC167 ยท 2081 ยท 5 marks

List out the limitation of parallel communication. Explain the different operation modes of 8255A PPI.

List out the limitation of parallel communication. Explain the different operation modes of 8255A PPI. [5]

MicroprocessorChapter 6: Input/ Output InterfacesProgrammable Peripheral Interface 8255A

Quick answer

Parallel communication transmits multiple bits simultaneously over multiple lines, but it has the following limitations: Cost; Distance Limitation; Crosstalk.

Limitations of Parallel Communication and Operation Modes of 8255A PPI


Part 1: Limitations of Parallel Communication

Parallel communication transmits multiple bits simultaneously over multiple lines, but it has the following limitations:

  1. Cost: Requires more wires/lines (one for each bit), making it more expensive than serial communication.
  2. Distance Limitation: Suitable only for short distances (typically within a few meters) because signal degradation and crosstalk increase with distance.
  3. Crosstalk: Interference between adjacent parallel lines causes data errors, especially at high speeds over longer distances.
  4. Synchronization Problem: All bits must arrive at the same time; skew (timing differences between lines) can cause data corruption.
  5. Cable Bulk: Multiple wires make the cable thick, heavy, and difficult to manage.
  6. Higher Power Consumption: More lines mean more drivers and receivers, consuming more power.
  7. Not Suitable for Long Distance: Cannot be used effectively for long-distance communication unlike serial communication.

Part 2: Operation Modes of 8255A PPI

The 8255A Programmable Peripheral Interface (PPI) has three ports: Port A, Port B, and Port C. It operates in the following modes, determined by the Control Word Register (bit D7 = 1 for I/O mode):


Mode 0: Basic Input/Output Mode

  • This is the simplest mode of operation.
  • Port A, Port B, and both halves of Port C (upper and lower) can be independently configured as input or output.
  • No handshaking signals are required.
  • Data is simply written to or read from the ports.
  • Suitable for simple I/O operations like reading switches or driving LEDs.
  • Port C can be split: upper nibble (PC7-PC4) and lower nibble (PC3-PC0) configured separately.

Example use: Connecting keyboards, displays, or simple peripheral devices.


Mode 1: Strobed Input/Output Mode (Handshaking Mode)

  • Used for Port A and Port B only.
  • Port C lines are used as handshaking/control signals for Port A and Port B.
  • Data transfer occurs with synchronization signals (handshaking).
  • Two sub-modes:
    • Mode 1 Input: Uses signals like STB (Strobe), IBF (Input Buffer Full), and INTR (Interrupt Request).
    • Mode 1 Output: Uses signals like OBF (Output Buffer Full), ACK (Acknowledge), and INTR.
  • Suitable when the peripheral needs to signal readiness before data transfer.

Example use: Interfacing with printers or other devices requiring handshaking.


Mode 2: Bidirectional Bus Mode

  • Available for Port A only.
  • Port A acts as a bidirectional 8-bit data bus (both input and output on the same port).
  • Port C lines (PC7-PC3) are used as control/handshaking signals for Port A.
  • Port B can still operate in Mode 0 or Mode 1 independently.
  • Suitable for communication between two microprocessors or complex peripherals.

Example use: Data transfer between two CPUs sharing a common bus.


Bit Set/Reset (BSR) Mode

  • This is a special mode for Port C only.
  • When bit D7 = 0 in the control word, Port C operates in BSR mode.
  • Individual bits of Port C can be set (1) or reset (0) using a specific control word.
  • This does not affect Port A or Port B operations.
  • Useful for generating control signals or flags on individual pins.

Summary Table

ModePortFeature
Mode 0A, B, CSimple I/O, no handshaking
Mode 1A and BStrobed I/O with handshaking
Mode 2A onlyBidirectional data bus
BSRC onlyIndividual bit set/reset

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