Unit - 5
Unit - 5
[1]
An external device connected to a I/O module is
I/O Module often referred to peripheral device.
Peripheral devices helps users to access and use the
Peripheral Device functionality of computer system. E.g. keyboard,
Introduction mouse, printer etc.
Classification of External device is attached to computer through a
external devices. link to I/O module, this link is used to exchange
control, status and data bits.
There are three classification of external devices:
1. Human Readable: Monitors, printers
2. Machine readable: tapes, sensors, actuators
3. Communication devices: other computer, or
remote machine readable device
• There are a wide variety of peripherals
I/O Module making it impractical to incorporate the
Need of Separate necessary logic within the processor
I/O Module
• The data transfer rate of peripherals is
often much slower than that of the
memory or processor. Synchronization is
required.
[2]
I/O Module •All devices with non matching address are disabled through
corresponding interface.
I/O Interface(2)
• The selected interface respond to function code and is referred
to as I/O Command
[2]
I/O Module There are three methods which can used in computer system for
Memory or I/O transfer
I/O vs Memory Bus
1. Use separate buses memory and I/O
3. Use one common bus for memory and I/O transfer with
common control lines.(Mostly Used)
A connection point that act as interface
I/O Module between computer and external devices.
I/O Ports
Types:
1. Internal Ports: Used to connect internal
devices like hard disk drive, CD Drive etc.
with motherboard
2. External Ports: Used to connect
motherboard to external devices like
mouse, printer, flash drive etc.
I/O module with enhance capability of I/O
Input execution are termed as I/O channel.
output
channel I/O Channel greatly reduced the Main
and processor burden as I/O operations are
processors performed through it without much CPU
involvement
[1]
Can handle number of devices at a time.
I/O channel
For slow devices byte multiplexing is used
Multiplexor E.g. if we have three devices having
Channel
following stream of bytes
B1, B2, B3….. Data from device 1
C1,C2,C3…….. Data from Device-2
D1,D2,D3……. Data from Device-3
[1]
If multiple devices interrupts at same time then
Certain arbitration mechanism is used by CPU
a) CPU with Shared interrupt request Line
Interrupt
• Bus arbitration technique like daisy chain is used
Selection
• All devices are scanned on receiving interrupt
signal by scanning corresponding ports
a) CPU with independent interrupt request line
• Easily identifies corresponding interrupting
device.
• Priority mechanism is used in this case
• This approach waste many lines of system bus for
initiating interrupt
Modes of
Data
Data transfer between central computer
Transfer and I/O can be handled in different ways:
1. Programmed I/O
2. Interrupt Initiated I/O
3. Direct Memory Access
[1]
Summary
Programmed I/O Interrupt Driven I/O
A Comparison
It is simple and used in low-end Most of high-end systems are
system where cost is important interrupt driven where speed is
factor important factor
Busy waiting is involved CPU switches to other jobs while
I/O is going on
DMA Transfer in
computer
system
[1]
Contents
• Serial Communication
• In serial data transmission, each bit in the message is sent in sequence, one
at a time.
Serial vs. Parallel
Modes of Serial Communication:
• Serial data can be transmitted
between two points in three
different modes:
• Simplex
• Half Duplex
• Full Duplex
A simplex line carries information in one direction only.
Examples : Radio and television broadcasting
A half-duplex transmission system is capable of transmitting in both
directions, but in only one direction at a time.
Example: walkie talkie
A full-duplex transmission system can send and receive data in both
directions simultaneously.
Example: Telephone communication
Types of Serial Communication:
• The serial transmission of data can be:
• Synchronous
• Asynchronous
Synchronous Transmission
• In synchronous transmission, the two units share
a common clock frequency
The rates determined by the clock The transmission can occur at any
rates time
In Synchronous transmission, time In asynchronous transmission, time
interval of transmission is constant. interval of transmission is not
constant, it is random.
Synchronous transmission needs Asynchronous transmission have no
precisely synchronized clocks for the need of synchronized clocks
information of new bytes.
Synchronous transmission is fast. Asynchronous transmission is slow.
This method is used for high volume This method is used for low volume
of data of data
Contents
• Serial Interface
• Parallel interface
• Ethernet
Types of Interfaces:
• One major characteristic of the interface is whether it is serial or
parallel.
• Parallel Interface
• Serial Interface
Parallel Interface
• In a parallel interface, there are multiple
lines connecting the I/O module and the
peripheral.
• COM ports conform to the RS‐232C • Defines the interface between a DTE and
interface standard a DCE
• Configuration
• – Serial, point-to-point
Parallel Interfaces • – Improvements
• EPP (Enhanced Parallel Port)
• In the context of PCs, a “parallel interface”
implies a Centronics- compatible printer • Enshrined in the standard IEEE-1284 (1994)
interface • – “Standard Signalling Method for a Bi-
directional Parallel Peripheral Interface for
Personal Computers”
• Originally developed by printer company,
Centronics • – Includes Centronics /LPT mode, EPP mode,
• and…
• Introduced on the IBM PC (1981) as an LPT • – ECP mode (Enhanced Capability Port)
(“line printer Terminal”) port • Data Rate – 150 Kbytes/s (LPT) to1.5
Mbytes/s (ECP)
• Configuration
• – Parallel, point-‐to-‐point
Ethernet • Fast
• To connect a system to a high-speed network • Ethernet
• In 1980, Xerox, Digital Equipment Corporation • Specified in IEEE 802.3u (100Base-TX)
(DEC, now Compaq), and Intel published a
specification for an “Ethernet” LAN (local area • Data Rate
network)
• – 10 Mbits/s for Ethernet (10Base-T)
• Now exists as a standard
• – 100 Mbits/s for Fast Ethernet
• IEEE 802.3 (100Base-T)
• Physical Interface uses either coax cable with • – 1000 Mbits/s for Gigabit Ethernet
BNC connectors or twisted pair cable with RJ‐45 (1000Base-‐T)
connectors (10Base‐T)
• Configuration
• Serial, multi-‐point (token ring or
token bus)