Computer Peripherals: Presented By: Tawhidur Rahman, Lecturer, CSE & ITE, DIU
Computer Peripherals: Presented By: Tawhidur Rahman, Lecturer, CSE & ITE, DIU
Computer Peripherals: Presented By: Tawhidur Rahman, Lecturer, CSE & ITE, DIU
Computer Peripherals
Presented By :
Tawhidur Rahman,Lecturer,CSE & ITE,DIU
May 12, 2014 2
Contents
This lecture will discuss:
storage devices
input devices and
output devices.
May 12, 2014 3
Introduction
The peripherals are referred to all the items that are
external to the CPU, main memory and power supply.
These includes:
Thumb drive, a floppy disk drive, a hard disk drive, serial ports,
parallel port(s), USB ports, a keyboard, a mouse, a network
interface, CD-ROM or DVD-ROM drive, a sound system, a modem, a
monitor, tape drives, scanners, printers, plotters, and audio, video
input devices, etc.
Some of the peripherals use the parallel, USB, and serial
ports as their interconnection point to the computer.
Others have their own interface to the system bus.
May 12, 2014 4
Introduction
Peripheral devices are classified as
storage devices (secondary memory)
Flash memory
Magnetic Disk
Magnetic tape
CD-ROM : (your assignment)
Etc.
input devices
Keyboard
Mouse
Touch screen
Graphics tablets
Etc.
output devices
Printers : (your assignment)
Scanners
Displays
Etc.
May 12, 2014 5
Secondary/External Memory
Is treated as I/O.
Data and programs in secondary storage must be
copied to primary memory for CPU access.
Except for flash memory, secondary storage is
significantly slower than primary storage, and flash
memory is expensive compared to other forms of
secondary storage.
Most secondary storage devices are mechanical in
nature, and mechanical devices are usually slower
than devices that are purely electronic.
May 12, 2014 6
Secondary/External Memory
Advantages of secondary storage,
Its permanence
The magnetic media used for disk and tape and the
optical media used for disk retain the data
indefinitely.
Capable of storing massive amounts of data.
Used for offline archiving, for transferring programs
and data from machine to machine, installation
purposes, and for offsite backup storage.
Relatively inexpensive compared to main memory.
May 12, 2014 7
Types of Secondary Memory
Flash memory
Thumb drive
Magnetic Disk
RAID
Removable
Optical
CD-ROM
CD-Recordable (CD-R)
CD-R/W
DVD
Magnetic Tape
May 12, 2014 8
USB flash drives
Typically small, lightweight, removable and
rewritable.
Memory capacity typically ranges from 8 MB up to
64 GB, limited only by current flash memory
densities.
As capacity increases, so does price.
Several advantages over other portable storage
devices:
Generally faster, hold more data, and are considered
more reliable (due to their lack of moving parts) than
floppy disks.
May 12, 2014 9
USB flash drives
A flash drive has a small PCB encased in a robust
plastic or metal casing, making the drive sturdy
enough to be carried about in a pocket.
Only the USB connector protrudes from this protection,
and is usually covered by a removable cap.
Most flash drives use a standard type-A USB connection
allowing them to be connected directly to a port on a
personal computer.
Most flash drives are active only when powered by
a USB computer connection, and require no other
external power source or battery power source.
May 12, 2014 10
USB flash drives
The internal components of a typical
flash drive
1 USB connector
2 USB mass storage controller device
3 Test points
4 Flash memory chip
5 Crystal oscillator
6 LED
7 Write-protect switch
8 Unpopulated space for second flash
memory chip
May 12, 2014 11
USB flash drives
The controller contains a small RISC
microprocessor and a small amount of on-chip
ROM and RAM.
Flash storage devices are best compared to other
common, portable, swappable data storage
devices: floppy disks, Zip disks, and CD-R/CD-RW
discs. 3.5 inch floppy disks and Iomega Zip disks.
May 12, 2014 12
USB flash drives
An obvious extension of flash memory would be as
a replacement for hard disks.
Flash memory does not have the mechanical limitations
and latencies of hard drives.
is attractive when considering speed, noise, power
consumption, and reliability
However, the cost per gigabyte of flash memory
remains significantly higher than that of platter-
based hard drives.
May 12, 2014 13
Magnetic Disk
A magnetic disk consists of one or more flat, circular platters
made of glass, metal, or plastic, and coated with a magnetic
substance similar to that used on cassette tape.
Substance used to be aluminium
Now glass
Improved surface uniformity
Increases reliability
Reduction in surface defects
Reduced read/write errors
Better shock/damage resistance
May 12, 2014 14
Magnetic Disk
There are two major types of magnetic disks, hard disks
and floppy disks or diskettes.
The design of a floppy disk limits the number of surfaces
to two, specifically the top and bottom of the single disk
platter within its diskette case.
Most hard disk drives contain several platters, all mounted
on the same axis, with heads on each surface of each
platter.
May 12, 2014 15
Magnetic Disk
The heads move in tandem, so they are positioned over the
same point on each surface.
With the head in a particular position, it traces out a circle
(track) on the disk surface as the disk rotates;
Since the heads on each surface all line up, the set of
tracks for all the surfaces form a cylinder.
Each track contains one or more blocks of data, which
commonly divided into equally sized pie shape segments
(sectors).
Each sector on a single track contains one block of data,
typically 512 bytes, and represents the smallest unit that
can be independently read or written.
May 12, 2014 16
Hard Disk Layout
May 12, 2014 17
Disk Data Layout
May 12, 2014 18
Disk Velocity
Bit near centre of rotating disk passes fixed point slower
than bit on outside of disk
Increase spacing between bits in different tracks
Rotate disk at constant angular velocity (CAV)
Gives pie shaped sectors and concentric tracks
Individual tracks and sectors addressable
Move head to given track and wait for given sector
Waste of space on outer tracks
Lower data density
Can use zones to increase capacity
Each zone has fixed bits per track
More complex circuitry
May 12, 2014 19
Disk Layout Methods Diagram
Multiple zone recording - A few high-density disks are designed
with a different number of sectors in different tracks. This
technique uses a constant speed motor but compensates for
different transfer speeds in the controller.
May 12, 2014 20
Finding Sectors
Must be able to identify start of track and sector
Format disk
Additional information not available to user
Marks tracks and sectors
May 12, 2014 21
Winchester Disk Format
Seagate ST506
May 12, 2014 22
Characteristics
Fixed (rare) or movable head
Removable or fixed
Single or double (usually) sided
Single or multiple platter
Head mechanism
Contact (Floppy)
Fixed gap
Flying (Winchester)
May 12, 2014 23
Fixed/Movable Head Disk
Fixed head
One read write head per track
Heads mounted on fixed ridged arm
Movable head
One read write head per side
Mounted on a movable arm
May 12, 2014 24
Removable or Not
Removable disk
Can be removed from drive and replaced with another
disk
Provides unlimited storage capacity
Easy data transfer between systems
Nonremovable disk
Permanently mounted in the drive
May 12, 2014 25
Multiple Platter
One head per side
Heads are joined and aligned
Aligned tracks on each platter form cylinders
Data is striped by cylinder
reduces head movement
Increases speed (transfer rate)
May 12, 2014 26
Multiple Platters
May 12, 2014 27
Tracks and Cylinders
Hard Disk
Hard disk drives are accessed over one of a
number of bus types:
Parallel ATA (PATA, also called IDE or EIDE),
Serial ATA (SATA),
SCSI,
Serial Attached SCSI (SAS), and
Fibre Channel.
Bridge circuitry is sometimes used to connect hard
disk drives to buses that they cannot communicate
with natively, such as IEEE 1394 and USB.
May 12, 2014 28
May 12, 2014 29
Floppy Disk
8, 5.25, 3.5
Small capacity
Up to 1.44Mbyte (2.88M never popular)
Slow
Universal
Cheap
Obsolete?
May 12, 2014 30
Floppy disks vs hard disks
A little difference between the operation of floppy
disks and hard disks, but the mechanical
differences have important effects on the overall
capacity, speed, data transfer rate, and reliability
of hard drives versus floppy disks.
Capacity: hard disk > a floppy disk
The heads on a hard disk do not touch the surface;
rather, they ride on a bed of air a few millionths of an
inch above the surface - allows the disk to rotate at high
speed and also allows the designers to locate the tracks
very close together. The result is a disk that can store
large amounts of data and that retrieves data quickly.
May 12, 2014 31
Floppy disks vs hard disks
Because the floppy disk is soft and flexible,
it is necessary to support the disk surface as data is
being read and written.
To do so, the disk is pinched lightly between two heads,
one on each surface of the disk.
As a result of this physical contact between the disk
surface and the heads, the disk must be rotated more
slowly, so as not to wear out the heads or scrape the
disk surface.
A typical hard disk rotates at 5400 revolutions per
minute (rpm), 7200rpm, or even 10,800rpm.
The floppy disk rotates at 360 rpm.
May 12, 2014 32
Winchester Hard Disk
Developed by IBM in Winchester (USA)
The entire assembly is sealed to prevent dirt
particles from wedging between the heads and the
disk platter.
One or more platters (disks)
Heads fly on boundary layer of air as disk spins
Very small head to disk gap
Getting more robust
May 12, 2014 33
Winchester Hard Disk
Universal
Cheap
Fastest external storage
Getting larger all the time
250 Gigabyte now easily available
May 12, 2014 34
Winchester Hard Disk
May 12, 2014 35
Speed
Seek time
The arm first moves the head from its present track until it is
over the desired track.
The average seek time is used as a specification for the disk.
Rotational latency (or rotational delay or latency time)
Once the head is located over the desired track, the read/write
operation must wait for the disk rotate to the beginning of the
correct sector.
Speed Rotational
ency AverageLat
1
*
2
1
1024
UXGA Ultra XGA is a de facto Truecolor standard. The
resolution:
1600
1200
WUXGA Widescreen Ultra Extended Graphics Array is a
version of the UXGA format. This display is becoming
popular in high end 15" and 17" widescreen notebook
computers. The resolution: 1920X1200.
May 12, 2014 67
Computer Display Standard
Video
standard
Description
WQXGA Widescreen Quad Extended Graphics Array is a version of
the XGA format. This display is becoming popular in some
recent desktop monitors. The resolution: 2560x1600.
WXGA Widescreen Extended Graphics Array is a version of the
XGA format. This display is becoming popular in some
recent notebook computers. The resolution: 1280x720.
WSXGA, or
WXGA+
Widescreen Extended Graphics Array PLUS is a version
of the WXGA format. This display aspect ratio is becoming
popular in some recent notebook computers. The
resolution: 1440x900.
May 12, 2014 68
Scanners
Primary used - to input paper images.
A device that analyzes an image or an object (such
as an ornament) and converts it to a digital image.
Scanners are generally less expensive and more
convenient.
3 primary types of scanners:
flatbed scanners,
sheet-fed scanners,
handheld scanners,
but all 3 work similarly and differ only in the way the scan
element is moved with respect to the paper.
May 12, 2014 69
Scanners
In a flatbed scanner, the paper is placed on a
glass window, while the scan element moves down
the page, much like a copy machine.
In a sheet-fed scanner, a single page of paper is
propelled through the mechanism with rollers; the
scan element is stationary.
Handheld scanners are propelled by the user over
the page.
May 12, 2014 70
Scanners
The scanning mechanism consists of a light source
and a row of light sensors.
As the light is reflected from individual points on the
page, it is received by the light sensors and translated
to digital signals that correspond to the brightness of
each point.
Color filters can be used to produce color images.
The resolution of scanners is approximately 600
2400 points per inch.
May 12, 2014 71
User Input Devices
Users use a variety of devices to interact with the
computer:
Text Input:
Keyboards (most popular) - consist of a number of
switches and a keyboard controller. The keyboard
controller is built into the keyboard itself.
Speech recognition.
Pointing devices:
Mouse- a handheld pointing device, designed to sit
under one hand of the user and to detect movement
relative to its two-dimensional supporting surface.
mechanical mouse
May 12, 2014 72
Pointing devices
Optical mouse uses a light-emitting diode and
photodiodes to detect the movement of the
underlying surface, rather than moving some of its
parts as in a mechanical mouse.
Laser mouse uses a small laser instead of a LED.
May 12, 2014 73
USER INPUT DEVICES
Operating a mechanical mouse.
1: Moving the mouse turns the ball.
2: X and Y rollers grip the ball and
transfer movement.
3: Optical encoding disks include
light holes.
4: Infrared LEDs shine through the
disks.
5: Sensors gather light pulses to
convert to X and Y velocities. .
May 12, 2014 74
Pointing devices
Joystick
Touch screen
Touchpad
Light pen- pointed at the screen to identify a
position on the screen. By moving the pen around
the screen, a cursor can be made to follow the
pen.
Graphics tablet.
May 12, 2014 75
Image, video and audio input devices
Image scanner
3D scanner
Digital camera
Webcam
Digital video recorder
Digital camcoder
Digital audio recorder
microphone
May 12, 2014 76
Communication Devices
Like other I/O devices, there is a network interface unit
(NIU) that handles the physical characteristics of the
connection and one or more I/O drivers that manage and
steer input data, output data, and interrupts.
The interface between a computer and a network is more
complicated than that for most other I/O peripherals.
Data must be formatted in specific ways to communicate
successfully with a wide range of application and system software
located on other computers.
The computer also must be able to address a large number of
devices individually, specifically, every other computer connected to
the network.
Security of communication is important.
May 12, 2014 77
Communication Devices
Most of these concerns are handled with protocol
software in the operating system.
The NIU is responsible only for:
the electrical signals that connect the computer to the
network, either directly or through a communication
channel, and
for the protocols, implemented in hardware, that define
the specific rules of communication for the network.
These protocols are called medium access control
protocols, or MACs.
May 12, 2014 78
Thank you