Transcript
Page 1: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.1

Digital Technology and Computer Fundamentals

Chapter 6

Computer Organization II

Page 2: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.2

Objectives

At the end of this chapter, you should be able to: describe the characteristics of

different input and output devices;

explain why I/O interfaces are required in a computer system;

Page 3: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.3

Objectives (Cont’d)

describe the three different methods for interfacing I/O; and

explain the advantage and disadvantages for each of the I/O interface methods.

Page 4: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.4

References

M. Marris Mano, "Computer System Architecture," third edition, Prentice Hall.

G. Shelly, T. Cashman, G. Waggoner, W. Waggoner, “Discovering Computers 98, A link to the Future,” International Thomson, 1998.

Page 5: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.5

Input / Output Devices

Provide communication for the CPU and the outside world Keyboard Mouse Pointing Devices Terminal Visual Display Unit Printers Others

Page 6: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.6

Keyboard

Most commonly used Keys are micro-switches. Alphabetic keys. Numeric keypad. Arrow keys or cursor control keys Function keys

Page 7: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.7

Mouse

A pointing device. Controls the movement of an on-

screen symbol called the pointer. A ball or light reflection on the

bottom to sense its movement. Electronic circuits translate to

electrical signals that are sent to the computer to direct the pointer.

Page 8: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.8

Trackball

Similar to a mouse The ball is on top of the device.

Page 9: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.9

Touch pad

A flat surface usually attached in a notebook computer.

Controls the movement of the pointer by sensing the motion of a finger on its exterior.

Page 10: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.10

Pen

Pen input devices accept input with hand written characters.

Usually a special software must be required for this type of input.

Can also be used as a mouse

Page 11: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.11

Touch screen

Allows users to touch areas of the screen to enter data.

The action of screen-touching is equivalent to the movement and clicking the mouse.

Two types of touch screens: combined with the monitor

attached in front of the monitor

Page 12: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.12

Image scanner

Electronically captures an entire page and converts the document into digital format.

Special software required to capture images.

To convert the image to text, Optical Character Recognition (OCR) software is needed.

Page 13: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.13

Optical recognition devices Using a light source to read optical

codes. For example, a bar code reader

reads the standard Universal Product Code (UPC) and converts them into digital format.

Page 14: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.14

Microphone

Accepts voice input Voice recognition software is

required to convert into digital format.

For voice to text conversion, familiarization is need for the conversion software to recognize the characteristics of the voice of the user.

Page 15: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.15

Terminal

Consists of a keyboard and a screen.

Dumb terminals have no independent processing capability.

Intelligent terminals have built-in processing capabilities.

Special purpose terminals uniquely designed for use in a particular industry.

Page 16: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.16

Visual Display Unit (VDU) A visual output device. A monitor looks like a television

and consists of a cathode ray tube (CRT) display screen.

An LCD display is a thin display screen, and most often used in notebook computers.

Page 17: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.17

Printers

Used to produce hard copies. Two categories: impact and non-

impact printers. Impact printers: striking a ribbon to

deposit ink on the paper. Non-impact printers: use some

non-mechanical technique for printing.

Page 18: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.18

Dot-matrix printers

Consists of a printer head with a vertical column of 9 or 24 needles.

The needles are selectively energized and forced against the ribbon in proper combinations, to form the desired character image on the paper.

Major advantage: capability to print multiple copies simultaneously.

Page 19: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.19

Laser printers

Based on the principle of photocopying machines.

A laser beam produces mirrored images on a photo-sensitize selenium drum.

Toner gets stuck to the drum by an electrostatic process, then transferred to the paper.

Page 20: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.20

Laser printers (Cont’d)

Finally, The inked image on the paper is fused by heat.

Provide very good quality printing at a moderately fast rate.

Page 21: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.21

Ink-jet printers

Using the dot-matrix approach with droplets shot at the paper to form the desired character.

Quiet in operation with good print quality.

Page 22: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.22

Plotters

Used to produce high-quality line drawings.

Usually, the outputs of plotters are large size posters, graphics, etc.

Page 23: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.23

Data projectors

It takes the image that appears on a computer screen and project it.

It is a very effective method for presentation.

Page 24: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.24

I/O Interface

Usually, I/O devices are not connected directly to the system bus in the computer system.

An interface module for each device is needed.

Page 25: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.25

Need of interface module I/O Operations are different from

CPU and memory operations . Operations of different peripheral

devices are different. Data format and word lengths are

different. Conversion of signal values for

each device may be required.

Page 26: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.26

Need of interface module (Cont’d) The data transfer rate of these

devices are much slower than that of the memory or CPU.

Direct connection to the system bus is impractical.

Page 27: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.27

Solutions

Special hardware components are required to supervise and synchronize the input and output data transfer.

These components between the CPU and the peripheral devices are called interface.

Page 28: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.28

I/O Bus and Interface Modules Each peripheral device connects to

a separate interface module All interfaces are attached to the

I/O buses.

Page 29: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.29

Interface Module

Each interface decodes the address and control

signals received from I/O bus;

interprets and provides signals for the peripheral controller;

synchronizes the data flow and supervises the transfer.

Page 30: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.30

Accessing I/O

CPU places an address on the address bus.

The addressed interface detects it and activates the path. Other devices are disabled.

CPU provides an I/O command in the control lines.

The interface selected responds and proceeds to execute it.

Page 31: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.31

I/O Bus and Memory Bus

CPU communicates with both the I/O and the memory.

Memory bus contains data, address, and read/write control lines.

Need to separate them.

Page 32: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.32

Distinguish between I/O bus and Memory bus Three different ways:

Two separate buses are used, one for memory and the other for I/O.

Common data bus and common address bus with separate control buses for memory and I/O.

All buses are common for memory and I/O.

Page 33: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.33

Separate buses for memory and I/O Two independent sets of buses,

one for memory, other for I/O. A separate I/O processor (IOP) is

provided in addition to the CPU. Memory communicates with both

CPU and IOP through memory bus.

Page 34: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.34

Separate buses for memory and I/O (Cont’d) IOP also communicates with the

I/O devices through a separate I/O bus with its own address, data and control lines.

The purpose of the IOP is to provide an independent pathway for the transfer of information between external devices and internal memory.

Page 35: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.35

Isolated I/O

One common bus to transfer data and address information between memory or I/O and the CPU.

Separate read and write lines are used to distinguish the memory and I/O operations.

Page 36: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.36

Isolated I/O (Cont’d)

CPU places the address information on the address bus.

It then enables one of the two possible read/write lines (memory R/W or I/O R/W) to specify the operation.

Specified device will be activated.

Page 37: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.37

Isolated I/O (Cont’d)

Distinct input and output instructions are available.

Each is associated with the address of an interface because of the small number of I/O devices.

Thus, the program size reduced and decoding speed increased.

Page 38: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.38

Isolated I/O (Cont’d)

Extra cost for the separate sets of read/write buses.

Page 39: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.39

Memory-mapped I/O

Only one set of read and write signals and common address bus for both memory and I/O

The CPU treats an interface as being part of the memory.

Page 40: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.40

Memory-mapped I/O (Cont’d) Each interface is assigned an

address same as the one in the physical memory space.

The physical memory space cannot be used.

Therefore, the total number of memory address range is reduced.

Page 41: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.41

Memory-mapped I/O (Cont’d) Usually, a segment of memory

address space is reserved for interface.

References to these addresses will be ignored by the memory and responded by the specific I/O interface.

Page 42: P. 6.1 Digital Technology and Computer Fundamentals Chapter 6 Computer Organization II

P. 6.42

Memory-mapped I/O (Cont’d) No specific input or output

instructions All access to the I/O can be made

used of the large amount of memory-reference instructions.

Increases the flexibility for the programmer to design programs.