Computer Hardware
Computer Hardware
Computer Hardware
Computer hardware refers to the tangible parts of a computers system. It includes all physical
components of the computer. Examples of computer hardware include the keyboard, disk drive,
monitor, central processing unit (CPU), memory and other peripherals like a mouse.
Understanding the various physical components of a computer system will help one understand
how a computer system operates as a whole.
Computer organization
A basic computer consists of three major components: CPU (Central Processing Unit), IO
(Input/Output), and Memory. Figure 2-1 below illustrates how a computer is organized:
Data is entered into the computer via the Input and the CPU processes the data based on a
programs which are in the computer Memory. The result is then returned to the Memory for
storage or is presented to the user via the output devices. CPU itself consists of Arithmetic and
Logic Unit (ALU), Control Unit (CU) and Registers.
Computer Peripherals
Computer peripherals performs basically two broad functions; inputting data into the computer
and outputting information from the computer. Those peripherals used for inputting are called
input devices and those used for outputting are called output devices.
Input Devices
Data input devices are user-machine interfacing devices whose role is to collect data from the
source, encode data from human readable form to machine-readable form and transmitting the
data to the computer processor. Therefore, Input devices are peripherals that feed a computer
system. They are broadly categorized into the following:
a) Offline input devices
b) Online input devices
c) Direct input devices
Key to disk
In this structure data is collected, encoded and stored on a magnetic disk. This system comprises
of workstation, encoder, fixed disk and a magnetic disk drive. An operator keys in data at the
work station from a source document and then verification is carried out by the use of visual
checking method. A computer validation program carries out validation checks on the keyed
data. Any error detected can be reported to the operator for correction and a valid data is written
to the disk from where it is fed to the computer system.
Advantages of the key-to-disk
Data can easily be checked for errors at the preparation stage
Costs are reduced because the basic validation needs not be done on more expensive
mainframe computers.
Disadvantages of key-to-disk
High initial cost thus high volumes of data are needed to justify its use.
Slow in the sense that a lot of time is taken before data is passed for processing
Key to optical disk
This is a newest offline input device. This system uses the latest technology to store data items
on an optical media for instance CD-ROM, WORM,DVD-ROM etc. This structure involves the
keyboard, optical and an optical media.
Online input devices
They are also referred to as keyboard input devices. In this input system data is collected
automatically, encoded and stored on an online storage system. All the system operations on this
device are guided by an operating system. In the keyboard entry, a user types characters, numeric
and special symbols using a keyboard. Examples of online input devices include keyboard and
terminals.
a. Keyboard
A keyboard is a device used to encode data by key depression, which enters information into a
system. The keyboard converts alphabets and numbers, and other special symbols into electrical
signals that processor can understand and process. These signals are sent to the computer's CPU.
Some specialist keyboards have extra function keys that perform special actions when pressed.
Dvorak: This is another keyboard layout modified greatly from a standard layout. The
keyboard is devised to increase typing speed by placing frequently used keys more naturally.
In the past, mechanical jams were a problem in typing. Thus, the standard keyboard layout
was designed to limit typing speed.
b. Terminals
A terminal is an input/output device that usually includes a keyboard for input, a video display
for output, and a communications link to send and receive information. There are three different
types:
Dumb Terminal: This is an input/output terminal that does not have a capability of
processing. It only enters and receives data without processing.
Smart Terminal: This terminal has some processing capability. It has a small memory. It
performs some editing of data before sending them to a main computer.
Intelligent Terminal: This is a terminal that has a full processing capability. The terminal
has a processing unit, primary storage. It may or may not have local storage. Recently, most
intelligent terminals have local disk. An intelligent terminal is actually a microcomputer with
communications capability.
Direct Input Devices
Direct input is a data entry form that does not use a keyboard to input data. Today, more data and
instructions are entered a CPU of microcomputers directly using direct input devices used to
provide a more natural user interface. These entry devices reduce ' typing errors. There are many
forms of direct input devices: Mouse, Touchpad, Touch screen, stylus, Light Pen, Graphics
Tablet/digitizer, Scanner, Bar-code readers, fax, Voice-Input Devices.
a. Mouse
A mouse is the most widely used pointing device on personal computers. With the rise in
graphical user interfaces, mouse became the most commonly used method in controlling a
computer. A mouse is used to manipulate objects and text etc. on the computer screen. This
device can be plugged into the back of a computer, the back of a keyboard, or can even be
cordless.
There are three types of mouse:
1. A mechanical mouse has a rubber ball on its underside to detect movement of the mouse
2. An optical mouse uses devices that emit and sense light to detect the mouse's movement.
3. A cordless mouse (either mechanical or optical) transmits data using wireless technology
such as radio waves or infrared light waves.
i). Mechanical mouse
An example of a mechanical mouse is the Ball Mouse shown in figure 2-6 below.
Figure 2-8: An Iphone uses a glass capacitative touch screen to handle input
c. Stylus
Figure: 2-9 Styli Pens
A Stylus is a small pen-like device used to enter data by reacting to a touch-sensitive screen or
film. It is commonly used on a graphics tablet which is a flat, rectangular, electronic plastic
board, on which a stylus writes or draws. Styli allow a user to input handwriting specific pieces
of information like signatures. One important feature of a stylus is its tip which ideally is made
of a firm but non-scratching form of plastic. The body of a stylus can be made from anything
ranging from synthetic plastic to bronze or chrome in some situations. Stylus and graphics tablet
are mainly used for computer-aided design and drafting by architects, mapmakers, artists, and
designers. They are also used with many popular devices like Blackberries, Palm Pilots and
Trios. Their popularity has reached a point where some company's offer conversion kits to
change high-end or ergonomic writing pens into a stylus.
Advantage of stylus
A stylus can be pointed to different positions on the tablet quickly.
Disadvantage of stylus
A stylus and a graphics tablet normally has to work together, and cannot work separately
d. Light Pen
Light pen is a pointing device detects the presence of light and it looks like a pen connected to
the computer the user can bring the pen to whichever location on the screen they want.
It is therefore a computer input device, with a light sensitive wand which works with Cathode
Ray Tube (CRT) monitors. Light pens are commonly used by health care professionals (such as
doctors and dentists) and design work.
They were used in engineering, graphic design and illustrating but light pens have been replaced
by other technologies.
Advantages of light pens
Using a light pen is more direct and precise than using a mouse.
Light pen is also convenient for applications with limited desktop space.
Disadvantage of light pens
Light pens normally require a specially designed monitor to work with.
e. Digitizer
A digitizer is a "pointing" technology implemented on computer tablets. It consists of the
"tablet", an electronically integrated surface representative (to the computer) of an XY-axis grid.
Using the electronic stylus (pen), the tablet will detect the stylus' movements and convert it into
digital signals for the computer to use. A digitizing tablet is commonly used in the engineering
and architectural industries as well as for fine and commercial art.
f. Scanner
A scanner is a device that uses light to read an image or text and turn it into a digital message.
This media can then be used to store, change and send the image or text. There are various types
of scanners. The three most common are Drum, flatbed and hand.
i. Drum scanners also referred to as a sheet feed scanner has motorized rollers
(photomultiplier tubes (PMT)) that can feed the source document across the scanning
head during the scanning process.
ii. A flatbed scanner works like a copy machine except that it creates a file of the document
rather than a paper copy. It uses a glass pane and a bright light.
iii. Hand scanners are dragged across the image manually.
The quality of a scanner is determined by its optical resolution and colour depth. Enhanced
resolution or interpolated resolution uses a special formula to add pixels between those generated
by the optical resolution.
Scanners are mainly used for image processing, which consists of capturing, storing, analyzing,
displaying, printing, and manipulating images. Many scanners also include optical character
recognition (OCR) software, which can convert an image of text into a text file that can be
edited.
Advantages of a scanner
A scanner with appropriate OCR software can work as an OCR system.
Disadvantages of a scanner
A scanner is best for two-dimensional objects only.
Scanned images usually take up a lot of storage space.
g. Bar-Code and bar-code reader
A bar code is a series of stripes that vary in thickness. These stripes represent numbers, which a
computer reads as data. Bar codes are printed on products that are sold in retail, as well as postal
service packages, rental videos etc. A bar code reader which uses laser beams is used to read bar
codes. A bar code reader reads a bar code by using light patterns that pass through the bar code
lines. Bar code readers are widely used in supermarkets, department stores, libraries, etc. With
the introduction of Wifi enabled smartphones with cameras, barcodes can be scanned on
products and matched to an online database which allows someone to compare prices between
various retail stores without having to visit each one. Another use of this combination is finding
the nutritional content of a consumable product by scanning its barcode.
Advantages of using bar codes and bar code readers
The process of data entry is fast and accurate.
Bar codes can be printed by normal printing methods.
No need to write down or key in the name of the item or its actual price.
Output Devices
An output device is any peripheral device that converts machine-readable information into
people-readable form such as a monitor, printer, plotter and voice output device.
a. Computer Display (Monitors)
A computer display (monitor) is also called a display screen or video display terminal (VDT). A
monitor is a screen used to display the output of a computer. Images are represented on monitors
by individual dots called pixels. A pixel is the smallest unit on the screen that can be turned on
and off or made to be of different shades. The pixels therefore influence on the clarity of the
images and the screen resolution.
Screen resolution is the degree of sharpness of a displayed character or image. The amount of
pixels and the size of the monitor can determine how sharp the picture is. The screen resolution
is usually expressed as the number of columns by the number rows. A 1024x768 resolution
means that it has 1024 dots in a line and 768 lines. The effect of this is that, a smaller screen
looks sharper on the same resolution compared to a bigger screen. Thus, the more pixels you
have the better the display will be.
Other measures of display resolution are dot pitch and refresh rate. A dot pitch (sometimes
called line pitch, stripe pitch, phosphor pitch, or pixel pitch) is a specification for a computer
display, computer printer, image scanner or other pixel-based device that describes the distance,
for example, between dots (sub-pixels) of the same color on the inside of a display screen. In the
case of a color display, dot pitch is a measure of the size of a triad plus the distance between the
triads. Dot pitch may be measured in linear units, usually millimeters, with a smaller number
meaning closer spacing, or in dots per linear unit, for example dots per inch, with a larger
number meaning closer spacing. Closer spacing generally produces a sharper image (as there are
more pixels in a given area).
Refresh rate refers to the number of times the image on a monitor (screen) is redrawn each
second. Essentially, it is the number of times per second that the pixels are recharged so that their
glow remains bright. If the refresh rate is higher, the image on the screen will look more solid
and flicker less. Typically, most screens have a refresh rate of between 56-120 times per second.
An interlaced technique is used to refresh the line of the screen by exposing all odd lines first
then all even lines next. A non-interlaced technology that was developed later refreshes all the
lines on the screen from top to bottom. The non- interlaced method gives more stable video
display than interlaced method. It also requires twice as much signal information as interlaced
technology.
There are two forms of display: cathode-ray tubes (CRTs) and flat-panel display.
i. Cathode Ray Tubes (CRT)
A CRT is a vacuum tube used as a display screen for a computer output device. Although the
CRT means only a tube, it usually refers to all monitors. Examples of CRT include:
a. Monochrome Monitors
A monochrome monitor has two colours, one for foreground and the other for background. The
colours can be white, amber or green on a dark (black) background. The monochrome monitors
display both text and graphics modes.
b. Colour Monitors
A color monitor is a display peripheral that displays more than two colours. Colour monitors
have been developed through the following paths.
CGA: This stands for Colour Graphics Adapter. It is a circuit board introduced by IBM and
the first graphics standard for the IBM PC. With a CGA monitor, it is harder to read than
with a monochrome monitor, because the CGA (320 X 200) has much fewer pixels than the
monochrome monitor (640 X 350). It supports 4 colors.
EGA: It stands for Enhanced Graphics Adapter. EGA is a video display standard that has a
resolution of 640 by 350 pixels and supports 16 colors. EGA supports previous display
modes and requires a new monitor.
VGA: VGA stands for Video Graphics Array. This is a video display standard that provides
medium to high resolution. In a text mode, the resolution of this board is 720 by 400 pixels.
It supports 16 colors with a higher resolution of 640 by 480 pixels and 256 colors with 320 X
200 pixels.
Super VGA: This is a very high resolution standard that displays up to 65,536 colors. Super
VGA can support 16.8 million colors at 800 by 600 pixels and 256 colors at 1024 by 768
pixels. A high-priced super VGA allows 1280 by 1024 pixels. Larger monitors (17" or 21"
and larger) with a high resolution of 1600 by 1280 pixels are available. VESA (Video
Electronics Standards Association) has set a standard for super VGA.
In the colour monitor the Colour depth also called bit depth plays an important role. The coluor
depth is the number of bits used to represent the colour of a single pixel in a bitmapped image or
video frame buffer. This concept is also known as bits per pixel (BPP), particularly when
specified along with the number of bits used. Higher colour depth gives a broader range of
distinct colours. 1 byte can produce 256 colours. Usually 2 or 3 bytes are used in images stored
as photographs.
c. Plotters
A plotter is a special-purpose output device that draws images with ink pens. That is, the plotter
is a graphics printer for making sophisticated graphs, charts, maps, and three-dimensional
graphics as well as high-quality colored documents. It can also produce larger size of documents.
Plotters require data in a vector graphics format that can produce images with a series of lines.
Vector graphics could be considered as points, lines, curves, and polygons, which are all based
upon mathematical equations to represent images in computer graphics.
There are two main types of plotters:
Drum Plotter: This is a plotter that has a drum. A paper wraps the drum that rotates to
produce plots. Pens in a drum plotter move across the paper while the drum is turning. A
drum plotter is usually used to produce smaller drawings.
Flatbed Plotter: This is a plotter that has a bed. This is also called a table plotter. The plotter
draws graphics on the paper placed on the beds which are of different sizes. This plotter is
usually used for producing large drawings.
Other than the Pen, plotters can also use electrostatic charges to produce a raster image by
charging the paper with high voltage. This voltage attracts toner which is then melted into the
paper with heat.
d. Voice-Output Devices
These devices produce a human speech-like sound, but actually is prerecorded vocalized sounds.
Voice output is used in the telephone information system, where the requested number is
reported using a voice output system. For example, when a student enrolls courses using a
telephone registration system, he or she hears voice output upon your request. Voice output is
becoming common in voice messaging systems. Voice Messaging is an alternative to electronic
mail (E-mail). The use of voice mail is called voice massaging. In voice mail a computer
digitizes incoming voice messages and stores them on disk, then forwards them to the receiver.
Some of the devices used in voice-output include: speaker, MIDI and Microphones.
1. Speakers
This is the primary method of sound output in most computers today. Sound is translated from
bits to electrical signals in a sound card, which then channels the signals to the speakers.
2. MIDI
MIDI (Musical Instrument Digital Interface) is an industry-standard protocol that enables
electronic musical instruments (synthesizers, drum machines), computers and other electronic
equipment (MIDI controllers, sound cards, and samplers) to communicate and synchronize with
each other. Unlike analog devices, MIDI does not transmit an audio signal — it sends event
messages about pitch and intensity, control signals for parameters such as volume, vibrato and
panning, cues, and clock signals to set the tempo. MIDI files are typically created using
computer-based sequencing software (or sometimes a hardware-based MIDI instrument or
workstation) that organizes MIDI messages into one or more parallel "tracks" for independent
recording and editing.
3. Microphone
Figure 2-10: The Shure and Beta Microphones
A microphone is a device used to change sound into electric signals. Microphones are used in
telephones, tape recorders, hearing aids and many other devices.
e. Modem
A modem is short for "MOdulator-DEModulator." Modulation is the process of converting from
digital to analog. Demodulation is the process of converting from analog to digital. This is
another form of the output device. The modem enables digital microcomputers to send output
through analog telephone lines. Both voice and data can be carried over through the modem. The
modem is not only an output device but also an input device that receives data and voice through
a communication channel.
Computer memory
Computer memory also called computer data storage refers to computer components and
recording media that retain digital data used for computing for some interval of time. Computer
data storage provides one of the core functions of the modern computer, that of information
retention. Traditionally, memory has been called main memory, real storage or internal memory,
while storage devices have been referred to as secondary storage, external memory or
auxiliary/peripheral storage.
a. Main memory
Main memory (Primary storage or internal memory), is the space on your hard drive that is
briefly used for working space and is the only one directly accessible to the CPU. A computer
generally has two types of main memory which are categorized as volatile and nonvolatile. They
are used for short-term and long-term retention of information respectively. Examples of main
memory include Random Access Memory (RAM) and Read Only Memory (ROM).
Random-access Memory (RAM)
It is also temporary storage, holding software instructions and short-term working memory for
the processor (they are volatile). It therefore temporally holds data, instructions that control the
computer operations (operating system) or instructions that manipulate data (application
software). The operating system resides in RAM only when the computer is turned on. The
application software remains in RAM only when it is being used. When application software is
retrieved from the secondary memory, it is loaded into the RAM, replacing the application
software that was previously residing there. Current computer have an expanded RAM that can
hold and run several application software simultaneously (this process is called multitasking).
Data and instructions about to be processed are in RAM as are the output processes and they are
electronically stored as opposed to being magnetically or optically stored. Thus, when the
computer is shut down, all instructions and data in RAM are lost because the flow of electricity
ceases. In RAM. Any address can be randomly accessed at any time; hence the name random
access memory.
b. Secondary storage
Secondary storage also known as external memory or auxiliary storage differs from primary
storage in that, it is not directly accessible by the CPU. The computer usually uses its
input/output channels to access secondary storage and transfers the desired data using
intermediate area in primary storage. Secondary storage does not lose the data when the device is
powered down—it is non-volatile. It is less expensive than primary storage. Consequently,
modern computer systems typically have more secondary storage than primary storage and data
is kept for a longer time there.
In modern computers, hard disk drives are usually used as secondary storage. The time taken to
access a given byte of information stored on a hard disk is typically a few thousandths of a
second, or milliseconds. By contrast, the time taken to access a given byte of information stored
in random access memory is measured in billionths of a second, or nanoseconds. This illustrates
the significant access-time difference which distinguishes solid-state memory from rotating
magnetic storage devices: hard disks are typically about a million times slower than memory.
Rotating optical storage devices, such as CD and DVD drives, have even longer access times.
With disk drives, once the disk read/write head reaches the proper placement and the data of
interest rotates under it, subsequent data on the track are very fast to access. As a result, in order
to hide the initial seek time and rotational latency, data are transferred to and from disks in large
contiguous blocks.
The secondary storage is often formatted according to a file system format, which provides the
abstraction necessary to organize data into files and directories, providing also additional
information (called metadata) describing the owner of a certain file, the access time, the access
permissions, and other information.
Some other examples of secondary storage technologies are: flash memory (e.g. USB flash
drives or keys), floppy disks, magnetic tape, paper tape, punched cards, standalone RAM disks,
and Iomega Zip drives.
c. Tertiary storage
It involves a mechanism which will mount (insert) and dismount removable mass storage media
into a storage device according to the system's demands; this data is often copied to secondary
storage before use. It is primarily used for archival of rarely accessed information since it is
much slower than secondary storage. It is very useful for very large data stores, accessed without
human operators. Typical examples include tape libraries and optical jukeboxes.
When a computer needs to read information from the tertiary storage, it will first consult a
catalog database to determine which tape or disc contains the information. Next, the computer
will instruct a robotic arm to fetch the medium and place it in a drive. When the computer has
finished reading the information, the robotic arm will return the medium to its place in the
library.
d. Virtual memory
Virtual memory is a memory management technique developed for multitasking kernels. This
technique virtualizes computer architecture's various hardware memory devices (such as RAM
modules and disk storage drives), allowing a program to be designed as though; there is only one
hardware memory device and this "virtual" device acts like a RAM module and the program has,
by default, sole access to this virtual RAM module as the basis for a contiguous working
memory (an address space).
Most computer operating systems use the concept of virtual memory, allowing utilization of
more primary storage capacity than is physically available in the system. As the primary memory
fills up, the system moves the least-used chunks (pages) to secondary storage devices (to a swap
file or page file), retrieving them later when they are needed. As more of these retrievals from
slower secondary storage are necessary, the more the overall system performance is degraded.
Advantages of virtual memory
1. Use hardware memory more efficiently than systems without virtual memory.
2. Make the programming of applications easier by; hiding fragmentation, delegating to the
kernel the burden of managing the memory hierarchy (there is no need for the program to
handle overlays explicitly), obviating the need to relocate program code or to access memory
with relative addressing.
e. Off-line storage
Off-line storage is computer data storage on a medium or a device that is not under the control of
a processing unit. The medium is recorded, usually in a secondary or tertiary storage device, and
then physically removed or disconnected. It must be inserted or connected by a human operator
before a computer can access it again. Unlike tertiary storage, it cannot be accessed without
human interaction.
Off-line storage is used to transfer information, since the detached medium can be easily
physically transported. Additionally, in case a disaster, for example a fire, destroys the original
data, a medium in a remote location will probably be unaffected, enabling disaster recovery. Off-
line storage increases general information security, since it is physically inaccessible from a
computer, and data confidentiality or integrity cannot be affected by computer-based attacks.
Also, if the information stored for archival purposes is accessed seldom or never, off-line storage
is less expensive than tertiary storage.
In modern personal computers, most secondary and tertiary storage media are also used for off-
line storage. Optical discs and flash memory devices are most popular, and to much lesser extent
removable hard disk drives. In enterprise uses, magnetic tape is predominant. Older examples are
Revision Questions