Module 4 DCO
Module 4 DCO
Input/Output
2
Peripheral devices
A peripheral device is an external or internal hardware component that
connects to a computer or other digital system to provide additional
functionality. These devices are not a core part of the computing system
but extend its capabilities for input, output, storage, or communication.
Types of Peripheral devices
1. Input Devices
Used to provide data or commands to the computer.
Examples:
Keyboard: For typing text or commands.
Mouse: For pointing and selecting.
al Devices
2. Output Devices
Display or transmit the results of processed data.
Examples:
Monitor/Display: Displays visual output.
Printer: Produces hard copies of documents or images.
Wednesday, February 5, 20
25
3. Storage Devices
Store data either temporarily or permanently.
Examples:
External Hard Drives: Store large amounts of data.
USB Flash Drives: Portable data storage.
SD Cards: Compact storage for cameras and portable devices.
Optical Drives: Read/write CDs, DVDs, or Blu-ray discs.
Wednesday, February 5, 20
25
+ I/O Interface For Input Device
7
Address decoder:
Wednesday, February 5, 20
25
+ Different IO Interfaces
PCI
SCSI
USB
9
+ Programmed I/O
• CPU while executing a
program encounters an I/O
instruction
• CPU issues I/O command to
I/ O module
• I/O module performs the
requested action & set
status registers
10
+Interrupt-Driven
I/O
Similar to direct I/O but
processor not required
to poll device.
11
+ Direct Memory Access (DMA)
I/O exchanges occur directly with memory
12
+ DMA Contd..
• Direct Memory Access (DMA) is a method of allowing data
to be moved from one location to another in a computer
without intervention from the central processor (CPU).
Computer System
+ CPU having the control over the bus:
+ When DMA operates:
+ DMA Modes: Cycle Stealing & Burst
mode
Requests by DMA devices for using the bus are always given
higher priority than processor requests (HOLD input has
higher priority than INTR).
Among different DMA devices, top priority is given to high-
speed peripherals (disks, high-speed network interface,
graphics display device)
Since the processor originates most memory access cycles,
it is often stated that DMA steals memory cycles from the
processor (cycle stealing).
If DMA controller is given exclusive access to the main
memory to transfer a block of data without interruption, this
is called block or burst mode..
+ 20
Remember…
Data transfer speed is determined by speed of the memory
device or a DMA controller.
In many cases, the DMA controller slows the speed of the
system when transfers occur.
The serial PCI (Peripheral Component Interface) Express bus
transfers data at rates exceeding DMA transfers.
This in modern systems has made DMA is less important.