Input-Output Organization

Similar documents
I/O Organization John D. Carpinelli, All Rights Reserved 1

Chapter 7 : Input-Output Organization

INPUT-OUTPUT ORGANIZATION

Lecture-65 SERIAL DATA COMMMUNICATION The data bus of a microcomputer system is designed to transfer data to and from I/O device in parallel - all

ECE251: Thursday November 8

1. Define Peripherals. Explain I/O Bus and Interface Modules. Peripherals: Input-output device attached to the computer are also called peripherals.

Computer Architecture and Organization: L10: I/O Organization

Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey

Universal Asynchronous Receiver Transmitter Communication

More on IO: The Universal Serial Bus (USB)

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Communication Module No: CS/ES/11 Quadrant 1 e-text

EXPERIMENT 8: Introduction to Universal Serial Asynchronous Receive Transmit (USART)

INPUT-OUTPUT ORGANIZATION

Blog -

A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS

Sender Receiver Sender

4 Multiplexer. Y Fig Keyboard Scan Matrix

EXPERIMENT 7: Introduction to Universal Serial Asynchronous Receive Transmit (USART)

INPUT-OUTPUT ORGANIZATION

Chapter 9: Data Transmission

Chapter 8. Input Output Organization

Modes of Transfer. Interface. Data Register. Status Register. F= Flag Bit. Fig. (1) Data transfer from I/O to CPU

8051SERIAL PORT PROGRAMMING

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved.

PD215 Mechatronics. Week 3/4 Interfacing Hardware and Communication Systems

Concepts of Serial Communication

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMPUTER ARCHITECURE- III YEAR EEE-6 TH SEMESTER 16 MARKS QUESTION BANK UNIT-1

Course 10: Interfaces Agenda

COMPUTER NETWORKS UNIT I. 1. What are the three criteria necessary for an effective and efficient networks?

I/O Systems. Amir H. Payberah. Amirkabir University of Technology (Tehran Polytechnic)

Digital Design Laboratory Lecture 6 I/O

Configuration of Synchronous Protocols

Transmission SIGNALs

QUIZ Ch.6. The EAT for a two-level memory is given by:

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of

Informatics for industrial applications

Serial Interfaces Part 1. ECE 153B Sensor & Peripheral Interface Design Winter 2016

1.1. INTRODUCTION 1.2. NUMBER SYSTEMS

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT IV I/O INTERFACING PART A (2 Marks)

THT-500-A/R (C5) 1. System Configuration COMMUNICATION INSTRUCTION MANUAL. No. THT5CE

S-Series Sensor ASCII Protocol v8.1.0

Ch 4. Standard Single Purpose Processors: Peripherals

Universal Serial Bus Host Interface on an FPGA

Universität Dortmund. IO and Peripheral Interfaces

DATA COMMUNICATION. Part TWO Data Transmission

RS-232 DATA COMMUNICATIONS WITH THE TANDY COLOR COMPUTER

CS 4453 Computer Networks Winter

Parallel-to-Serial and Serial-to-Parallel Converters

Modbus Remote Communication Protocol for REM 54_. Technical Description

Typical modules include interfaces to ARINC-429, ARINC-561, ARINC-629 and RS-422. Each module supports up to 8 Rx or 8Tx channels.

I/O Design, I/O Subsystem, I/O-Handler Device Driver, Buffering, Disks, RAID January WT 2008/09

Communication. Chirag Sangani

RS-232 Control of the Advantage EQ281/8, EQ282/8 and Advantage SMS200

Lecture 13 Serial Interfaces

ESSSg^Pi»ter. The most important features of MULBY 3 at a glance

Advantages and disadvantages

Lecture 6 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

TABLE OF CONTENTS. Communication Functions

Direct Link Networks. Lecture - Encoding & Framing 1. Areas for Discussion. Problems

Digital Input and Output

Interconnecting Components

MCS-51 Serial Port A T 8 9 C 5 2 1

Tutorial Introduction

Announcement. Computer Architecture (CSC-3501) Lecture 23 (17 April 2008) Chapter 7 Objectives. 7.1 Introduction. 7.2 I/O and Performance

Lecture 25: Busses. A Typical Computer Organization

UNIT-V COMMUNICATION INTERFACE

EECS150 - Digital Design Lecture 15 - Project Description, Part 5

Module 11: I/O Systems

DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes. Error Detection Codes

Datalogic Scanning, Inc. 959 Terry Street Eugene, Oregon Telephone: (541) Fax: (541)

Aceprox FSK Proximity Reader REV2 Data Sheet

OUTLINE. SPI Theory SPI Implementation STM32F0 SPI Resources System Overview Registers SPI Application Initialization Interface Examples

of the numerical value of 54Hex ASCII is that 54 consists of 5 (35Hex) and 4(34 Hex).

RS-422 Code-Operated Switches

3. Controtlto specify the mode of transfer such as read or write 4. A control to start the DMA transfer

plc numbers Encoded values; BCD and ASCII Error detection; parity, gray code and checksums

Today: I/O Systems. Architecture of I/O Systems

ESM-5907 MOTORIZED INSERTION STANDARD TYPE MAGNETIC CARD READER & IC CARD READER/WRITER WITH RS-232C INTERFACE

Module 2: Computer-System Structures. Computer-System Architecture

Chapter Six. Errors, Error Detection, and Error Control. Data Communications and Computer Networks: A Business User s Approach Seventh Edition

1. Draw general diagram of computer showing different logical components (3)

or between microcontrollers)

Direct Link Networks: Building Blocks (2.1), Encoding (2.2), Framing (2.3)

ELEG3923 Microprocessor Ch.10 Serial Port Programming

11 ASYNCHRONOUS SERIAL PORTS

Introduction to I2C & SPI. Chapter 22

Chapter 13: I/O Systems. Operating System Concepts 9 th Edition

Serial Communication. Simplex Half-Duplex Duplex

Lecture / The Data Link Layer: Framing and Error Detection

RS485 INSTRUCTION MANUAL. DM4500 Series. Page 1 of 6

Embedded Systems Ch 5A. Parallel Interface (I)

Welcome to this presentation of the STM32 direct memory access controller (DMA). It covers the main features of this module, which is widely used to

Data Communications & Computer Networks. Digital Data Communications Techniques

HP 48 I/O Technical Interfacing Guide

Operating System: Chap13 I/O Systems. National Tsing-Hua University 2016, Fall Semester

Summer 2003 Lecture 21 07/15/03

INPUT/OUTPUT DEVICES Dr. Bill Yi Santa Clara University

Serial Communications

Chapter 6. I/O issues

COMMUNICATION INSTRUCTION MANUAL Temperature Controller KT4R

Transcription:

Ted Borys - CSI 404 5/1/2004 Page 11-1 Section 11 Input-Output Organization ASCII Character Set 94 printable characters Upper & lowercase letters 10 numerals Special characters such as $, @, #, % 34 control characters Format effectors such as CR, LF, HT, BS Information separators such as RS, FS Communication control such as STX, ETX Slides with white background courtesy of Mano text for this class 1 2 ASCII ASCII Control Characters 3 4 Differences Central computer Electronic Fast transfer rate Addressable at word level Peripheral Mechanical & magnetic; signal converted Slow transfer rate Addressable at groups of words level (e.g., sector, track, block) Interface Unit Hardware components between peripheral device and processor bus Supervise and synchronize all I/Os 5 6

Ted Borys - CSI 404 5/1/2004 Page 11-2 I/O Bus and Connected Devices 7 I/O Bus Data Data read or written Address Each interface has a unique address Control Passes commands to interface Control command tells peripheral what to do Status command asks peripheral to report something I/O command sends or receives data to/from peripheral 8 Tape Unit Example Computer issues control command to activate transport mechanism (move the tape) Computer issues status commands to monitor tape movement When tape in correct position, computer issues data output control command Interface responds by reading data off the I/O bus and sending it to the tape drive I/O versus Memory Bus Two completely separate busses I/O processor (data channel) in addition to CPU One common bus with separate control lines Isolated I/O CPU has different instructions for memory and I/O One common bus with common control lines Memory-mapped I/O CPU issues same instructions for memory and I/O 9 10 Asynchronous Data Transfer Source and destination do not share a common clock Need communication methodology Strobe Control signal handshaking Source-Initiated Strobe 11 12

Ted Borys - CSI 404 5/1/2004 Page 11-3 Destination-Initiated Strobe Source-Initiated Handshaking 13 14 Destination-Initiated Handshaking Asynchronous Serial Transfer One conductor + common ground Each unit has separate clock at same frequency Idle time has conductor in 1-state Character frame One start bit, conductor in 0-state Character bits, usually 8 One or two stop bits, conductor in 1-state 15 16 Asynch Serial Transfer Diagram Baud Rate 1 0 Data transfer speed in bits per second 110 baud 10 characters / second Bits: 1 start, 8 data, 2 stop 300 baud 30 characters / second Bits: 1 start, 8 data, 1 stop 17 18

Ted Borys - CSI 404 5/1/2004 Page 11-4 FIFO Buffer 4 x 4 FIFO Buffer Memory unit that stores information such that the first item in is the first item out Input data rate and output data rate can be different 19 20 Memory / Peripheral Xfer Modes Programmed I/O Interrupt-initiated I/O Direct memory access (DMA) Programmed I/O Transfer data under program control Transfer data from/to CPU register & peripheral Transfer data from/to memory & CPU register Peripheral status constantly monitored by CPU 21 22 Interrupt-Initiated I/O Peripheral interrupts CPU when ready for I/O CPU stops what it is currently doing to service I/O interrupt When I/O completes, CPU returns to what it was doing before interrupt took place Direct Memory Access CPU initiates I/O by giving interface unit the starting address and word count Interface unit performs I/O directly with memory using the memory bus while CPU is doing other work Interface unit interrupts CPU to indicate it is done 23 24

Ted Borys - CSI 404 5/1/2004 Page 11-5 Interrupt Vector w/priority Input-Output Processor (IOP) Processor with DMA capability that communicates with one or more peripherals I/O activities are offloaded from CPU Computer system may have > 1 IOP 25 26 CPU & IOP Block Diagram CPU IOP Communication 27 28 IBM 370 I/O Channel (IOP) Multiplexer Connects multiple slow and medium speed devices Can perform concurrent I/O with multiple devices I/O done one byte at a time Selector Normally controls one high speed device Handles one I/O at a time Block-multiplexer Connects multiple high speed devices I/O done one block at a time 29 Intel 8089 IOP 30

Ted Borys - CSI 404 5/1/2004 Page 11-6 Data Communication Processor I/O processor that collects and distributes data from many remote devices connected through telephone and communication lines Peripheral IOP converses via common bus DC IOP converses via pair of wires Data and control information on same wires Phone Lines Analog transmission originally used for voice Digital signals converted to audio by sending modem Audio signals converted to digital by receiving modem Transmission can be synchronous or asynchronous 31 32 Asynchronous Transmission Each character has start and stop bits to frame it Each character checked for transmission error via parity Terminals used by humans also have sent characters echoed back for visual confirmation Synchronous Transmission Characters grouped together in a block Control characters at the beginning and end of the block frame it Transmission error-checking Each character has a parity bit At end of block Longitudinal redundancy check (LRC) character Exclusive-OR of all transmitted characters Cyclic redundancy check (CRC) Two or four byte code generated by sending data through a feedback shift register containing XOR gates 33 34 Transmission Modes Simplex One direction only Radio broadcasting Half-duplex Both directions Only one direction at a time Time to switch directions called turnaround Full-duplex Both directions simultaneously Need 4 wires 35 36

Ted Borys - CSI 404 5/1/2004 Page 11-7 SYN Character ASCII Comm Control Chars Used to synchronize transmitter and receiver Receiver keeps checking last 8 bits looking for a SYN character Once the first SYN is framed, next character must also be SYN If third character is SYN, receiver goes into a synchronous idle state 37 38 Typical Message Format Terminal to Processor Example BCC is usually either LRC or CRC 39 40 Processor to Terminal Example 41