0% found this document useful (0 votes)
32 views31 pages

Chapter 7

The document discusses input/output organization in computers. It describes how peripherals like keyboards and monitors connect to I/O modules to interface with the computer. The input/output subsystem allows efficient communication between the computer's central system and external devices. Data can be transferred via programmed I/O, interrupt-driven I/O, or direct memory access which allows direct transfer between devices and memory without using the CPU.

Uploaded by

Sagni Kemu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views31 pages

Chapter 7

The document discusses input/output organization in computers. It describes how peripherals like keyboards and monitors connect to I/O modules to interface with the computer. The input/output subsystem allows efficient communication between the computer's central system and external devices. Data can be transferred via programmed I/O, interrupt-driven I/O, or direct memory access which allows direct transfer between devices and memory without using the CPU.

Uploaded by

Sagni Kemu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

Input / Output

Organization

computer organization and


architecture chapter 7 5/30/2020 1
 An external device connected to an I/O module
also called Interface is often referred to as a
peripheral device or simply a peripheral.
 Among the most known peripherals some of
them are, keyboard, display unit and printers.
 Video monitors are most commonly used
peripheral.

computer organization and


architecture chapter 7 5/30/2020 2
 The input and output organization of a computer is a
function of a size of computer and devices connected
to it.
 The difference between a small and large system is
mostly depends on the amount of hardware the
computer has available for communicating with
peripheral unit and the number of peripheral
connected to the system.

computer organization and


architecture chapter 7 5/30/2020 3
 The input/output subsystem of a computer, referred
to as I/O, provides an efficient mode of
communication between the central system and the
outside environment(transferring and processing)

computer organization and


architecture chapter 7 5/30/2020 4
 I/O operations are accomplished through a wide
assortment of external devices that provide a means
of exchanging data between the external
environment and the computer.
 An external device attaches to the computer by a link
to an I/O module.

computer organization and


architecture chapter 7 5/30/2020 5
 Input output Interfaces provides method for
transferring information between internal storage and
external IO devices
 Peripheral connected to the computer needs special
communication link for interacting them with the
central processing unit.

computer organization and


architecture chapter 7 5/30/2020 6
computer organization and
architecture chapter 7 5/30/2020 7
External devices broadly can be classified into three
categories:
 Human readable
 Machine readable
 Communication

computer organization and


architecture chapter 7 5/30/2020 8
 The internal operation in digital system is
synchronized by means of clock pulse supplied by a
common pulse generator.

computer organization and


architecture chapter 7 5/30/2020 9
 It is the entity within a computer that is responsible
for the control of one or more external devices and
for the exchange of data between those devices and
main memory and/or CPU.
I/O Module Function
 The major functions or requirements for an I/O
module are:

computer organization and


architecture chapter 7 5/30/2020 10
 Control & Timing
 CPU Communication
 Device Communication
 Data Buffering
 Error Detection

computer organization and


architecture chapter 7 5/30/2020 11
 I/O module must have the capability to engage in
communication with the CPU and external device.
Thus CPU communication involves
 Command decoding:
 Data:
 Status reporting

computer organization and


architecture chapter 7 5/30/2020 12
 The I/O module must also be able to perform device
communication. This communication involves
 commands,
 status information, and
 data.
 Some of the essentials tasks are listed below:
 Error detection:
 Data buffering:

computer organization and


architecture chapter 7 5/30/2020 13
 Three techniques are possible for I/O operations or
data transfer mode. They are:
 Programmed I/O
 Interrupt driven
 Direct Memory Access (DMA)

computer organization and


architecture chapter 7 5/30/2020 14
 With Programmed I/O, data are exchanged
between the CPU and the I/O module.
 The CPU executes a program that gives it direct
control of the I/O operation
 If the CPU is faster than I/O module, there is
wastage of CPU time.

computer organization and


architecture chapter 7 5/30/2020 15
 The sequences of actions that take place with
programmed I/O are:
 CPU requests I/O operation
 I/O module performs operation
 I/O module sets status bits

computer organization and


architecture chapter 7 5/30/2020 16
 CPU checks status bits periodically
 I/O module does not inform CPU directly
 I/O module does not interrupt CPU

computer organization and


architecture chapter 7 5/30/2020 17
 Four types of I/O commands can be received by the
I/O module when it is addressed by the CPU. They
are
1.A control command
2. A test command
3. A read command
4. A write command

computer organization and


architecture chapter 7 5/30/2020 18
 When the CPU, main memory, and I/O module
share a common bus two modes of addressing
are possible.

computer organization and


architecture chapter 7 5/30/2020 19
 Devices and memory share an address space
 I/O looks just like memory read/write
 No special commands for I/O
 Large selection of memory access commands
available

computer organization and


architecture chapter 7 5/30/2020 20
 Separate address spaces
 Need I/O or memory select lines
 Special commands for I/O and Limited set

computer organization and


architecture chapter 7 5/30/2020 21
 A priority interrupt is a system that establish a
priority over various sources to determine which
condition is to be serviced first when two or
more requests arrives simultaneously.

computer organization and


architecture chapter 7 5/30/2020 22
 With Interrupt driven I/O, the CPU issues a
command to I/O module and it does not wait
until I/O operation is complete but instead
continues to execute other instructions.
 When I/O module has completed its work it
interrupts the CPU.
 Using Interrupt Driven I/O technique CPU
issues read command.

computer organization and


architecture chapter 7 5/30/2020 23
 An interrupt is an exception condition in a
computer system caused by an event external to
the CPU
 interrupts enable transfer of control from one
program to another to be initiated by an event
that is external to a computer.
 Execution of the interrupted program resumes
after completion of execution of the interrupt
service routine.

computer organization and


architecture chapter 7 5/30/2020 24
 Direct Memory Access is capabilities provided
by some computer bus architectures that allow
data to be sent directly from an attached device
(such as a disk drive) to the memory on the
computer’s motherboard.
 The microprocessor (CPU) is freed from
involvement with the data transfer, thus
speeding up overall computer operation.

computer organization and


architecture chapter 7 5/30/2020 25
 When the CPU wishes to read or write a block
of data, it issues a command to the DMA module
and gives following information:
 CPU tells DMA controller:
 Whether to read or write
 Device address
 Starting address of memory block for data

computer organization and


architecture chapter 7 5/30/2020 26
 Amount of data to be transferred
 Thus DMA controller steals the CPU‟s work of
I/O operation.
 The DMA module transfers the entire block of
data
 One word at a time, directly to or from memory,
without going through CPU.

computer organization and


architecture chapter 7 5/30/2020 27
Some of the common configurations of DMA are:
1.Single Bus Detached DMA
2. Single Bus, integrated DMA
3. DMA using an I/O bus

computer organization and


architecture chapter 7 5/30/2020 28
 DMA is fast
 DMA is usually required to achieve maximum
data transfer speed, and high speed data
acquisition devices
 DMA also minimizes latency in servicing a
data acquisition device
 DMA also off-loads the processor
 increasing overall system utilization.

computer organization and


architecture chapter 7 5/30/2020 29
 A data communication processor is an I/O
processor that distribute and collect data from
many remote terminals connected through
telephone and other communication lines
 it is a specialized I/O processor designed to
communicate directly with data communication
network.

computer organization and


architecture chapter 7 5/30/2020 30
 Data can be transmitted between two points in
three different modes:
 simplex,
 half duplex
 full duplex.

computer organization and


architecture chapter 7 5/30/2020 31

You might also like