Chapter-2 (2)
Chapter-2 (2)
Computer
Hardware
PREPARED BY: SUSHANT BHATTARAI
Introduction 2
the three related terms that require introduction are computer architecture,
computer organization and computer design
Computer architecture refers to the structure and behavior of the
computer. It includes the specifications of the components, for example,
instruction format, instruction set and techniques for addressing memory,
and how they connect to the other components.
computer organization focuses on the organizational structure. It deals with
how the hardware components operate and the way they are connected
to form the computer system specifications.
computer design focuses on the hardware to be used and the
interconnection o f parts.
Introduction 3
Central Processing Unit (CPU) or the processor is also often called the brain
of computer.
It consists of Arithmetic Logic Unit (ALU) and Control Unit (CU). In addition,
CPU also has a set of registers which are temporary storage areas for
holding data, and instructions.
ALU performs the arithmetic and logic operations on the data that is made
available to it.
CU is responsible for organizing the processing of data and instructions. CU
controls and coordinates the activity of the other units of computer.
CPU uses the registers to store the data, instructions during processing.
Components of CPU 5
ALU
CU
Register unit
ALU 6
Registers are high-speed storage areas within the CPU, but have the least
storage capacity. Registers are not referenced by their address, but are
directly accessed and manipulated by the CPU during instruction
execution.
Registers store data, instructions, addresses and intermediate results of
processing.
Registers are often referred to as the CPU’s working memory.
The data and instructions that require processing must be brought in the
registers of CPU before they can be processed.
For example, if two numbers are to be added, both numbers are brought in
the registers, added and the result is also placed in a register.
Registers are used for different purposes, with each register serving a
specific purpose.
Register 8
Some of the important registers in CPU are:
Accumulator (ACC) stores the result of arithmetic and logic operations.
Instruction Register (IR) contains the current instruction most recently
fetched.
Program Counter (PC) contains the address of next instruction to be
processed.
Memory Address Register (MAR) contains the address of next location in the
memory to be accessed.
Memory Buffer Register (MBR) temporarily stores data from memory or the
data to be sent to memory.
Data Register (DR) stores the operands and any other data
Control Unit 9
The control unit of a computer does not do any actual processing of data. It
organizes the processing of data and instructions. It acts as a supervisor and,
controls and coordinates the activity of the other units of computer.
CU coordinates the input and output devices of a computer. It directs the
computer to carry out stored program instructions by communicating with the
ALU and the registers.
CU uses the instructions in the Instruction Register (IR) to decide which circuit
needs to be activated. It also instructs the ALU to perform the arithmetic or logic
operations.
When a program is run, the Program Counter (PC) register keeps track of the
program instruction to be executed next.
CU tells when to fetch the data and instructions, what to do, where to store the
results, the sequencing of events during processing etc.
CU also holds the CPU’s Instruction Set, which is a list of all operations that the CPU
can perform.
Memory Unit 10
The CPU has a built-in Level 1 (L1) cache and Level2 (L2) cache, as shown
in Figure.
In addition to the built-in L1 and L2 cache, some CPUs have a separate
cache chip on the motherboard. This cache on the motherboard is called
Level 3 (L3) cache.
Nowadays, high-end processor comes with built-in L3 cache, like in Intel
core i7. The L1, L2 and L3 cache store the most recently run instructions, the
next ones and the possible ones, respectively.
Typically, CPUs have cache size varying from 256KB (L1), 6 MB (L2), to 12MB
(L3) cache.
Cache memory is very expensive, so it is smaller in size. Generally,
computers have cache memory of sizes 256 KB to 2 MB.
Primary Memory 13
Primary memory is the main memory of computer. It is used to store data
and instructions during the processing of data. Primary memory is
semiconductor memory.
Primary memory is of two kinds—Random Access Memory (RAM) and Read
Only Memory (ROM).
RAM is volatile. It stores data when the computer is on. The information
stored in RAM gets erased when the computer is turned off. RAM provides
temporary storage for data and instructions.
ROM is non-volatile memory, but is a read only memory. The storage in ROM
is permanent in nature, and is used for storing standard processing
programs that permanently reside in the computer.
Secondary Memory 14
RISC has simple, single-cycle instructions, which performs only basic instructions.
RISC architecture does not have hardwired advanced functions.
RISC has fewer instructions and requires fewer transistors, which results in the
reduced manufacturing cost of processor.
The instruction size is fixed (32 bits). The processor need not spend time in finding
out where each instruction begins and ends.
RISC architecture has a reduced production cost compared to CISC processors.
The instructions, simple in nature, are executed in just one clock cycle, which
speeds up the program execution when compared to CISC processors.
RISC processors can handle multiple instructions simultaneously by processing
them in parallel.
Apple Mac G3 and PowerPC are based on RISC.
Pipelining 22
Bus is a set of electronic signal pathways that allows information and signals to travel
between components inside or outside of a computer.
The different components of computer, i.e., CPU, I/O unit, and memory unit are
connected with each other by a bus.
The data, instructions and the signals are carried between the different components
via a bus.
The features and functionality of a bus are as follows—
A bus is a set of wires used for interconnection, where each wire can carry one bit of data.
A bus width is defined by the number of wires in the bus.
The Internal Bus connects components inside the motherboard like, CPU and system
memory.
It is also called the System Bus. shows interaction between processor and memory.
The External Bus connects the different external devices, peripherals, expansion slots, I/O
ports and drive connections to the rest of computer.
Computer Bus 25
The functions of data bus, address bus and control bus, in the system bus,
are as follows—
Data Bus :
It transfers data between the CPU and memory.
The bus width of a data bus affects the speed of computer. The size of data bus
defines the size of the processor. A processor can be 8, 16, 32 or 64-bit processor.
An 8–bit processor has 8 wire data bus to carry 1 byte of data. In a 16–bit
processor, 16–wire bus can carry 16 bits of data, i.e., transfer 2 bytes, etc.
Interaction between CPU, memory and peripheral devices
System Bus 27
Address Bus
It connects CPU and RAM with set of wires similar to data bus.
The width of address bus determines the maximum number of memory
locations the computer can address.
Currently, Pentium Pro, II, III, IV have 36–bit address bus that can address
236 bytes or 64 GB of memory.
Control Bus specifies whether data is to be read or written to the memory,
etc.
Expansion Bus 28
The functions of data bus, address bus and control bus, in the expansion
bus, are as follows
The expansion bus connects external devices to the rest of computer. The
external devices like monitor, keyboard and printer connect to ports on the
back of computer.
These ports are actually a part of the small circuit board or expansion card
that fits into an expansion slot on the motherboard. Expansion slots are easy
to recognize on the motherboard.
Expansion slots make up a row of long plastic connectors at the back of the
computer with tiny copper ‘finger slots’ in a narrow channel that grab the
connectors on the expansion cards.
Expansion Bus 29
Data Bus is used to transfer data between I/O devices and CPU. The
exchange of data between CPU and I/O devices is according to the
industry standard data buses. The most commonly used standard is
Extended Industry Standard Architecture (EISA) which is a 32-bit bus
architecture. Some of the common bus technologies are
Peripheral Component Interconnect (PCI) bus for hard disks, sound cards,
network cards and graphics cards,
Accelerated Graphics Port (AGP) bus for 3–D and full motion video,
Universal Serial Bus (USB) to connect and disconnect different devices.
Address Bus carries the addresses of different I/O devices to be accessed
like the hard disk, CD ROM, etc.
Control Bus is used to carry read/write commands, status of I/O devices,
etc.
External Ports 30
The peripheral devices interact with the CPU of the computer via the bus.
The connections to the bus from the peripheral devices are made via the
ports and sockets provided at the sides of the computer.
The different ports and sockets facilitate the connection of different devices
to the computer.
Some of the standard port connections available on the outer sides of the
computer are port for mouse, keyboard, monitor, network, modem, and,
audio port, serial port, parallel port and USB port.
The different ports are physically identifiable by their different shapes, size of
contact pins and number of pins.
Components of a Computer 31
Cabinet
Computer Cabinet is the casing where the CPU resides.
There are various component that is inside this computer cabinet.
Some of them are listed below:
Motherboard:
The computer is built up around a motherboard. The motherboard is the most
important component in the PC. It is a large Printed Circuit Board (PCB), having
many chips, connectors and other electronics mounted on it.
The RAM, hard drive, disk drives and optical drives are all plugged into interfaces
on the motherboard. The motherboard contains the processor, memory chips,
interfaces and sockets, etc.
The motherboard may be characterized by the form factor, chipset and type of
processor socket used.
The Basic Input Output System (BIOS) and Complementary Metal-Oxide
Semiconductor (CMOS) are present on the motherboard.
Components of a Computer
32
Cabinet (Ports and Interface)
Motherboard has a certain number of I/O sockets that are connected to the ports and interfaces
found on the rear side of a computer.
We can connect external devices to the ports and interfaces, which get connected to the
computer’s motherboard.
Serial Port— to connect old peripherals.
Parallel Port— to connect old printers.
USB Ports—to connect newer peripherals like cameras, scanners and printers to the computer. It uses a thin
wire to connect to the devices, and many devices can share that wire simultaneously.
Firewire is another bus, used today mostly for video cameras and external hard drives.
RJ45 connector (called LAN or Ethernet port) is used to connect the computer to a network. It corresponds to a
network card integrated into the motherboard.
VGA connector for connecting a monitor. This connector interfaces with the built-in graphics card.
Audio plugs (line-in, line-out and microphone), for connecting sound speakers and the microphone. This
connector interfaces with the built-in sound card.
PS/2 port to connect mouse and keyboard into PC.
SCSI port for connecting the hard disk drives and network connectors.
Components of a Computer 33
Cabinet (Expansion Slots)
The expansion slots are located on the motherboard. The expansion cards
are inserted in the expansion slots. These cards give the computer new
features or increased performance. There are several types of slots:
ISA (Industry Standard Architecture) slot—To connect modem and input devices.
PCI (Peripheral Component Inter Connect) slot—To connect audio, video and
graphics . They are much faster than ISA cards.
AGP (Accelerated Graphic Port) slot—A fast port for a graphics card.
PCI (Peripheral Component Inter Connect) Express slot—Faster bus architecture
than AGP and PCI buses.
PC Card—It is used in laptop computers. It includes Wi-Fi card, network card and
external modem.
Components of a Computer 34
Cabinet
Memory Chip
The RAM consists of chips on a small circuit board . Two types of memory chips—
Single In-line Memory Module (SIMM) and Dual In-line Memory Module (DIMM)
are used in desktop computers.
The CPU can retrieve information from DIMM chip at 64 bits compared to 32 bits
or 16 bits transfer with SIMM chips.
DIMM chips are used in Pentium 4 onwards to increase the access speed.
Components of a Computer 35
Cabinet
Storage device
The disk drives are present inside the machine.
The common disk drives in a machine are hard disk drive, floppy drive and CD
drive or DVD drive.
High-storage devices like hard disk, floppy disk and CDs are inserted into the hard
disk drive, floppy drive and CD drive, respectively.
These storage devices can store large amounts of data, permanently.
Components of a Computer 36
Cabinet
Processor
The processor or the CPU is the main component of the computer.
Select a processor based on factors like its speed, performance, reliability and
motherboard support. Pentium Pro, Pentium 2 and Pentium 4 are some of the
processors.
Computer Memory(Introduction) 37
Cache memory is next in the hierarchy and is placed between the CPU and the
main memory. The speed of cache is between 2-10 ns. The cache size varies
between 32 KB to 4MB
Any program or data that has to be executed must be brought into RAM from
the secondary memory. Primary memory is relatively slower than the cache
memory.
Secondary Memory—The key features of secondary memory storage devices are
very high storage capacity
permanent storage (non-volatile), unless erased by user
relatively slower access
stores data and instructions that are not currently being used by CPU but may be
required later for processing
cheapest among all memory
Memory Hierarchy 43
Registers are very high-speed storage areas located inside the CPU.
After CPU gets the data and instructions from the cache or RAM, the data
and instructions are moved to the registers for processing.
Registers are manipulated directly by the control unit of CPU during
instruction execution. That is why registers are often referred to as the CPU’s
working memory.
Since CPU uses registers for the processing of data, the number of registers
in a CPU and the size of each register affect the power and speed of a
CPU.
Cache Memory 45
Cache memory is placed in between the CPU and the RAM. Cache
memory is a fast memory, faster than the RAM.
When the CPU needs an instruction or data during processing, it first looks in
the cache. If the information is present in the cache, it is called a cache hit,
and the data or instruction is retrieved from the cache.
If the information is not present in cache, then it is called a cache miss and
the information is then retrieved from RAM.
The content of cache is decided by the cache controller (a circuit on the
motherboard). The most recently accessed information or instructions help
the controller to guess the RAM locations that may be accessed next.
To get good system performance, the number of hits must far outnumber
the misses. The two main factors that affect the performance of cache are
its size and level (L1, L2 and L3).
Primary Memory 46
RAM is used to store data and instructions during the operation of computer.
The data and instructions that need to be operated upon by CPU are first brought to
RAM from the secondary storage devices like the hard disk.
CPU interacts with RAM to get the data and instructions for processing.
RAM loses information when the computer is powered off. It is a volatile
memory.
When the power is turned on, again, all files that are required by the CPU are
loaded from the hard disk to RAM.
Since RAM is a volatile memory, any information that needs to be saved for a
longer duration of time must not be stored in RAM.
RAM can be read from and written to with the same speed.
RAM affects the speed and power of a computer. More the RAM, the better it is.
RAM 48
DRAM is the most common type of memory chip. DRAM is mostly used as
main memory since it is small and cheap.
It uses transistors and capacitors. The transistors are arranged in a matrix of
rows and columns. The capacitor holds the bit of information 0 and 1. The
transistor and capacitor are paired to make a memory cell.
DRAM must be refreshed continually to store information.
DRAM gets its name from the refresh operation that it requires to store the
information; otherwise it will lose what it is holding.
The refresh operation occurs automatically thousands of times per second.
DRAM is slow because the refreshing takes time.
Access speed of DRAM ranges from 50 to 150 ns.
SRAM 50
SRAM chip is usually used in cache memory due to its high speed.
SRAM uses multiple transistors (four to six), for each memory cell. It does not
have a capacitor in each cell.
A SRAM memory cell has more parts so it takes more space on a chip than
DRAM cell.
It does not need constant refreshing and therefore is faster than DRAM.
SRAM is more expensive than DRAM, and it takes up more space.
It stores information as long as it is supplied with power.
SRAM are easier to use and very fast. The access speed of SRAM ranges
from 2– 10 nanosecond.
ROM 51
ROM is a non-volatile primary memory. It does not lose its content when the
power is switched off.
ROM has only read capability and no write capability. After the information
is stored in ROM, it is permanent and cannot be corrected.
ROM comes programmed by the manufacturer. It stores standard
processing programs that permanently reside in the computer. ROM stores
the data needed for the start up of the computer.
The instructions that are required for initializing the devices attached to a
computer are stored in ROM.
The ROM memory chip stores the Basic Input Output System (BIOS). BIOS
provides the processor with the information required to boot the system.
ROM 52
ROMs are of different kinds. They have evolved from the fixed read only
memory to the ones that can be programmed and re-programmed.
They vary in the number of re-writes and the method used for the re-writing.
Variants of ROM are:
PROM(Programmable ROM): can be programmed with a special tool, but
after it has been programmed the contents cannot be changed. PROM
memories have thousands of fuses (or diodes).
EPROM(Erasable Programmable ROM): can be programmed in a similar
way as PROM, but it can be erased by exposing it to ultra violet light and re-
programmed. EPROM chips have to be removed from the computer for re-
writing.
EEPROM(Electrically Erasable Programmable ROM): memories can be
erased by electric charge and re-programmed. EEPROM chips do not have
to be removed from the computer for re-writing.
Flash Memory
It is a kind of semiconductor-based non-volatile, rewritable computer 53
memory that can be electrically erased and reprogrammed.
It is a specific type of EEPROM.
Flash memories are high-speed memories, durable, and have low-energy
consumption. Since flash memory has no moving part, it is very shock-
resistant.
Due to these features, flash memory is used in devices such as digital
camera, mobile phone, printer, laptop computer, and record and play
back sound devices, such as MP3 players.
Secondary Memory 54
Sequential access means that computer must run through the data in
sequence, starting from the beginning, in order to locate a particular piece
of data.
Magnetic tape is an example of sequential access device.
Direct Access/Random Access 57
Direct access devices are the ones in which any piece of data can be
retrieved in a non-sequential manner by locating it using the data’s
address.
It accesses the data directly, from a desired location.
Magnetic disks and optical disks are examples of direct access devices.
There is no predefined order in which one can read and write data from a
direct access device.
Magnetic Tape
Magnetic tape is a plastic tape with magnetic coating .
58
It is a storage medium on a large open reel or in a smaller cartridge or
cassette (like a music cassette).
Magnetic tapes are cheaper storage media. They are durable, can be
written, erased, and re-written.
Magnetic tapes are sequential access devices, which mean that the tape
needs to rewind or move forward to the location where the requested data
is positioned in the magnetic tape.
Due to their sequential nature, magnetic tapes are not suitable for data files
that need to be revised or updated often.
They are generally used to store back-up data that is not frequently used or
to transfer data from one system to other.
Magnetic Tape 59
Floppy disk (FD) is a flat, round, single disk made of Mylar plastic and enclosed in
square plastic jacket
Floppy Disk Drive (FDD) is the disk drive for floppy disk.
The floppy disk is inserted into the floppy disk drive to read or write data to it.
Floppy disk has a write-protect slide tab that prevents a user from writing to it.
A floppy disk may be single-sided or double-sided disk, i.e., data can be read
and written on one and both sides of floppy disk, respectively.
They are portable. They can be removed from the disk drive, carried or stored
separately.
Floppy Disk 63
The input unit gets the data and programs from various input devices and
makes them available for processing to other units of the computer.
The input data is provided through input devices, such as:-keyboard,
mouse, trackball, joystick, scanning images, voice recording, video
recording, etc.
All input devices must translate the input data into a form that is
understandable by the computer, i.e., in machine readable form.
The transformation of the input data to machine readable form is done by
the input interface of input device.
Output Unit 69
The output unit gets the processed data from the computer and sends it to
output devices to make them available to the user of computer.
The output data is provided through output devices like display screen,
printer, plotter and speaker.
The processed data sent to the output device is in a machine
understandable form.
This processed data is converted to human readable form by the output
interface of output device.
Input Devices
Input devices allow users and other applications to input data into the computer, for
70
processing.
The data input to a computer can be in the form of text, audio, video, etc. users
working in an office.
The data is entered manually by the user or with minimal user intervention.
Input devices are classified as follows
Human data entry devices
Keyboard
Pointing devices—mouse, trackball, joystick, digitizing tablet
Pick devices—light pen, touch screen
Source data entry devices
Audio input—speech recognition
Video input—digital camera
Scanner—hand-held scanner, flat-bed scanner
Optical Scanner—OCR, OMR, MICR, barcode reader
Human Data Entry Device- 71
Keyboard
Keyboard is a common input device. It is provided along with the
computer, and is easy to use.
It is used for entering the text data. For inputting the data, the user types the
data using the keyboard.
When the data is being typed, the display monitor displays the typed data.
Cursor is a vertical line, an underscore, blinking line, etc. Cursor moves with
each typed character.
The position of cursor indicates the location on monitor where the typed-in
character will be displayed.
Keyboard 72
Pointing devices are used for providing the input to computer by moving
the device to point to a location on computer monitor.
The input data is not typed; instead, the data is entered by moving the
pointing device.
The cursor on the computer monitor moves with the moving pointing
device.
Operations like move, click and drag can be performed using the pointing
devices.
Mouse, trackball, joystick and digitizing tablet are some of the common
pointing devices.
Mouse 75
In a physical mouse, rollers and sensors are used to sense the direction and
rate of movement of mouse.
When the ball of mouse moves, the rollers sense the horizontal and vertical
movement and sensors sense the speed of movement.
This information is passed to computer via the mouse chord. When an
optical mouse is moved, a beam of light is reflected from its underside.
These pulses of light determine the direction and rate of movement. This
information is sent to computer via the mouse chord
Trackball 78
Trackball is a device that is a variant of the mouse but has the functionality
of mouse.
It is easy to use and takes less space than a mouse. Trackball is generally
built in laptops since there is no space for the mouse to move on the lap.
Trackballs come in various sizes small and big.
Trackball looks like an upside-down mouse. Instead of moving the whole
device to move the cursor on computer screen, trackball requires the ball
to be rotated manually with a finger.
The trackball device remains stationary.
The cursor on the computer screen moves in the direction in which the ball
is moved.
The buttons on trackball are used in the same way as mouse buttons.
Joystick 79
Joystick is a device which is commonly used for playing video games.
Joystick is mainly used to control the speed of the cursor and is thus popular
in games involving speed like racing and flying games.
The direction of push of the stick and the amount of deflection determines
the change in position and the change in speed, respectively.
It is a stick with its base attached to a flexible rubber sheath inside a plastic
cover.
The plastic cover contains the circuit that detects the movement of stick
and sends the information to computer.
The position of the stick movement is given by the x and y coordinates of
the stick.
Digitizing Tablet
It is an input device used primarily to input drawings, sketches, etc. 80
Digitizing tablet is used for Computer Aided Design (CAD) for the design of buildings, automotive
designs, and designing of maps, etc.
Digitizing tablet consists of two parts electronic tablet and pen.
The electronic tablet is a flat bed tablet. The pen looks like a ball pen but has an electronic head.
The pen in moved on the tablet. Each position on the tablet corresponds to a fixed position on the
screen.
Drawings can be made on the tablet using a pen, and is provided as input to computer, where, a
location on the tablet corresponds to a specific location on the screen.
The tablet contains circuit that can detect the movement of pen on the tablet, convert the
movements into digital signals and send the digital signal to the computer.
Pick Devices 81
Pick devices are used for providing input to the computer by pointing to a
location on the computer monitor.
The input data is not typed, the data is entered by pointing the pick device
directly on the computer screen.
Light pen and touch screen are some common pick devices.
Light Pen 82
It is an input device that accepts input when the user places a fingertip on
the computer screen.
The computer selects the option from the menu of screen to which the
finger points.
Touch screen are generally used in applications like Automated Teller
Machine (ATM), public information computers like hospitals, airline
reservation, railway reservation, supermarkets, etc.
Touch screen consists of a clear glass panel that is placed over the view
area of computer screen.
In addition to the glass panel with sensors, it has a device driver, and a
controller that translates the information captured by the glass panel
sensors to a form that the computer can understand.
Touchscreen 84
Touch screens have an infrared beam that criss-cross the surface of screen.
When a fingertip is touched on the screen, the beam is broken, and the
location is recorded.
Some touch screens have ultrasonic acoustic waves that cross the surface
of screen.
When a fingertip is touched on the screen, the wave is interrupted, and the
location is recorded.
The recorded location is sent to the computer via the controller of touch
screen, in a form that the computer can understand.
Source Data Entry Devices-Audio
85
Input Device
Audio input can be provided to the computer using human voice or speech.
Audio input to the computer can be used for different purposes.
It can be used for making telephone calls, for audio and video conferencing over
Internet, to record voice, to create audio files and embed these files to be sent over e-
mail, or, to translate spoken words into text, etc.
Audio input devices like a microphone is used to input a person’s voice into the
computer. A sound card translates analog audio signals from microphone into digital
codes that the computer can store and process.
Sound card also translates back the digital sound into analog signals that can be sent to
the speakers.
Translating spoken words into text is also known as speech recognition or voice
recognition.
The audio input along with the software for voice recognition forms the speech
recognition system or voice recognition system.
Source Data Entry Devices-Audio 86
Input Device
The computer can be operated using voice commands.
The user can dictate the commands to the computer, instead of typing
them.
The computer has to be trained to recognize the voice of user using the
speech patterns and pronunciation of words.
The system thus adapts to the voice of user. Speech recognition systems are
costly and difficult to develop.
They are generally used by people who have difficulty in typing, people
with disabilities or by corporate world for dictation.
Audio input can be recorded on an mp3 recorder and provided as an
input to computer.
Video input devices-Digital 87
Fig:OCR system
MICR(Magnetic Ink Character
94
Recognition)
MICR is used in banks to process large volumes of cheques.
It is used for recognizing the magnetic encoding numbers printed at the bottom of a cheque. The
numbers on the cheque are human readable, and are printed using an ink which contains iron particles.
These numbers are magnetized. MICR uses magnetic ink character reader for character recognition.
When a cheque is passed through Magnetic Ink Character Reader, the magnetic field causes the read
head to recognize the characters or numbers of cheque. The readers are generally used in banks to
process the cheques.
The numbers in the bottom of the cheque include the bank number, branch number and cheque
number. The reading speed of MICR is faster than OCR.
Optical Mark Recognition(OMR) 95
OMR is used to detect marks on a paper. The marks are recognized by their
darkness. OMR uses an optical mark reader to read the marks.
The OMR reader scans the forms, detects the mark that is positioned
correctly on the paper and is darker than the surrounding paper, and
passes this information to the computer for processing by application
software.
For this, it uses a beam of light that is reflected on the paper with marks, to
capture presence and absence of marks.
The optical mark reader detects the presence of mark by measuring the
reflected light.
The pattern of marks is interpreted and stored in the computer.
OMR is widely used to read answers of objective type tests, where the
student marks an answer by darkening a particular circle using a pencil.
OMR is also used to read forms, questionnaires, order forms, etc.
OMR 96
Barcode Reader 97
Barcodes are adjacent vertical lines of different width that are machine
readable. Goods available at supermarkets, books, etc. use barcode for
identification.
Barcodes are read using reflective light by barcode readers.
This information is input to the computer which interprets the code using the
spacing and thickness of bars.
Hand-held barcode readers are generally used in departmental stores to
read the labels, and in libraries to read labels on books.
Barcode readers are fast and accurate. They enable faster service to the
customer and are also used to determine the items being sold, number of
each item sold or to retrieve the price of item.
Output Devices
Output devices provide output to the user, which is generated after processing the 98
input data.
The processed data, presented to the user via the output devices could be text,
graphics, audio or video.
The output could be on a paper or on a film in a tangible form, or, in an intangible form
as audio, video and electronic form. Output devices are classified as follows:
Hard Copy Devices
Printer
Plotter
Computer Output on Microfilm (microfiche)
Soft Copy Devices
Monitor
Visual Display Terminal
Video Output
Audio Response
Hard Copy Devices 99
A printer prints the output information from the computer onto a paper.
Printers are generally used to print textual information, but nowadays
printers also print graphical information.
The print quality (sharpness and clarity of print) of the printer is determined
by the resolution of the printer. Resolution is measured in dots per inch (dpi).
Printers with a high resolution (more dpi) provide better quality output.
Different kinds of printers are available for different types of applications.
Printers are classified into two categories
Impact Printer
Non-Impact Printer
Impact Printer 101
Non-Impact Printers do not hit or impact a ribbon to print. They use electro-
static chemicals and ink-jet technologies.
Non-impact printers are faster and quieter than impact printers.
They produce high quality output and can be used for printing text and
graphics both in black and white, and color.
Ink-jet printers and laser printers are non-impact printers.
Ink-jet Printer 107
Ink-jet Printers spray ink drops directly on the paper like a jet.
Their resolution is more than 500 dpi.
They produce high quality graphics and text.
Ink-jet printers are commonly found in homes and offices.
Laser Printer
Laser Printers provide highest quality of text and graphics 108
printing.
Laser printers process and store the entire page before
printing and are also known as page printers.
The laser printer can print 5–24 pages of text per minute and
their resolution ranges from 400 to 1200 dpi.
They are faster and expensive than impact printers.
Laser printers are used in applications requiring high quality
voluminous printing.
Plotter
A plotter is used for vector graphics output to draw graphs, maps, 109
blueprints of ships, buildings, etc.
Plotters use pens of different colors (cyan, magenta, yellow and
black) for drawing.
Plotters draw continuous and accurate lines, in contrast to printers
where a line is drawn as closely spaced dots.
Plotter is a slow output device and is expensive.
Plotters are of two kinds—drum plotter and flatbed plotter.
Plotters are mainly used for drawings in AUTOCAD (computer
assisted drafting), Computer Aided Design (CAD) and Computer
Aided Manufacturing (CAM) applications.
Computer output in microfilm
A microfilm is in a fiche or roll format, and is used to record 110
computer output directly from the computer tape or cartridge.
Computer Output on Microfilm (COM) is a high speed and low
cost process.
It can produce data in microfilm form at a much faster speed from
that of a paper printer.
The standard roll film is 16 mm wide with a film image that is 1/24 of
the original document. The copy of the image on microfilm retains
its original clarity.
Microfilm can be indexed to facilitate retrieving information from
it.
For reading images stored on microfilm, a microfilm reader is used.
A screen is used for viewing the enlarged images. COM is suited
for storing large amounts of data for manuals and archive records
for long periods of time that have to be referenced occasionally.
COM is used for storing output in banking and insurance
applications, medical X rays, etc.
Soft Copy output devices 111
Monitor is a common output device. The monitor is provided along with the
computer, to view the displayed output.
A monitor is of two kinds - monochrome display monitor and color display
monitor.
A monochrome display monitor uses only one color to display text and color
display monitor can display 256 colors at one time.
The number of colors displayed by a color monitor varies with the kind of
color adapter attached to it—CGA, EGA, VGA, XGA and SVGA.
Monitors are available in various sizes like 14, 15, 17, 19 and 21 inches.
Monitor 113
An image on the monitor is created by a configuration of dots, also known
as pixels. The clarity of image on the computer screen depends on three
factors
Resolution of Screen:-the number of pixels in horizontal and vertical
direction. More the number of pixels, the sharper is the image. The common
resolution of computer screen is 800x600 and 1024x768
Dot Pitch:-the diagonal distance between two colored pixels on a display
screen, and
Refresh Rate:-the number of times per second the pixels are recharged so Fig: LED monitor
that their glow remains bright.
Parallel Port :
A parallel port is an interface for connecting eight or more data wires.
The data flows through the eight wires simultaneously.
They can transmit eight bits of data in parallel. As a result, parallel ports provide high
speed data transmission.
Parallel port is used to connect printer to the computer.
Serial Port:
A serial port transmits one bit of data through a single wire.
Since data is transmitted serially as single bits, serial ports provide slow speed data
transmission. Serial port is used to connect external modems, plotters, barcode reader ,
etc.
Input/Output Port 119
USB Port:
USB is a common and popular external port available with computers. Normally, two to
four USB ports are provided on a PC.
USB allows different devices to be connected to the computer without requiring re-boot
of the computer.
USB also has the plug and play feature which allows devices ready to be run simply by
plugging them to the USB port.
A single USB port can support connection of up to 127 devices.
Firewire (IEEE 1394):
It is used to connect audio and video multimedia devices like video camera.
It is an expensive technology and is used for large data movement. Hard disk drive and
new DVD drives connect through firewire.
It has data transfer rate of up to 400 MB/sec. In addition to the above ports, other ports
also exist like Musical Instrument Digital Interface (MIDI) port to connect musical
instruments like synthesizers and drum machines, PC expansion boards, and PC card
and many more
Input/Output Port 120
I/O system 121
The working of I/O system combines I/O hardware and I/O software.
The I/O hardware includes ports, buses and device controllers for different
devices, and I/O devices.
The I/O software is the device driver software that may be embedded with
operating system or comes with each device. The working of I/O system is
described as follows
I/O Devices:
They are attached to computer via the ports of computer.
There are many standard ports available on the backside of the computer case
like serial port and parallel port.
If one or more devices use a common set of wires, it is called a bus. For example,
PCI bus, PCI Express bus, etc.
I/O system
Device Controller: 122
It operates on a bus, a port or a device. It controls the signals on the wires of port or bus.
The controllers have one or more registers for data and control signals.
Controller may be simple like a serial port controller for a serial port, or, complex like a
SCSI controller. Some devices have their own built-in controllers.
Device Driver:
It is software via which the operating system communicates with the device controllers.
Each device has its own device driver, and a device controller which is specific to the
device.
The device drivers hide the differences among the different device controller and
present a uniform interface to the operating system.
Application programs:
It is used an I/O device by issuing commands and exchanging data with the device
driver. The device driver provides correct commands to the controller, interprets the
controller register, and transfers data to and from device controller registers as required
for the correct device operation.