Lecture 320242025
Lecture 320242025
Lecture 3
Basic I/O Interface (Part 2)
Lecture activities 10
Project 10
Midterms 20
Final 100
Total 150
Dr. Understanding
Adel Agamy Computers: Today and Tomorrow, 13th Edition
Course Contents
1. Chapter 2 [2]: Standard Interfaces
2. √Chapter 10 [1]: Memory Interface
3. Chapter 11 [1]: Basic I/O Interface
4. Chapter 12 & 13 [1]:Interrupts &DMA
5. Chapter 1 [3] : introduction to BCI
8254 PROGRAMMABLE INTERVAL TIMER
The six modes of operation for the 8254-2 programmable interval timer. The G input
stops the count when 0 in modes 2, 3, and 4.
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
Mode 0
• Allows 8254 to be used as an events counter.
• Output becomes logic 0 when the control
word is written and remains until N plus the
number of programmed counts.
• Note that gate (G) input must be logic 1 to
allow the counter to count.
• If G becomes logic 0 in the middle of the
count, the counter will stop until G again
becomes logic 1.
DSR
• Data set ready is an input to the 16550,
indicating that the modem or data set is
ready to operate.
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
MR
• Master reset initializes the 16550 and should
be connected to the system RESET signal.
OUT1, OUT2
• User-defined output pins that can provide
signals to a modem or any other device as
needed in a system.
RCLCK
• Receiver clock is the clock input to the
receiver section of the UART.
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
RD, RD
• Read inputs (either may be used) cause data
to be read from the register specified by the
address inputs to the UART.
RI
• Ring indicator input is placed at logic 0 by
the modem to indicate the phone is ringing.
RTS
• Request-to-send is a signal to the modem
indicating that the UART wishes to send data.
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
SIN, SOUT
• These are the serial data pins. SIN accepts
serial data and SOUT transmits serial data.
RXRDY
• Receiver ready is a signal used to transfer
received data via DMA techniques.
TXRDY
• Transmitter ready is a signal used to
transfer transmitter data via DMA.
XIN, XOUT
• These are the main clock connections.
• A crystal is connected across these pins to
form a crystal oscillator, or XIN is connected
to an external timing source.