Professional Documents
Culture Documents
Instructor:
1
MR.Melkamu D
Content
• Priority interrupts
• Direct Memory Access (DMA)
• Input-Output processor(IOC)
• Serial communication
22
INTRODUCTION
Input-Output Interface
• In computer system, there are special hardware
components between the CPU and peripherals to control
or manage the input-output transfers. These components
are called input-output interface units because they
provide communication links between processor bus and
peripherals.
• The I/O subsystem of a computer provides an efficient
mode of communication between the central system and
the outside environment. It handles all the input- output
operations of the computer system.
3
Priority interrupts
A. Hardware Interrupts
When the signal for the processor is from an external
device or hardware then this interrupts is known
as hardware interrupt.
5
Cont…
6
Cont…
7
Cont…
i. Normal Interrupt
The interrupts that are caused by software
instructions are called normal software interrupts.
ii. Exception
Unplanned interrupts which are produced during
the execution of some program are
called exceptions, such as division by zero.
8
Cont…
9
Cont…
In daisy chaining system all the devices are
connected in a serial form. The interrupt line request
is common to all devices. If any device has interrupt
signal in low level state then interrupt line goes to
low level state and enables the interrupt input in the
CPU. When there is no interrupt the interrupt line
stays in high level state. The CPU respond to the
interrupt by enabling the interrupt acknowledge line.
This signal is received by the device 1 at its PI input.
The acknowledge signal passes to next device
through PO output only if device 1 is not requesting
an interrupt.
10
Cont…
11
Cont…
14
Advantages of priority interrupt:
16
Advantages Software pulling:
17
Disadvantages Software pulling:
18
Advantages Daisy chaining:
19
Disadvantages Daisy chaining:
Daisy chaining can result in increased response time as
each device must wait for the previous device to
complete its interrupt handling before it can start its
own.
It can also be difficult to implement and troubleshoot,
especially if there are multiple devices on the same
interrupt line.
20
Direct Memory Access
21
Cont…
ISA was a computer bus standard for IBM compatible
computers, allowing a device to initiate transactions
(bus mastering) at a quicker speed. ISA has since been
replaced by accelerated graphics port (AGP) and
peripheral component interconnect (PCI) expansion
cards, which are much faster.
Each DMA transfers approximately 2 MB of data per
second. A computer's system resource tools are used for
communication between hardware and software. The
four types of system resources are:
22
Cont…
•I/O addresses
•Memory addresses
•Interrupt request numbers (IRQ)
•Direct memory access (DMA) channels slow devices like
keyboards will generate an interrupt to the main CPU after
each byte is transferred.
If a fast device such as a disk generated an interrupt for
each byte, the operating system would spend most of its
time handling these interrupts. So a typical computer uses
direct memory access (DMA) hardware to reduce this
overhead. 23
Cont…
26
Cont…
The transfer of data is first initiated by the CPU. During
the transfer of data between the DMA channel and I/O
device, the CPU performs other tasks. When the data
transfer is complete, the CPU receives an interrupt request
from the DMA controller.
In the Direct Memory Access (DMA) the interface
transfer the data into and out of the memory unit through
the memory bus.
The transfer of data between a fast storage device such as
magnetic disk and memory is often limited by the speed of
the CPU.
27
Cont…
28
Cont…
29
Types of Device DMA
31
Cont…
Third-party DMA
Third-party DMA utilizes a system DMA engine
resident on the main system board, which has several
DMA channels available for use by devices. The device
relies on the system's DMA engine to perform the data
transfers between the device and memory. The driver
uses DMA engine routines to initialize and program the
DMA engine. For each DMA data transfer, the driver
programs the DMA engine and then gives the device a
command to initiate the transfer in cooperation with that
engine.
32
Cont…
First-party DMA
Under first-party DMA, the device drives its own DMA
bus cycles using a channel from the system's DMA
engine. The function is used to configure this channel in
a cascade mode so that the DMA engine will not
interfere with the transfer.
33
Advantages of Direct Memory Access
( DMA):
36
Disadvantages of Direct Access Memory (DMA) :
37
Cont…
3. Compatibility Issues: Not all systems or devices
support DMA, which can lead to compatibility issues
when using older devices or software with newer
machines.
4. Limited Memory Access: DMA transfers are typically
limited to a specific range of memory addresses, which
can limit the amount of memory that can be accessed by
peripheral devices.
5. Resource Contention: DMA can potentially compete
with the CPU for access to system resources, which can
cause system slowdowns or stability issues.
38
Cont…
39
Input-Output Processor
An input-output processor (IOP) is a processor with
direct memory access capability. In this, the computer
system is divided into a memory unit and number of
processors.
Each IOP controls and manage the input-output tasks.
The IOP is similar to CPU except that it handles only
the details of I/O processing. The IOP can fetch and
execute its own instructions. These IOP instructions are
designed to manage I/O transfers only.
40
Cont…
41
Cont…
44
Advantages
45
Cont…
1. Efficiency: The I/O process allows for efficient use of
system resources. By moving data between external
devices and the CPU, the system can free up resources
for other tasks.
2. Flexibility: The I/O process enables the computer
system to interact with a wide range of devices and data
sources. This means that the system can be used in
diverse environments, such as industrial control
systems, scientific research, or consumer applications.
46
Cont…
47
Cont…
48
Serial Communication in Computer
organization
Serial communication is the process of
sequentially transferring the information/bits on
the same channel. Due to this, the cost of wire
will be reduced, but it slows the transmission
speed. Generally, communication can be
described as the process of interchanging
information between individuals in the form of
audio, video, verbal words, and written
documents.
49
Cont…
The serial protocol is run on every device that can be our
mobile, personal computers, and many more with the
help of following some protocols. The protocol is a type
of reliable and secure form of communication that
contains a set of rules addressed with the help of a source
host and a destination host.
In serial communication, binary pulses are used to show
the data. Binary contains the two numbers 0 and 1.0 is
used to show the LOW or 0 Volts, and 1 is used to show
the HIGH or 5 Volts. The serial communication can
either be asynchronous or synchronous.
50
Cont…
51
Synchronous Communication
In synchronous communication, the frames or data
will be constructed with the help of combining the
groups of bits. That frames will be continuously sent
in time with a master clock. It uses a synchronized
clock frequency to operate the data of sender or
receiver.
In synchronous communication, there is no need to
use the gaps, start bits and stop bits. The time taken
by the sender and receiver is synced that's why the
frequency of timing error will be less, and the data
will move faster.
52
Cont…
On the basis of the timing being synced correctly
between the sender and receiver devices, the data
accuracy is totally dependent.
The synchronous serial transmission is more expensive
as compared to asynchronous serial transmission.
53
Cont…
54
Asynchronous Communication
55
Cont…
In asynchronous communication, we don't require
synchronization between the sender and receiver
devices, which is the main advantage of asynchronous
communication. This method is also cost-effective. In
this method, there can be a case when data transmission
is slow, but it is not compulsory, and it is the main
disadvantage of the asynchronous method.
56
Cont…
57
Transmission Mode
The transmission modes are described as follows:
Simplex
In the simplex method, the data transmission can be
performed only in one direction. At a time, only one
client (either sender or receiver) can be active. That
means among the two devices, one device can only
transmit a link while the other device can only receive it.
A sender can only transmit the data, and the receiver can
only accept that data. The receiver cannot reply back to
the sender. In another case, if the receiver sends the data,
the sender will only accept it. The sender cannot reply
back to the receiver.
58
Cont…
61
Cont…
62
Cont…
Railroads usually contain the scenario of half-duplex
because it is cheaper and has to lay a single track. The
driver of the train has to hold a train at one end of a single
track until the driver of another train, which is travelling
train in another direction, goes through.
The printer is also a good example of half-duplex. In the
IEEE-1284, printers are also able to send messages to the
computer. When the computer is sending characters to the
printer, at that time, the printer is not able to send the
message to the computer. When the computer successfully
sends all the messages and stop sending them after that,
the printer can send a message back to the computer.
63
Full Duplex
65
Cont…