Вы находитесь на странице: 1из 4

Programmable I/O Interface The 8255 PPI

The 82C55 Programmable


Peripheral Interface (PPI)

Microprocessor System Design, Chapter 11-2 Slide 1 Microprocessor System Design, Chapter 11-2 Slide 2

The 8255 PPI – Internal Block Diagram The 8255 PPI Reset

Microprocessor System Design, Chapter 11-2 Slide 3 Microprocessor System Design, Chapter 11-2 Slide 4

Interfacing the 8255 PPI Programming the 8255 PPI

Microprocessor System Design, Chapter 11-2 Slide 5 Microprocessor System Design, Chapter 11-2 Slide 6

1
Programming the 8255 PPI Port Groups of the 8255 PPI

Microprocessor System Design, Chapter 11-2 Slide 7 Microprocessor System Design, Chapter 11-2 Slide 8

Operation Modes of the 8255 PPI Modes 0 – Simple I/O Mode

Mode-0 operation causes the 82C55


to function as either a buffered input
device or as a latched output device

Microprocessor System Design, Chapter 11-2 Slide 9 Microprocessor System Design, Chapter 11-2 Slide 10

Modes 0 – Example: 7-Segment LED Display Modes 0 – Example: 7-Segment LED Display

Microprocessor System Design, Chapter 11-2 Slide 11 Microprocessor System Design, Chapter 11-2 Slide 12

2
Modes 0 – Example: Stepper Motor Modes 1 – Stropped Input

Microprocessor System Design, Chapter 11-2 Slide 13 Microprocessor System Design, Chapter 11-2 Slide 14

Modes 1 – Stropped Input Modes 1 – Stropped Input


Example:
Read data from a keyboard
Each time a key is pressed.

In this example:
-The handshaking pin IBF is not used
- Since programmed I/O is utilized, there is no interrupt and the
INTR is not used.

Microprocessor System Design, Chapter 11-2 Slide 15 Microprocessor System Design, Chapter 11-2 Slide 16

Modes 1 – Input Configuration Modes 1 – Stropped Output

When you read Port C in mode 1 or 2 operations, you are


actually reading the status register instead of the physical
Port C.

Microprocessor System Design, Chapter 11-2 Slide 17 Microprocessor System Design, Chapter 11-2 Slide 18

3
Modes 1 – Stropped Output Example: Printer Interface

In this example:
Port B is connected to a parallel
printer with 8 data inputs for
receiving ASCII-coded data
PC2 and PC4 pins are used as
handshake pins
The PC4 pin (DS) instead of the
OBF pin is used to notify the printer
to collect the data
Since programmed I/O is utilized,
there is no interrupt and the INTR pin
is not used
Microprocessor System Design, Chapter 11-2 Slide 19 Microprocessor System Design, Chapter 11-2 Slide 20

Mode-1: Output Configuration Mode-2: Bidirectional Operation

When you read Port C in mode 1 or 2 operations,


you are actually reading the status register instead
of the physical Port C.

Microprocessor System Design, Chapter 11-2 Slide 21 Microprocessor System Design, Chapter 11-2 Slide 22

Mode- Status Word Format 8255 Summary

Microprocessor System Design, Chapter 11-2 Slide 23 Microprocessor System Design, Chapter 11-2 Slide 24

Вам также может понравиться