Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.

Slides:



Advertisements
Similar presentations
Provide data pathways that connect various system components.
Advertisements

Computer Buses Ref: Burd, Chp – 220 Englander, Chp 7 p
IT253: Computer Organization
Computer Organization, Bus Structure
I/O Organization popo.
INPUT-OUTPUT ORGANIZATION
INTRODUCTION OF COMPUTER
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
IT Systems In and Out EN230-1 Justin Champion C208 –
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.
Parts of a Computer.
Unit-5 CO-MPI autonomous
Copyright ©: Nahrstedt, Angrave, Abdelzaher
3/17 Parallel and Serial Ports. Roll Call Lecture: –ports –serial ports –parallel ports –USB ports Group Project Information - Handout.
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.
Computer Architecture Lecture 08 Fasih ur Rehman.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
COMP 1017: Digital Technologies Session 7: Motherboards.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
9/28: Buses & Communication Buses: highways of the motherboard –system buses –local buses: PCI, ISA, EISA –expansion slots plug & play laptops: PCMCIA.
Intro to CS Chapt 2 Data Manipualtion 1 Data Manipulation How is data manipulated inside a computer? –How is data input? –How is it stored? –How is it.
CHAPTER 5 I/O PRINCIPLE Understand the principles of System Bus
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
Input/OUTPUT [I/O Module structure].
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 13 Computer Systems Roger.
1 (Based on text: David A. Patterson & John L. Hennessy, Computer Organization and Design: The Hardware/Software Interface, 3 rd Ed., Morgan Kaufmann,
NETW 3005 I/O Systems. Reading For this lecture, you should have read Chapter 13 (Sections 1-4, 7). NETW3005 (Operating Systems) Lecture 10 - I/O Systems2.
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent University.
1 6 Further System Fundamentals (HL) 6.5 Computer – Peripheral Communication.
Output Devices. Printers Factors affecting choice Volume of output High volume require fast, heavy-duty printer Quality of print required Location of.
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.
COMPUTER ARCHITECTURE. Recommended Text 1Computer Organization and Architecture by William Stallings 2Structured Computer Organisation Andrew S. Tanenbaum.
Input/Output Computer component : Input/Output I/O Modules External Devices I/O Modules Function and Structure I/O Operation Techniques I/O Channels and.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
Input-Output Organization
Organisasi Sistem Komputer Materi VIII (Input Output)
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
7. Peripherals 7.1 Introduction of peripheral devices Computer Studies (AL)
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
IT3002 Computer Architecture
Digital Literacy: Computer Basics
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Peripherals on or near an edge or constituting an outer boundary; the outer area; "Russia's peripheral provinces"; "peripheral suburbs" (computer science)
Computer Architecture and Number Systems
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Chapter 6 Input/Output Organization
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Operating Systems (CS 340 D)
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
C_ITCO011/C_ITCO111 LECTURER: E.DONDO
PROGRAMMABLE PERIPHERAL INTERFACE -8255
Overview of Computer Architecture and Organization
Overview of Computer Architecture and Organization
Presentation transcript:

Input/Output

2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted by the device it is sent to (output) Computer interprets data received (input)

3 Devices Obvious ones… Mouse Keyboard Printer Modem Not so obvious ones… Floppies CD-ROM Hard disc drives What are devices?

4 The Bus - Reminder A collection of wires which carry data between the CPU, memory and I/O devices Address Bus: carries memory address values from the CPU to the memory and I/O Data Bus: carries all data, including machine codes, in all directions Control Bus: a small number of wires carrying the read/write and enable signals, and a few other ‘control’ signals

5 I/O Devices Address bus Data bus Control bus I/O Port Peripheral Interface between computer’s bus and I/O device Device-specific communication link Actual I/O device

6 Peripherals These are the devices that actually do the physical input, output and data storage operations. Examples:keyboardprinter mousefloppy disk VDUmodem They do not connect directly to the computer’s bus. A peripheral is anything connected to the computer except the CPU, memory and power supply

7 I/O Ports These are the devices that provide interfaces between the computer’s buses and the peripherals. In general, they do the following: Recognise when they are being addressed, or selected Provide at least one (but typically at least two) addressable locations that can be read and/or written like a memory location. These locations are called I/O registers, and can be classified into data registers and control registers

8 I/O Ports Respond to commands from the CPU –CPU writes to the control registers For input devices: transfer data from device to input data registers –CPU can then read data from these registers For output devices: transfer data from data registers to device –CPU will have already written data to registers

9 I/O Ports Provide a variety of protocols for data transfer to and from the peripheral, all under CPU control Provide status and error information to the CPU e.g. ready, broken, run out of paper etc Issue interrupts to signal the occurrence of certain events (e.g. data received), as specified by the CPU (more later)

10 Parallel and Serial Interfaces I/O ports can be classified according to the type of interface they implement. The two commonest are:- parallel interface (e.g. to a printer) serial interface (e.g. to a VDU or modem)

11 Parallel Interface (typical) Think: pins on a printer cable before USB!

12 Example protocol: Handshake RDY: sender says data is ready ACK: receiver acknowledges receipt

13 The Handshake Sender puts data on lines Sender asserts data readyReceiver acknowledges receiptSender stops asserting data ready Receiver acknowledges transmission over

14 Serial Interface (transmitter)

15 The Serializer The serializer takes the (8 bits of) input, and translates them to a single stream of data It tells the CPU (status and control register) when data transmission is complete It reads from the status & control register information about how to format the data, and what speed to send it

16 USB A bit different… Four wires –Two for data transmission –One for ground –One for voltage (+5V) Data sent in packets, addressed to destination Lower noise, fewer errors => faster data transfer than traditional serial and parallel ports

17 Firewire Like USB but better –Nearly twice as fast (USB2.0=480Mb/s; Firewire800=800Mb/s) –Allows longer cables (USB2.0 max 4.5m; Firewire 100m And also more expensive –Which is why, although Firewire has been around since 1995 (Apple created it), USB is more used For really fast connections (e.g. video) Firewire is best; for others, it doesn’t matter

18 Test Yourself! 1.Think of some peripherals. Do they use serial or parallel interfaces? 2.What is an I/O port? 3.How does handshaking work? 4.Can you draw a timing diagram for parallel interface handshaking? 5.What about the serial interface?