Lecture 2 20242025
Lecture 2 20242025
Lecture 2
Basic I/O Interface
Figure 11–2 I/O map of a personal computer illustrating many of the fixed I/O areas.
The Intel Microprocessors: 8086/8088, 80186/80188, 80286, 80386, 80486 Pentium,
Pentium Pro Processor, Pentium II, Pentium, 4, and Core2 with 64-bit Extensions Copyright ©2009 by Pearson Education, Inc.
Architecture, Programming, and Interfacing, Eighth Edition Upper Saddle River, New Jersey 07458 • All rights reserved.
Barry B. Brey
Basic Input and Output Interfaces
• The basic input device is a set of three-state
buffers.
• The basic output device is a set of data
latches.
• The term IN refers to moving data from the
I/O device into the microprocessor and
• The term OUT refers to moving data out of
the microprocessor to the I/O device.
STB
IBF
• Input buffer full is an output indicating that
the input latch contains information.
The Intel Microprocessors: 8086/8088, 80186/80188, 80286, 80386, 80486 Pentium,
Pentium Pro Processor, Pentium II, Pentium, 4, and Core2 with 64-bit Extensions Copyright ©2009 by Pearson Education, Inc.
Architecture, Programming, and Interfacing, Eighth Edition Upper Saddle River, New Jersey 07458 • All rights reserved.
Barry B. Brey
INTR
• Interrupt request is an output that requests
an interrupt. The INTR pin becomes a logic 1
when STB returns to a logic 1. Cleared when
data are input from the port by the processor.
INTE
• Interrupt enable signal is neither input nor
output; it is an internal bit programmed via
port PC4 (port A) or PC2 (port B) bit position.
OBF
• Output buffer full goes low whenever data
are output (OUT) to the port A or B latch. The
signal is set to logic 1 when the ACK pulse
returns from the external device.
ACK
The acknowledge signal causes the OBF
pin to return to logic 1. The ACK signal is a
response from an external device, indicating
that it has received data from the 82C55 port
The Intel Microprocessors: 8086/8088, 80186/80188, 80286, 80386, 80486 Pentium,
Pentium Pro Processor, Pentium II, Pentium, 4, and Core2 with 64-bit Extensions Copyright ©2009 by Pearson Education, Inc.
Architecture, Programming, and Interfacing, Eighth Edition Upper Saddle River, New Jersey 07458 • All rights reserved.
Barry B. Brey
INTR
• Interrupt request often interrupts the
processor when the external device receives
the data via the ACK signal. Qualified by the
internal INTE (interrupt enable) bit.
INTE
• Interrupt enable is neither input nor output;
it is an internal bit programmed to enable or
disable the INTR pin. INTE A is programmed
using PC6 bit. INTE B is programmed using
the PC2 bit.
The Intel Microprocessors: 8086/8088, 80186/80188, 80286, 80386, 80486 Pentium,
Pentium Pro Processor, Pentium II, Pentium, 4, and Core2 with 64-bit Extensions Copyright ©2009 by Pearson Education, Inc.
Architecture, Programming, and Interfacing, Eighth Edition Upper Saddle River, New Jersey 07458 • All rights reserved.
Barry B. Brey
PC4, PC5
• Port C pins PC4 and PC5 are general-purpose
I/O pins. The bit set and reset command is
used to set or reset these two pins.
Strobed Output Example
The printer interface demonstrates how to
achieve strobed output synchronization between
the printer and the 82C55
INTR
• Interrupt request is an output used to
interrupt the microprocessor for input
and output conditions.
OBF
• Output buffer full is an output indicating
the output buffer contains data for the
bidirectional bus.
The Intel Microprocessors: 8086/8088, 80186/80188, 80286, 80386, 80486 Pentium,
Pentium Pro Processor, Pentium II, Pentium, 4, and Core2 with 64-bit Extensions Copyright ©2009 by Pearson Education, Inc.
Architecture, Programming, and Interfacing, Eighth Edition Upper Saddle River, New Jersey 07458 • All rights reserved.
Barry B. Brey
ACK
• Acknowledge is an input that enables the
three-state buffers so that data can appear
on port A. If ACK is logic 1, the output buffers
of port A are at their high-impedance state.
STB
• The strobe input loads the port A input latch
with external data from the bidirectional
port A bus.