Module 2 - Hardware
Module 2 - Hardware
TAWE Boris M
MODULE TWO:
COMPUTER HARDWARE
Introduction
Computer architecture refers to those attributes of a system that have a direct impact on the logical
execution of a program like the instruction set, the number of bits used to represent various data
types, I/O mechanisms and techniques for addressing memory.
On the other hand, computer organization refers to the operational units of the system and their
interconnections that realize the architectural specifications like control signals, interfaces between
computer and peripherals and the memory technology used.
So, for example, the fact that a multiply instruction is available is a computer architecture issue.
How that multiply is implemented is a computer organization issue.
The Von Neumann architecture is a stored-program computer model that was designed by the
Hungarian born Mathematician, John Von Neumann. It is based on three concepts:
o Both data and instructions (programs) are stored in a single storage structure called memory
o The contents of this memory are addressable by location, without regard to the type of data
contained there.
o It has a single processing unit which. As such, execution occurs in a sequential fashion
from one instruction to the next.
Programs being stored in memory ensures that by altering the stored program, the computer can
perform a different task – reason why a computer is called a general-purpose machine.
Neumann divided the computer into four functional units: input, processing, storage and output.
1
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
Control Unit
Arithmetic
Logic Unit
Primary
Storage
Secondary
Storage
Storage Unit
Keyboard
The keyboard is the standard input device attached to computers. It has keys (buttons) that are
pressed to enter data and commands into the computer. These keys represent letters, numbers,
symbols and control characters. The keyboard has a total of 101-104 keys divided into different
groups or keypads.
✓ Function keys, labeled F1-F12, perform specific functions based on the software used. F1
for example is used in most software to display help.
✓ Alphabetical keys
✓ Numerical keys
✓ Navigation keys also called direction keys are used to navigate through documents and
websites. Examples of navigation keys are the up, down, left and right arrows.
✓ Action keys
2
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
There are different keyboard layouts but the best known are QWERTY mainly used by English
speakers and AZERTY used by French speakers. Another keyboard layout modified greatly from
a standard layout is DVORAK, devised to increase typing speed by placing frequently used keys
more naturally.
A keyboard connects to the computer through cable PS/2 cable, USB cable or wireless (cordless).
Mouse
A mouse is a handheld device which is moved across a flat surface to control the movement of a
pointer on a computer screen. The mouse has two buttons, the right and the left buttons, which are
clicked (pressed)to enter commands into the computer.
Different actions that can be performed with a mouse are:
✓ Click: Pressing the left mouse button.
✓ Right-click: pressing the right mouse button
✓ Double-click: pressing the left button two times in quick succession
✓ Drag: pressing the left button and while holding, moving the mouse
✓ Drop: Releasing the left button after dragging
Drag and drop can be used to move files or documents from one place to another.
A mouse connects to a computer through PS/2 cable (PS/2 mouse), USB cable (USB mouse), or
wireless (optical mouse).
Scanner
A scanner is an optical device that converts hardcopy image or text into digital form so that it can
be fed into the computer. The common optical scanner devices are the flatbed scanner, optical
mark reader, optical character reader and barcode reader.
✓ Flatbed Scanner: a scanner in which the object to be scanned is held flat against a piece of
glass.
✓ Optical Mark Reader
✓ Optical Character Reader
✓ Barcode Reader
3
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
Other types of input devices are joystick, light-pen, trackball and touch pad.
1.2.1. Monitor
Also referred to as VDU (Visual Display Unit), the monitor is the most popular output device. It
displays information generated by a computer on a screen. Such output is known as softcopy
output. Monitors are characterized by the technology they use and their resolution.
✓ By the technology used, monitors are of two main types: Cathode Ray Tube (CRT) monitors
and Flat Panel Display.
o CRT monitors are similar to a television set.
o Flat panel display monitors are of different types: Liquid Crystal Display (LCD),
Electroluminescent Display (ELD), Gas Plasma (GP) and Thin Film Transistor (TFT)
monitors.
✓ Monitor resolution refers to the number of dots (pixels) on the screen. It is expressed as a pair
of numbers that give the number of dots on a line (horizontal) and the number of lines
(vertical). The size of a pixel is known dot pitch. The smaller the dot pitch, the clearer and
sharper the picture appears on the monitor. Most monitors come with a .28 dot pitch.
1.2.2. Printer
A printer is a device that produces computer-generated information on paper. Such output is
referred to as printout or hardcopy. Based on the technology used, printers can be classified into
impact and non-impact printers.
✓ Impact printers have mechanical contact between paper and printing head (e.g. daisy wheel,
dot matrix and line printers).
4
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
✓ Non-impact printers have no mechanical contact between paper and printing head (e.g. ink-
jet, desk- jet, laser printers).
Assignment: State the advantages and disadvantages of impact and non-impact printers?
1.3.3. Registers
Registers are special storage locations within the CPU that offer an advantage of speed. They work
under the direction of the control unit to accept and hold data that is being processed. Since the
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 the CPU.
Registers are grouped into two: special purpose registers and general-purpose registers.
5
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
✓ General purpose registers on the other hand have no specific function; they are used according
to the need of the program being executed.
NB: Processing is performing arithmetic operations (add, subtract, multiply, divide etc) or logical
operations (comparisons like less than, greater than, equal to etc) on data to convert it to useful
information.
6
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
Computer storage can be classified basically into two: primary storage and secondary storage.
7
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
✓ Dynamic RAM (DRAM) consists of capacitors that slowly leak their charge over time. Thus,
they must be refreshed every few milliseconds to prevent data loss. DRAM is cheap memory
owing to its simple design.
✓ Static RAM (SRAM) consists of circuits that retain their charge over time. SRAM is faster
and more expensive than dynamic RAM, and does not need to be refreshed as DRAM does.
Due to its cost, it is not used as main memory but rather to build cache memory.
✓ Masked ROM is ROM programmed with its data when the chip is fabricated.
✓ Programmable ROM (PROM) is ROM that can be programmed once but not reprogrammed.
✓ Erasable Programmable ROM (EPROM) is ROM that can be erased by strong ultraviolet light
and new data burnt into it. To do this the chip has to be removed from the machine and put
back after the changes have been made.
✓ Electrically Erasable Programmable ROM (EEPROM) is ROM whose content can be erased
electrically. In this case, the chip need not be removed from the machine. The programming
is done using special software.
8
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
c. Cache Memory
Cache memory is a smaller and faster memory between the CPU and main memory, which stores
copies of data from the most frequently accessed memory locations. The purpose of cache memory
is to speed up accesses by storing recently used data closer to the CPU, instead of storing it in main
memory. Cache is static RAM and is usually organized in levels:
✓ Level 1 (L1) cache, Level 2 and Level 3 cache.
✓ Level 1 cache is closest to the CPU or within it.
✓ L2 and L3 caches are outside it.
When the CPU needs to access memory, cache memory is examined first. If the data is found in
cache, it is read from it. Otherwise, main memory is accessed. When the CPU refers to memory
and finds the data in cache, it is said to be a HIT. Otherwise, it is a MISS.
a. Magnetic Storage
Magnetic storage devices store data as electromagnetic charges on the magnetic surfaces of the
storage units. Examples are floppy disks, hard disks and magnetic tape.
✓ Floppy Disk
A floppy disk consists of a round flexible plastic disk coated with a magnetic substance and
protected by a plastic cover lined with a soft material that wipes the disk clean as it spins. The disk
is made of two recordable surfaces which are divided into a number of circular paths called tracks.
The number of tracks per surface varies with the particular type of disk. Each track is in turn
divided into a number of smaller units called sectors. A sector is the basic unit of storage on the
disk and has a capacity of 512 bytes.
9
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
Floppy disk
✓ Hard Disk
A hard disk consists of several metallic platters which store data. Each platter has two sides and is
divided into a number of rings called tracks. Tracks on a platter are numbered 0 from the outside
and usually go up to 1023. Each track is divided into sectors. A sector is the basic unit of storage
on the disk and has a capacity of 512 bytes. Sectors are grouped together to form clusters. A cluster
is the smallest logical amount of disk space that can be allocated to hold a file. A cylinder is a sum
set of all the tracks on all the platters that have the same track value.
Factors that determine the performance of hard disks are, seek time and drive rotational speed.
o Seek time is the time taken to move the read/write head over the right track and sector.
o Drive rotational speed is the total number of revolutions the disk platters make per minute.
Higher rotational speed leads to higher transfer rate.
Hard disk
10
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
✓ Magnetic Tape
A magnetic tape consists of a magnetically coated stripe on which data is stored. Data is stored on
the magnetic tape in chronological order or sequentially. This means that any piece of data is
always stored in the next available space on the tape. To access data, the tape drive has to move
through all the preceding data before it can access the desired data. This mode of access is known
as sequential access. Less susceptible to environment, they are suitable for long-term storage and
backup.
b. Optical Storage
Optical storage devices store data as microscopic light and dark spots on the disk surface.
Examples are Compact discs, digital versatile discs and Blu-ray discs. They are less susceptible to
environmental damage.
Compact disc
11
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
✓ Blu-Ray Disc
A Blu-ray disc is an optical disc similar to a DVD and of same size, but read and written with a
blue or violet laser, whose shorter wavelength makes a higher data density possible. Blu-ray discs
can hold 25 GB for single layer or 50 GB for double layer.
12
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
stick’s flash drives have practically replaced diskettes as a handy way to transport data. They can
be carried in one’s pocket and plugged into any computer for immediate access.
a. Capacity
The capacity of a storage device is the maximum amount of data that can be stored on the device’s
medium. It is expressed in terms of the number of data bytes the device can hold. This simply
means the unit of measurement of storage capacity is byte. Units of storage are summarized as
follows:
1 bit = 0 or 1
4 bits = 1 nibble
8 bits = 1 Byte 1 character
1024 bytes = 1 Kilobyte (KB) approx. 1/2 page
1024 KB = 1 Megabyte (MB) approx. 500,000 pages
1024 MB = 1 Gigabyte (GB) approx. 5 million pages
1024 GB = 1 Terabyte (TB) approx. 5 billion pages
13
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
b. Access time
Access time is the average time taken for a storage device to search and read required data on its
medium. In other words, it is how fast data can be read from or written to a memory device’s
medium. It is measured in seconds. Units of time are summarized as follows:
Millisecond (ms)
Microsecond (µs)
Nanosecond (ns)
Picoseconds (ps)
Femtoseconds (fs)
c. Access Method
An access method is the technique used to retrieve information from or store information to a
medium. Storage media can be accessed in two ways: sequentially or randomly.
✓ Sequential Access
The medium is accessed by proceeding from the beginning of the medium until the designated
area is reached. Any new data is stored in the next available space on the medium. To read any
data stored on the medium, the device has to start from the beginning going through each data until
the required data is found. An example of sequential access medium is magnetic tape.
✓ Random Access
Data is accessed in any order, regardless of its location on the medium. To read any data stored on
the medium, the device does not need to go through all preceding data. It is also called direct
access. Examples of direct access devices are RAM, ROM, CDs, DVDs and magnetic disks.
d. Volatility
Volatility refers to the behavior of the device without power. A device can be volatile or non-
volatile. Volatile means that the device loses its content when power is switched off. Examples of
volatile devices are Cache and RAM.
Non-volatile means that the device preserves its content even without power. Examples of non-
volatile devices are ROM, magnetic disks, optical discs and solid state devices.
14
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
Registers
Cache Memory
Faster and Main Memory Slower and
smaller in size larger in size
Magnetic Disk
Optical Disc/Solid State Devices
Magnetic Tape
Memory hierarchy
The Motherboard
15
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
16
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
main memory (RAM) that can be addressed. A computer with a 32-bit bus size can address a
maximum RAM of 232 bits = 4GB.
When the CPU wants to read data from a memory location, it sends out the memory address of the
desired data on the address bus and then sends out a Memory Read signal on the control bus. The
memory read signal enables the addressed memory device to output the data onto the data bus. The
data from the memory travels along the data bus to the CPU.
a. I/O Ports
A port is a pathway for data and information to go into and out of the computer from external
devices such as keyboards, monitors and printers.
There are many standard ports as well as custom electronic ports designed for special purposes.
Examples of ports are:
o PS/2 ports for connecting the keyboard and mouse
o VGA (Video Graphics Adapter) port for connecting the monitor
o RJ45 port for connection to an Ethernet network
o RJ14 for connection to the Internet via phone line
o USB port for connecting USB devices like Flash drives, printers, keyboards and mice
o Serial ports for connecting serial devices like Personal Digital Assistance (PDAs)
o Parallel port connecting parallel devices like printers
17
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
o Firewire is high performance serial bus, for connecting devices to your personal computer.
FireWire provides a single plug-and-socket connection on which up to 63 devices can be
attached with data transfer speeds up to 400 mbps.
18
© 2021
Course: ICT & Computer for Business Mr. TAWE Boris M
19
© 2021