Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization.

Slides:



Advertisements
Similar presentations
I/O Organization popo.
Advertisements

INPUT-OUTPUT ORGANIZATION
11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
Chapter 10 Input/Output Organization. Connections between a CPU and an I/O device Types of bus (Figure 10.1) –Address bus –Data bus –Control bus.
I/O Unit.
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Lecture Objectives: 1)Explain the limitations of flash memory. 2)Define wear leveling. 3)Define the term IO Transaction 4)Define the terms synchronous.
Input-output and Communication Prof. Sin-Min Lee Department of Computer Science.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
1 Interrupts INPUT/OUTPUT ORGANIZATION: Interrupts CS 147 JOKO SUTOMO.
Input-Output Problems L1 Prof. Sin-Min Lee Department of Mathematics and Computer Science.
Chapter 7 Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats.
Input/Output and Communication
INPUT/OUTPUT ORGANIZATION INTERRUPTS CS147 Summer 2001 Professor: Sin-Min Lee Presented by: Jing Chen.
1 The 9-Pin Connector Pin abbreviations (numbers in parentheses are the 25D pin numbers): 1. CD (8) 2. RD (Rx) (3) 3. TD (Tx) (2) 4. DTR (20) 5. SG (Ground)
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
Unit-5 CO-MPI autonomous
2. Methods for I/O Operations
INPUT-OUTPUT ORGANIZATION
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
Transmission Modes Serial Transmission  One bit is transmitted on a circuit at a time  Usually there is one transmit circuit and one receive circuit.
Interrupts. 2 Definition: An electrical signal sent to the CPU (at any time) to alert it to the occurrence of some event that needs its attention Purpose:
CHAPTER 5 I/O PRINCIPLE Understand the principles of System Bus
Serial Port I/O Serial port sends and receives data one bit at a time. Serial communication devices are divided into: Data Communications Equipment (DCE),
UART and UART Driver B. Ramamurthy.
Modems Chapter 17. Basic Knowledge  Modems are little devices to use the telephone to talk to other computers.  Modem is an abbreviation for Modulator/
CHAPTER 9: Input / Output
MICROPROCESSOR INPUT/OUTPUT
Interrupts and DMA CSCI The Role of the Operating System in Performing I/O Two main jobs of a computer are: –Processing –Performing I/O manage and.
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
“Describe the overview of hardware interfacing and the serial communication interface. Describe the PIC18 connections to RS232. Explain the serial port.
Microprocessors 2 lesson Subjects lesson 7 Planning Interrupts Serial communication /USART Questions.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
1 Asynchronous voice band modem for IP data protocols overview features.
1 Input-Output Organization Computer Organization Prof. H. Yoon Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes of Transfer.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)
بسم الله الرحمن الرحيم MEMORY AND I/O.
Logic and Computer Design Fundamentals, Fifth Edition Mano | Kime | Martin Copyright ©2016, 2008, 2004 by Pearson Education, Inc. All rights reserved.
8251 USART.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
UART Serial Port Programming
CS-401 Computer Architecture & Assembly Language Programming
Input/Output and Communication
Operating Systems (CS 340 D)
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
UART and UART Driver B. Ramamurthy.
Computer Architecture
Computer Organization and Design
UART and UART Driver B. Ramamurthy.
UART Serial Port Programming
UART PC16550 (Universal Asynchronous Receiver/Transmitter) By Derwyn Hollobaugh
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Chapter 13: I/O Systems.
AVR UART The UART, or Universal Asynchronous Receiver Transmitter, provides hardware support for a serial port on AVR processors Signaling is compatible.
Presentation transcript:

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter Outline Asynchronous data transfersAsynchronous data transfers Programmed I/OProgrammed I/O InterruptsInterrupts Direct Memory AccessDirect Memory Access I/O ProcessorsI/O Processors Serial CommunicationSerial Communication Serial Communication StandardsSerial Communication Standards

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Asynchronous Data Transfers

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Source-initiated Data Transfer

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Destination-initiated Data Transfer

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Source-initiated Data Transfer with Handshaking

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Destination-initiated Data Transfer with Handshaking

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Programmed I/O

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Example

Example

Example

Example

Example

New Instructions

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 New Control Signals IO differentiates I/O and memory accessesIO differentiates I/O and memory accesses –IO = 1 for I/O access –IO = 0 for memory access

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 New States and RTL Code

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications Modify register sectionModify register section

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications Modify register sectionModify register section Modify ALUModify ALU

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications Modify register sectionModify register section Modify ALUModify ALU Modify control unit (hard-wired)Modify control unit (hard-wired)

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications Modify register sectionModify register section Modify ALUModify ALU Modify control unit (hard-wired)Modify control unit (hard-wired) Register and ALU sections unchangedRegister and ALU sections unchanged

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications Modify register sectionModify register section Modify ALUModify ALU Modify control unit (hard-wired)Modify control unit (hard-wired) Register and ALU sections unchangedRegister and ALU sections unchanged One new micro-operation: DR  Input PortOne new micro-operation: DR  Input Port

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Control Unit Changes

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Control Unit Changes - INC and CLR signals

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Control Unit Changes - INC and CLR signals

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Control Unit Changes - Memory Read Signal Memory Read = READ ^ IO’Memory Read = READ ^ IO’

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Interrupts PollingPolling

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Interrupts IRQ - Interrupt RequestIRQ - Interrupt Request IACK - Interrupt AcknowledgeIACK - Interrupt Acknowledge

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Types of Interrupts ExternalExternal

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Types of Interrupts ExternalExternal InternalInternal

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Types of Interrupts ExternalExternal InternalInternal SoftwareSoftware

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Processing Interrupts Do nothing (until the current instruction has been executed)Do nothing (until the current instruction has been executed)

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Processing Interrupts Do nothing (until the current instruction has been executed)Do nothing (until the current instruction has been executed) Get handler address (vectored)Get handler address (vectored)

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Processing Interrupts Do nothing (until the current instruction has been executed)Do nothing (until the current instruction has been executed) Get handler address (vectored)Get handler address (vectored) Invoke handler routineInvoke handler routine

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Vectored Interrupt Hardware

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Non-vectored Interrupt Hardware

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Multiple Non-vectored Interrupts

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Daisy Chaining

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 IACK in and IACK out

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Parallel Priority Interrupts

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Interrupt States

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Direct Memory Access

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 DMA Controller

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 DMA Transfer Modes Block/Burst ModeBlock/Burst Mode

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 DMA Transfer Modes Block/Burst ModeBlock/Burst Mode Cycle Stealing ModeCycle Stealing Mode

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 DMA Transfer Modes Block/Burst ModeBlock/Burst Mode Cycle Stealing ModeCycle Stealing Mode Transparent ModeTransparent Mode

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications - Micro- operations

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications - Micro- operations

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 CPU Modifications

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 I/O Processors

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 I/O Processors - operations Block transfer commandsBlock transfer commands

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 I/O Processors - operations Block transfer commandsBlock transfer commands ALU operationsALU operations

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 I/O Processors - operations Block transfer commandsBlock transfer commands ALU operationsALU operations Control commandsControl commands

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Asynchronous Serial Communication bps - Bits Per Second (baud rate)bps - Bits Per Second (baud rate)

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Asynchronous Serial Communication bps - Bits Per Second (baud rate)bps - Bits Per Second (baud rate) start bitstart bit

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Asynchronous Serial Communication bps - Bits Per Second (baud rate)bps - Bits Per Second (baud rate) start bitstart bit parity bitparity bit

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Asynchronous Serial Communication bps - Bits Per Second (baud rate)bps - Bits Per Second (baud rate) start bitstart bit parity bitparity bit stop bit(s)stop bit(s)

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Asynchronous Serial Communication bps - Bits Per Second (baud rate)bps - Bits Per Second (baud rate) start bitstart bit parity bitparity bit stop bit(s)stop bit(s) bit timebit time

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Asynchronous Serial Communication

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Synchronous Serial Communication - HDLC

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Universal Asynchronous Receiver/Transmitters

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 UART Internal Configuration

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Request To SendRequest To Send Clear To SendClear To Send Transmission DataTransmission Data Data Terminal ReadyData Terminal Ready Data Set ReadyData Set Ready Received DataReceived Data Data Carrier DetectData Carrier Detect Ring IndicatorRing Indicator GroundGround RS 232C Standard - Signals

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 RS 232C Standard - Connection Use RTS, CTS, DTR, and DSR to verify that both devices are activeUse RTS, CTS, DTR, and DSR to verify that both devices are active

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 RS 232C Standard - Connection Use RTS, CTS, DTR, and DSR to verify that both devices are activeUse RTS, CTS, DTR, and DSR to verify that both devices are active Use RI to indicate call statusUse RI to indicate call status

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 RS 232C Standard - Connection Use RTS, CTS, DTR, and DSR to verify that both devices are activeUse RTS, CTS, DTR, and DSR to verify that both devices are active Use RI to indicate call statusUse RI to indicate call status Use DCD to establish connectivityUse DCD to establish connectivity

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 RS 232C Standard - Connection Use RTS, CTS, DTR, and DSR to verify that both devices are activeUse RTS, CTS, DTR, and DSR to verify that both devices are active Use RI to indicate call statusUse RI to indicate call status Use DCD to establish connectivityUse DCD to establish connectivity Use TD and RD to transfer data, and RTS and CTS to coordinate transfersUse TD and RD to transfer data, and RTS and CTS to coordinate transfers

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 RS 422 Standard - Signals

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Universal Serial Bus Standard Connects one port to several devicesConnects one port to several devices

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Universal Serial Bus Standard Connects one port to several devicesConnects one port to several devices Transfers data in packetsTransfers data in packets –Token packets –Data packets –Handshake packets –Special Packets

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 USB Packet Formats

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Summary Asynchronous data transfersAsynchronous data transfers Programmed I/OProgrammed I/O InterruptsInterrupts Direct Memory AccessDirect Memory Access I/O ProcessorsI/O Processors Serial CommunicationSerial Communication Serial Communication StandardsSerial Communication Standards