OUT
One type of instruction transfers information to an I/O device.
IN
One type of instruction reads from an I/O device.
INS and OUTS
found except the 8086/8088, instructions are also provided to transfer strings of data between memory and I/O.
IN and OUT
Instructions that transfer data between an I/O device and the microprocessor’s accumulator (AL, AX, or EAX).
DX
The I/O address is stored in register __ as a 16 bit address or in the byte (p8) immediately following the opcode as an 8 bit address.
fixed address
Intel calls the 8 bit form (p8) a ___because it is stored with the instruction, usually in a ROM.
variable address
The 16 bit address is called a ____ because it is stored in a DX, and then used to address the I/O device.
8 bits
I/O ports are ___ in width.
Two
a 16 bit port is actually ___consecutive 8 bit ports being addressed.
Four
a 32 bit I/O port is actually __ 8 bit ports.
port number
When data are transferred using IN or OUT, the I/O address ___ appears on the address bus.
External I/O interface
decodes the port number in the same manner as a memory address.
p8
8 bit fixed port number appears on address bus connections Asub7 to Asub0 with bits Asub15 to Asub8 equal to 00000000sub2.
Asub15
connections above __ are undefined for I/O instruction.
DX
The 16 bit variable port number appears on address connections A 15 A 0.
256
The first __ I/O port addresses (00H FFH) are accessed by both fixed and variable I/O instructions.
variable I/O address
any I/O address from 0100H to FFFFH is only accessed by the ___.
Isolated and Memory Mapped I/O
Two different methods of interfacing I/O.
Isolated I/O
the IN, INS, OUT, and OUTS transfer data between the microprocessor’s accumulator or memory and the I/O device. Most common I/O transfer technique used in the Intel based system is isolated I/O.
Isolated
describes how I/O locations are isolated from memory in a separate I/O address space.
Memory mapped I/O
any instruction that references memory can accomplish the transfer.
Isolated I/O ports
are used to control peripheral devices.
8 bit port
address is used to access devices located on the system board, such as the timer and keyboard interface.
16 bit port
is used to access serial and parallel ports, video and disk drive Systems.
Memory mapped I/O
does not use the IN, INS, OUT, or OUTS instructions. It uses any instruction that transfers data between the microprocessor and memory.
ISA Bus
I/O space between ports 0000H and 03FFH is normally reserved for the system and __.
PCI Bus
ports at 0400H FFFFH are generally available for user applications, main board functions, and the PCI bus.
80287 coprocessor
uses 00F8H 00FFH, so Intel reserves I/O ports 00F0H 00FFH.
Buffers
The basic input device is a set of three state ___ and three state ___ are used to construct the 8 bit input port.
Latches
The basic output device is a set of data ___.
IN
The term __ refers to moving data from the I/O device into the microprocessor.
OUT
The term ___ refers to moving data out of the microprocessor to the I/O device.
LOGIC 0
The circuit of allows the processor to read the contents of the eight switches that connect to any 8 bit section of the data bus when the select signal becomes a ___.
74ALS244
is a three state buffer that controls the application of the switch data to the data bus.
Latches
hold the data because when the processor executes an OUT, data are only present on the data bus for less than 1.0 µ s.
Handshaking or polling
synchronizes the I/O device with the microprocessor or the process of interrogating the printer, or any asynchronous device like a printer.
STB
is a clock pulse used to send data to printer.
Input devices
are already TTL and compatible, and can be connected to the microprocessor and its interfacing components.
Pull up resistor
ensures when the switch is open, the output signal is a logic 1.
Output devices
are more diverse than input devices, but many are interfaced in a uniform manner.
Logic 0 – 0.0V to 0.4V.
Logic 1 – 2.4V to 5.0V.
Darlington Pair
the diode must be present to prevent the ___ from being destroyed by inductive kickback.
PLD
is a better decoder circuit because the number of integrated circuits has been reduced to one device.
heat sink
The Darlington pair must use a ___ because of the amount of current.
I/O PORT ADDRESS DECODING
Very similar to memory address decoding especially for memory mapped I/O devices.
personal computer system
In the ___, we always decode all 16 bits of the I/O port address, never uses or decodes an 8 bit address.
GAL22V10
(a low-cost device) for decoder
80386SX
Data transferred to an 8 bit I/O device exist in one of the I/O banks in a 16 bit processor such as ____.
8 and 16 Bit Wide I/O Ports
Data transferred to an 8 bit I/O device exist in one of the I/O banks in a 16 bit processor such as 80386SX.
32 Bit Wide I/O Ports
May eventually become common because of newer buses found in computer systems.
82C55 PPI
is a popular, low cost interface component found in many applications.
24
The PPI has __ pins for I/O, programmable in groups of 12 pins and groups that operate in three distinct modes of operation.
82C55
is used for interface to the keyboard and parallel printer port in many PCs.
Note
C0H (port A), C2H (port B), C4H (port C), and C6H (command register).
RESET
A ____ to 82C55 sets up all ports as simple input ports using mode 0 operation.
Mode 0 Operation
causes 82C55 to function as a buffered input device or as a latched output device.
LCDs
have replaced LED displays in many applications.
DMC 20481
is a 4 line by 20 characters per line display that accepts ASCII code as input data.
BUSY
procedure tests the LCD display and only returns when the display has completed a prior instruction.
WRITE
Once the BUSY procedure is available, data can be sent to the display by writing another procedure called ___.
CLS
The only other procedure needed for a basic display is the clear & home cursor procedure, called ___.
stepper motor
a digital motor because it is moved in discrete steps as it traverses through 360*.
full stepping
The motor is shown with the armature rotated to four discrete places, called ___.
Key Matrix
the switches are formed into a 4X4 matrix, but any matrix could be used, such as a 2X8.
Mode 1 Strobed Input
Causes port A and/or port B to function as latching input devices which allows external data to be stored to the port until the microprocessor is ready to retrieve it.
Strobe
The ___ input loads data to the port latch, which holds the information until it is input to the microprocessor via the IN instruction.
Input buffer full
is an output indicating that the input latch contains information.
Interrupt request
is an output that requests an interrupt.
PC7 , PC 6
The port C pins _ and _ are general purpose I/O pins that are available for any purpose.
Mode 1 Strobed Output
Strobed output operation is similar to mode 0 except control signals are included to provide handshaking.
Output buffer full
goes low whenever data are output (OUT) to the port A or B latch, is an output indicating the output buffer contains data.
Acknowledge signal
causes the OBF pin to return to logic 1 and is a response from an external device, indicating that it has received data from the 82C55 port.
Interrupt request
often interrupts the processor when the external device receives the data via the ACK signal.
Interrupt enable
is neither input nor output; it is an internal bit programmed to enable or disable the INTR pin.
PC4 , PC 5
Port C pins _ and _ are general purpose I/O pins.
Mode 2 Bidirectional Operation
Port A becomes bidirectional, allowing data transmit/receive over the same eight wires, useful when interfacing two computers.
Acknowledge
is an input that enables the three state buffers so that data can appear on port A.
strobe
input loads the port A input latch with external data from the bidirectional port A bus.
PC0, PC1, PC 2
These pins are general purpose I/O pins in mode 2 controlled by the bit set and reset command.\
Input buffer full
is an output used to signal that the input buffer contains data for the external bidirectional bus.
The Bidirectional Bus
is used by referencing port A with the IN and OUT instructions.
8254
consists of three independent 16 bit programmable counters ( timers ).
A0, A1
The address inputs select one of four internal registers within the 8254.
clock
input is the timing source for each of the internal counters.
Chip select
enables 8254 for programming and reading or writing a counter.
gate input
controls the operation of the counter in some modes of operation.
Ground
connects to the system ground bus.
Counter output
is where the waveform generated by the timer is available.
Read
causes data to be read from the 8254 and often connects to the IORC signal.
Power
connects to the +5.0 V power supply.
Write
causes data to be written to the 8254 and often connects to write strobe IOWC.
Mode 0
Allows 8254 to be used as an events counter.
Mode 1
Causes function as a retriggerable, monostable multivibrator (one shot).
Mode 2
Allows the counter to generate a series of continuous pulses one clock pulse wide.
Mode 3
Generates a continuous square wave at the OUT connection, provided the G pin is logic 1.
Mode 4
Allows a single pulse at the output.
Mode 5
A hardware triggered one shot that functions as mode 4.
Pulse Width Modulation
Each counter generates pulses at different positions to vary the duty cycle at the Q output of the flip flop and this output is also called.
PC16550D
is a programmable communications interface designed to connect to virtually any type of serial interface.