Docsity

Assembly language lectures 2, Lecture notes of Assembly Language Programming

Partial preview of the text

Download Assembly language lectures 2 and more Lecture notes Assembly Language Programming in PDF only on Docsity!

Computer Organization and

Assembly Language

Lecture 21

Outline

  • (^) I/O Problems
  • (^) I/O Module
  • (^) Generic Model of I/O Module
  • (^) Types of External Devices
  • (^) I/O Module Functions
  • (^) I/O Module Steps

Typical I/O Devices and Their Data

Rates

I/O Problems and I/O Module

  • (^) Wide variety of peripherals
    • (^) Delivering data
      • (^) Of different amount
      • (^) At different speeds
      • (^) In different formats
  • (^) All slower than CPU
  • (^) Need I/O Modules to interact with CPU and Memory - (^) Interface to CPU and Memory - (^) Interface to one or more peripherals

Types of External Devices

  • (^) Human-readable
    • (^) Screen, Printer, Keyboard
  • (^) Machine-readable
    • (^) Monitoring and control
    • (^) Magnetic disks and Tape drives
  • (^) Communication
    • (^) Modem
    • (^) Network Interface Card (NIC)

External Devices Block Diagram

Control Logic Transducer Buffer Control Signals from I/O Module Status Signals to I/ O Module Data bits to and from I/ O Module Data (Device- unique) to and from environment

I/O Steps

  1. Check
    • (^) CPU checks the status of peripheral by I/O module
  2. Return
    • (^) I/O module returns status of external device
  3. Request
    • (^) If ready, CPU requests the data transfer
  4. Obtain
    • (^) I/O module obtains a unit of data from external device
  5. Deliver/Transfer
    • (^) Data are transferred from I/O module to the processor

Block Diagram of an I/O Module