Input/Output and Communication

Slides:



Advertisements
Similar presentations
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Advertisements

INPUT-OUTPUT ORGANIZATION
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.
Hierarchy of I/O Control Devices
Input/Output and Communication
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
Unit-5 CO-MPI autonomous
INPUT-OUTPUT ORGANIZATION
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
CHAPTER 5 I/O PRINCIPLE Understand the principles of System Bus
Input/Output mechanisms
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Accessing I/O Devices Processor Memory BUS I/O Device 1 I/O Device 2.
Modes of transfer in computer
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 2 Computer-System Structures Slide 1 Chapter 2 Computer-System Structures.
Chapter 5 Input/Output 5.1 Principles of I/O hardware
AS Computing Data transmission. Basic data transmission Baud The rate that the voltage changes is called the Baud. If the voltage changes 10 times every.
1 Input-Output Organization Computer Organization Prof. H. Yoon Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes of Transfer.
Amdahl’s Law & I/O Control Method 1. Amdahl’s Law The overall performance of a system is a result of the interaction of all of its components. System.
Chapter Nine: Data Transmission. Introduction Binary data is transmitted by either by serial or parallel methods Data transmission over long distances.
Computer Organization and Design
DIRECT MEMORY ACCESS and Computer Buses
Serial Communications
Department of Computer Science and Engineering
Chapter 6 Input/Output Organization
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Chapter 10 Input/Output Organization
Presented By: Navneet Kaur Randhawa Lect. I.T. Deptt. GPC,Amritsar
Operating Systems (CS 340 D)
I/O Memory Interface Topics:
INPUT-OUTPUT ORGANIZATION
Serial I/O and Data Communication.
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Chapter 3 Top Level View of Computer Function and Interconnection
E3165 DIGITAL ELECTRONIC SYSTEM
CS703 - Advanced Operating Systems
Overview Peripheral Devices Input-Output Interface
INPUT-OUTPUT ORGANIZATION
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
INPUT-OUTPUT ORGANIZATION
Computer Organization and Design
Edited by : Noor Alhareqi
Edited by : Noor Alhareqi
Serial Communication Interface: Using 8251
11. Input-Output Organization
Communications channels تقديم المهندس سنان محمد حسن
Module 2: Computer-System Structures
INPUT-OUTPUT ORGANIZATION
ECEG-3202 Computer Architecture and Organization
Operating Systems Chapter 5: Input/Output Management
INPUT-OUTPUT ORGANIZATION
Chapter 5: Computer Systems Organization
Chapter Nine: Data Transmission
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
INPUT-OUTPUT ORGANIZATION
Module 2: Computer-System Structures
Jazan University, Jazan KSA
Chapter 13: I/O Systems.
Serial Communications
William Stallings Computer Organization and Architecture
Introduction Communication Modes Transmission Modes
Presentation transcript:

Input/Output and Communication Chapter 10 Part II CS 147 Andy Lai

Introduction I/O Processors Serial Communication Input-Output Processor Review of DMA Block transfer commands ALU command Control commands Serial Communication Explanation of the Basic Asynchronous serial communication Synchronous transmission Introduction of Universal Asynchronous Receiver Transmitter (UARTs)

Review of Direct Memory Access DMA improves system performance by speeding up data transfer between memory and I/O System Bypass CPU, allow CPU to be use in another process. DMA controllers must manipulates each data transfer from I/O devices, and can only read.

Direct Memory Access CPU Memory I/O Direct Memory Devices Address Bus CPU Memory Data Bus Control Bus I/O Devices Direct Memory Access Controller (DMA)

I/O Processors (Introduction) I/O Processors also known as: I/O Controllers Channel Controllers Peripheral Processing units (PPU) Data Channel

CPU Connection to I/O Devices

Work Load I/O Processors CPU I/O Processors handles all of the interactions between the I/O devices and the CPU. I/O Processors communicates with input and output devices through separate address, data, and control lines. This provides an independent pathway for the transfer of information between external devices and internal memory. Relieves the CPU of ‘I/O device chores’

CPU with I/O Processor

TERMS Input-Output Processor (IOP) Classified as a processor with direct memory access capability. IOP fetches and execute its own instructions Independent of the CPU CPU initiating the IOP program CPU is the master processor. IOP is considered the slave processors There can be more than one or more IOP’s

Three Forms of Commands Block transfer commands Moves blocks data to IOP. Usually these instructions swap pages in and out of physical memory, and to load programs from disk memory. Arithmetic, logic, and Branch operations IOP uses ALU instructions to manipulate the data so the process time for CPU is shorten. Control Command Controls hardware. Ex: rewind the tape on a tape drive or ejecting a CD from a drive.

The Process of the IOP CPU Instructions Sends Command to test IOP path Status approved and sends I/O commands CPU continues with other process Request IOP status Check status for correct transfer. IOP Operations Transfer status to Memory location Access memory for IOP Commands Conduct I/O transfer I/O transfer completed, send status to CPU Transfer status to memory location

Serial Communication Two forms of communication Parallel communication Transfers more than one bit of data at a given time N-bits transmitted at the same time through n- wires Faster but requires many wires and is used in short distances EX: Input/output devices, DMA controllers, and I/O processors Serial Communication Serial communication refers to devices that cannot handle more than one bit of data at any given time by design. Requires one wire and is slower. Usually CPU use Parallel communication, if the device is serial, then the data is converted to use Parallel communication EX: Modems

Two types of Serial Communication Asynchronous Serial Communication Interacts with devices outside of the computer Ex: modem connecting to another computer Transmit individual bytes instead of large blocks Do not share a common clock. Synchronous Serial transmission Transmits block of data in frames. Frames are had head in front of the data and a tail at the end of the data. The head and tail contain information that allows the two computers to synchronize their clocks

Serial Communication Basics There are parameters that must be agreed upon between the two computer system. One of them is the speed. Also known as Handshaking Determine speed and transfer protocol Speed is measured by the number of bits per second (bps) Also Know as Baud Rate Device must agree on number of data bits per data transmission. Parity Bits Error checking Stop Bits End of transmission

Illustration of Handshaking I am 14,400 bps Ok I am 28,800 bps I will speak 14,000 for you Data

Asynchronous Serial Communication Each byte is transmitted separate entity. The Device must be able to recognize: When transmission is occurring When to read a bit of data When the transmission ends When the transmission is idle (no data being transmitted)

Asynchronous Serial Communication Device 1 transmission will output a ‘start bit’ A line of transmission is used to describe the communication. Device 2 receives and confirms the bit. Device 2 begins to read a data bit off the line Then the process repeats however many data bits are on the line. The least significant bit is sent first and most important significant bit is sent last. Then Device 2 receives and confirms ‘stop bit’

Line of transmission Start bit Idle Data 1 Bit Stop Bit Start bit

Asynchronous Serial Communication Transmitting numeric data is straight forward Transmitting Characters are encoded with a binary value. Most well know is American Standard Code for Information Interchange (ASCII) Another is UNICODE.

Synchronous Transmission Instead of transmitting a start and stop bit for each data value, Synchronous transmission strings together several data values into a data block called a ‘frame.’ There are several layers in the frame, similar to a data packet. There is a leading information, address of where the data is going, control ensure correct destination, the data it self, Cyclic redundancy check (CRC) to check there is no error and the trailing information

Synchronous Transmission Frame High Level Data Link Control (HDLC) 8 8 8 n 16 8 Leading Flag Address Control Data CRC Trailing Flag

Universal Asynchronous Receiver/Transmitters (UARTs) Asynchronous serial communication is a popular function. Manufacturers have designed special chip to deal with Asynchronous serial communication. This relieves the CPU of this task It is used to convert serial communication to parallel communication when receiving and convert parallel communication to serial when sending CPU sends command to the UARTs control register to determine the number of data bits, parity, and the number of stop bits to be used in transmission

UARTs CPU Memory UART Modem Address Bus Data Bus Control Bus External device

Conclusion Brief Review of Direct Memory Access Covered I/O Processor Covered Input-Output Processor Different commands for the I/O Processor The Process Covered Serial Communication Asynchronous Serial Communication Synchronous Transmission Universal Asynchronous Receiver/Transmitters (UARTs) Each topic showed ways to take the work load off of the CPU

Computer Organization 147 Chapter 10.4,10.5,10.6 Andy Lai Summer 2001