Computer Systemmemoryio Devices
Computer Systemmemoryio Devices
Computer System
We all know that human body is made up of many different systems and all these systems work together to
form a human body. Similarly, different parts of computer form computer system. A computer system is a
combination of different computer hardware and software that work together to achieve the purpose of the
instruction or program. In other words, a computer system is a set of hardware and software which process
data in a meaningful way. Computer system can be described by the help of following figure.
ALU
Primary Memory
------ Control Flow
______________
Data flow
Secondary Memory
The above figure describes the Computer System. Here, Input or Output unit can't function until they
receive the signal from the CPU. Similarly the storage unit or CPU alone is of no use. So the usefulness of each
units depends on the other units and can be realized only when all units are put together.
In a computer system when user gives input through the input devices if first goes to the Primary
memory and then send to the ALU for the further processing and then processed data again send to primary
memory if needed then to output units. These all happens in the direction of Control Unit.
Input Unit, Output Unit, storage and CPU can be described separately as follows:
1. Input Unit: -Input Units are the media through which user communicate with the computer. An input
unit perform the following operation sequentially:
a. It accepts or reads the list of instruction and data from the user.
b. It converts the received data into the computer understandable form.
c. It supplies the converted data into computer system.
Some of the input devices are Keyboard, Mouse, Scanner, Microphone etc.
2. CPU: - It is the only part of computer where all processing takes place. It works with Operating system
and executes the set of instruction, control different peripherals devices by sending and receiving the
control signals. The CPU is made up of 3 major units. They are as follows:-
a. Arithmetic and Logical Unit: - All the arithmetic and logical operation are performed in this unit
under the direction of control unit. The data needed to be processed are transferred from the
memory unit to ALU when required as well as data will be transferred from ALU to primary
memory after completion of processing. ALU performs the following tasks:
1 Prepared By: - Mandip Bhattarai
Computer System
i. It performs the arithmetic operation on data i.e. it operates on data according to the
instruction.
ii. It performs the logical operation or comparisons such as less than, equal to, greater
than etc.
b. Control Unit: - Under the consideration of O.S., the control unit control and coordinates the
entire computer system. The control unit receives instruction from the program decodes them
and generates signals to inform the ALU as to what operation has been requested. It sends
signal to input and output devices to perform task as instruction. The control unit determines
the sequence in which computer's programs and instruction are executed.
So, we can say that control unit co-ordinate the flow of data in and out of the ALU, the
primary memory, the secondary memory, and various input and output devices.
The Jobs of Control unit can be listed as follows:
i. Send the input from input devices to the memory unit.
ii. Gets the instruction from memory unit.
iii. Decodes the instruction or determine the instruction.
iv. Gets the data required by the instruction.
v. Activates the right circuit for the instruction to be obeyed.
c. Memory Unit: - The memory unit or primary memory is the section where instruction and data
to be used by the computer are stored. The data read from an input unit are transmitted to the
computer's primary memory where they are available for processing. So the primary memory is
the working space where unprocessed data (data to be processed), instruction or program
currently running and processed data (information) are temporarily stored. The function of
memory unit are as follows:
i. It holds all data to be processed and the instruction required for processing.
ii. It stores intermediate result of processing.
iii. It stores the final result of processing before these results are released to output
devices.
3. Output Units: - The output devices show the result of processing and other information from the
computer to the user in the human understandable form. The output unit performs the following
functions:
i. It accepts the result produced by the computer, which are in binary form.
ii. It converts the binary form result to human understandable form.
iii. It supplies the converted result to the user.
Some of the O/P devices are Monitor, Printer, Speaker etc.
Application Program
System software
Machine Level
Micro Programmed Level
1. Electrical and Electronic Component Level or Physical Device Level:- Almost all modern computer
devices are built from simple electronic components such as transistors, capacitors, registers and these
components rely on suitable power supplies and operating environments. The basic thing that we got
know is that transistor can act as an electronic switch that is either ON or OFF.
2. Digital Logic Level: - All most basic operations of the machine are provided at this level. The basic
elements at this level can store, manipulate and transmit data in the form of simple binary
representations. These digital logic elements are called gates. A gate is normally constricted from small
number of transistors and other electronic components. Many gates may be combined into a single
chip. The standard digital logic devices are combined together to form computer processor or
computer memories.
3. Micro programmed Level: - This program interprets the machine language instruction from the
machine layer and directly causes the digital logic elements to perform the required operations.
4. Machine Level: - Several hardware levels are presented in machine level. These are the basic elements
of the computer system. They are processor, input/output devices, primary memory, secondary
memory etc.
5. System Software Level: - These programs direct the internal operations of a computer system such as
controlling input and output devices managing storage areas within the computer system. It also hides
the complexity of the hardware form other software by providing its own facilities which enables
software to use the hardware more simply.
6. Application Level: - These programs direct a computer to solve a user oriented problems. Such as
preparing bills, calculating mathematics problem etc. This level is the language of the computer as seen
by the end- user.
The Bus
The Bus is a combination of path that interconnects different computer components. Actually, the bus
is a group of parallel wires. The number of wires in the bus affects the speed at which data can be travel
between hardware components because each wire can transfer 1 bit at a time. So, a bus is a parallel electrical
conductor called lines onto which a number of components are connected. There are two basic types of bus.
They are as follows:
1. Internal Bus: - These buses are used within the processor and in integral part of its construction such as
diode, transistors, registers etc.
2. External Bus: - These buses are used to connect separate hardware elements together, e.g. connecting
the processor to main memory etc.
Some different types of bus are as follows
1. Data Bus: - The data bus is a group of wires or lines used for data flow. These lines are bi-directional, data
flow in both directions between the microprocessor and memory and peripheral devices. The
Primary Memory
Memory is the workspace for the computer's processor. The fast semiconductor memories used directly with
the microprocessor are referred to as the primary memory. The computer memory that holds data,
instruction, and program temporarily is Primary memory or Main Memory. A computer can have two types of
primary memories RAM and ROM.
RAM
RAM stands for the Random Access Memory. It is the temporary memory of the computer system. RAM chips
are inserted on the motherboard on a particular memory slots. The purpose of the RAM is to hold the
programs and data while they are in use. This type of memory storage is considered as temporary because the
data and programs will remain there only as long as the computer has electrical power or it is not reset. So, we
call it as volatile memory. It is called Random Access Memory because we can randomly and quickly access any
location in memory.
Types of RAM
1. DRAM: - DRAM stands for Dynamic Random Access Memory. DRAM is the type of memory in a modern
computer. The main advantages of this type of RAM are that it can hold a lot of bits into a very small
chip and it is very inexpensive, which makes it affordable for large amount of memory.
The memory cells in a DRAM chip are tiny capacitors that retain a charge to indicate a bit. The
problem with DRAM is that it is dynamic, and because of the design must be constantly refreshed.
Cache Memory
The cache (pronounced as cash) memory is placed in between CPU and main memory. It is
semiconductor memory. It consists of SRAM. It is special and very high speed memory called cache is used to
increase the speed of processing by making current program and data available to the CPU at the rapid rate.
The memory matching with high speed microcomputer must be very fast, but very fast memory is very
expensive. If a fast microprocessor operates with conventional main memory or the slow memory then it has
to operate with several wait states. This will reduce the speed of the computer. So a high speed cache
memory is used to supply currently needed instruction and data to CPU.
The technique of accessing a cache memory differs from that of the main memory. To access main
memory the CPU sends an address to it. In response of this, the main memory sends data contained at the
specified memory address. On the other hand, cache memory uses parallel searching of the required data. It
first compares the incoming address to the address present in the cache. If the address match then hit has
occurred otherwise miss has occurred. When a miss has occurred then the data is read from the main
memory.
Thus, we can say that the cache memory is placed in computer system to compensate for the speed
difference between the main memory access time and processor logic. CPU logic is usually faster than main
memory access time.
Virtual Memory
1. Magnetic Tapes
Magnetic tape is a serial access type storage device. It is suitable for backup storage. Magnetic tapes
are used for backup in servers, workstations and large computers. A magnetic tape is low cost device and it
has large storage capacity. It can also be used as the offline secondary storage. When a large volume of
information is to be processed sequentially, it can be stored on a magnetic tape.
The main drawback is that it stores information sequentially. A file or particular information stored on
a magnetic tape cannot be accessed directly on random basis as it is done in the case of hard disk or floppy
disk.
One side of tape is coated with magnetic materials (iron oxide) that stores data permanently. The
magnetic tape drive is a machine that can either read data from a tape into the CPU or it can write the
information being produced by the computer onto a tape. It is similar to the cassette of a tape recorder. Data
is recorded on the tape in the form of tiny invisible magnetized and non magnetized spots (representing 1’s or
0’s) on the iron oxide side of the tape in sequential tracks along the length of the tape.
It has high storage capacity and can be reused and 100% reliable. Through it large volume of data can
be transferred from one computer to another which is not linked together. But the main disadvantages of this
type of storage device are it is sequential storage so the data access is slow. To access the data of 10 th, it has to
processed 99th data.
2. Magnetic Disk
Magnetic disks are direct storage devices i.e. Data can be accessed from anywhere on the disk directly
without accessing the data stored previous to that. A magnetic disk is a round platter made of metal or plastic
and coated with magnetic materials. Different types of magnetic disks are as follows:
2.1 Hard disk: - A hard disk drive contains rigid, disk shaped platters, usually constructed of aluminum or glass.
Unlike floppy disk, the platters cannot be bent hence the termed as hard disk. In most hard disk drive the
platters can not be removed so they are sometimes called fixed disk drives.
6 Prepared By: - Mandip Bhattarai
Computer System
The basic physical construction of a hard disk consists of spinning disks with heads that move over the
disk and store data in tracks and sectors. The heads read and write data is concentric rings called tracks, which
are divided up into segments called sectors. Hard disk drive usually have multiple disks, called platters, they
are stacked on top of each other and spine at same speed, each with two side on which the drive stores data.
The identically positioned tracks on each side of every platter together make up a cylinder. Actuator moves
the arms to right track on the platter to read data.
2.2 Floppy Disk: -Floppy disks are made of a plastic material coated with the iron oxide. It is also a direct access
storage media. Floppy disk is a soft magnetic disk, rather it is a very thin piece of flexible plastic, and it is called
floppy disk because its disk can be bent unlike hard disk. Floppy disks are also called diskette. They are
removable disk. A floppy disk is inserted into a computer system when needed. The floppy or flexible disk s
kept within a plastic jacket. A metallic shutter protects the media access hole. The drive manipulates the
shutters, leaving it closed whenever the disk is not in the drive. So, the media is completely insulated from the
environment and from the user’s fingers.
3. Optical Disk
An optical disk system consists of a rotating disk that is coated with a thin metal or other material that is highly
reflective. Data recording is done by focusing a laser beam on the surface of the spinning disk. Optical disks are
also direct access storage devices. Different types of optical disks are as follows:
3.1 Compact Disk Read Only Memory (CD- ROM):- CD- ROM disks are made of rigid plastic coated with a very
thin layer of aluminum that reflects light. Data is written to the CD- ROM by burning the microscopic pits (tiny
holes) into the reflective surface of the disk with a powerful laser. The data is in digital form, with pits
represents a value of 1 and flat spots, called land, representing a value of 0. Once data is written to the CD-
ROM, it can’t be erased or changed and this is the reason it is termed as read only memory.
Data is read from a CD- ROM with a low power laser contained in the drive that emits infrared light on
the reflective surface of the disk. The pits in the reflective layer of the disk scatter light, while the land portions
of the disk reflect the laser light efficiently.
CD- ROM has very high storage density, low storage cost, and fast access time. It is portable, more
reliable and easy to use. But the data access rate is less that hard disk.
3.2 Compact Disk- Recordable (CD-R): - This type of disk is blank when new and data can be written with what
ever data is necessary. Data can be written once and never erased. So, we also call WORM (Write Once Read
Many) medium.
3.3 Compact Disk- Rewritable (CD-RW): - CD-RW disks are also like CD- ROM disks but one can write data many
times on CD-RW disk. The CD-RW drive is used to write data on CD-RW disk. Once the data is written in CD-RW
disk, normal CD-Drive can read it.
3.4 Digital Versatile Disk Read Only Memory (DVD-ROM): - DVD is a new high capacity, universally applicable
optical disk. It is silvery platter, 4.75 inches in diameter and about 0.05 inches thick, with a hole in the center.
The DVD is comprised of two platters cemented together. Data is written and read by the DVD just like on a
CD.
4. Zip Disk: - It is a high capacity removable storage and data can be read and write like floppy disk. Different
storage capacity zip disks are available. The common capacities of zip disks are 100 MB, 250 MB, and 750 MB.
Zip disk is a circular platter coated with much higher quality magnetic material.
7 Prepared By: - Mandip Bhattarai
Computer System
Motherboard
Motherboard is the main core of the computer. It is also known as Printed Circuit Board (PCB) or circuit
board or System Board. It is the main circuit board in which many internal devices such as video card, sound
card, memory, CPU and other devices are attached. None of the other card or devices can work without
motherboard.
Motherboard is a rectangular fiber glass with a printed circuit board on the surface of which connects
one component to another.
Although the system board's physical structure has changed over time, its logical structure has
remained relatively constant. The system board of the personal computer consists of a microprocessor,
supporting circuits, ROM, the system's Primary Memory units, keyboard interface, timing circuit etc.
Input Devices: - Before a computer can do anything, programs ad data must be fed into the computer. The
devices that are used to feed data and instruction into computer system are called input devices. Input devices
convert the input data into electronic signals as required by the processing units. Different types of input
devices used in the computer system are as follows: -
1. Keyboard: -The keyboard is the most common primary input devices for the computer system. It is used to
give the text and numeric instruction to the computer system. It looks like the typewriter Keyboard consists of
the numbers of key and they can be categories in the following category.
The alphanumeric Key: - These keys contain key for typing letters, numbers and special
characters like punctuation marks. These keys are arranged in the middle of the keyboard,
which is similar to the keys of a typewriter. This arrangement is called the QWERTY layout. It
consists of the letters and number and few additional keys with special functions such as TAB,
Caps Lock, Back space.
Modifier Key: - These keys are not used alone. Each modifier key is used with another key. A
keyboard’s modifier keys are so named because they are used to modify the input of another
key. Modifier keys are ALT, SHIFT, and CTRL.
Numeric Key: - These keys are located on the right side of the keyboard. It includes ten digits
(from 0 to 9) and mathematical operators (+,-,* and /). It looks like calculators.
Function keys: - The function keys (F, F2 …..F12 ) are arranged on the top row of the keyboard.
They are used to give commands to computer. The jobs of the function key depend on the
program.
Cursor Movement Key: - They are also known as Arrow key. These keys are used to move the
cursor on the screen. It includes the Arrow key, Home/End, Page Up/ Page Down keys.
Special Purpose Key: - These key performs the specialized functions. They are as follows: Insert,
Delete, Print Screen, Scroll Lock, Pause, Start, Shortcut key.
Escape Key: - This key is used to cancel the dialog box. Escape key is ESC.
3. Mouse: - Mouse is a small hand held devices used to position the cursor on the screen. A selection can
be made from a displayed menu by positioning the cursor over the required selection by the
movement of mouse and pressing on the mouse to indicate that this is a selection required. A mouse
consists of a plastic housing or casing with a flat bottom, a ball that projects through its bottom
surface, two or three buttons on the top of the casing, and a cable that connects the mouse to the
computer system. The functions of these buttons are determined by the application program. When
user moves the mouse on mouse pad, a mouse pointer simultaneously moves on the screen. As the
c. LED Monitor:
LED and LCD monitors are based on the same basic technology for image display but differ in
the kind of backlighting used. While LCD monitors use cold cathode fluorescent lamps for
backlighting, LED monitors use light emitting diodes. This is the main difference between the
two display technologies. So LEDs are a type of LCD monitors. LEDs offer much more gradation
in intensity, giving a much truer colour quality. These types of monitors offer a better dynamic
contrast ratio too. So if you compare LED Vs LCD monitor for gaming and other intensive
graphic applications, LED monitors are surely better choices.
2. Speaker: - The speaker is an output device that converts audio data into sound wave. The sound card is
the actual device that converts audio data into audible sound and speaker delivers that sounds to the
user.
3. Printer: - The most common hardcopy output device is printer. When we require a permanent type of
output which we can see and transfer easily when a computer is at off state printer is used, which gives
the permanent type of output. There are different types of printer that are designed for different types
of applications. On the basis of technology used to print the output, printer can be grouped into two:
1. Impact Printer
2. Non- Impact Printer
3.1 Impact Printer: -Impact printer uses hammer like objects or pints to hit on the inked ribbon and
characters are formed on a paper. Impact printers physically strike the paper. The speed of printing of
an impact printer is slow than non-impact printer. Different types of impact printer are as follows:
3.1.1 Daisy Wheel Printer: - It is the letter quality printer. It is also called character printer or serial
printer because it prints one character at a time.
It is developed form of type writer. Each arm of typewriter’s face consists of engraved
character. In the same way the daisy wheel contains an embossed character on tip of each petal or
arm. These petals are arranged in wheel like form. The wheel like structure is called a daisy wheel.
3.1.2 Dot Matrix Printer: - Dot Matrix printer is the printer that produces characters made up of dots.
The patterns of dots are formed on the paper when the printer head strikes on the inked ribbon, which
in turn, strikes the printing surface (paper). The dot matrix printer head is made up of group of small
print wires that are arranged in a matrix pattern. The quality of this printer depends largely on the
number of dots in the matrix. Dot Matrix printer head consists of 9, 18, 24 pins. The speed of these
printers ranges from 50-400 cps (Character per Second).
Advantages of Dot Matrix printer over Daisy wheel printer
a. They are faster than daisy wheel printer.
b. They are low cost and produce less noise then daisy wheel printer.
c. They can prints many special characters, different size and shape of characters, images and
charts.
3.1.3 High Speed Impact Printer: - These printers are line printer because they print whole line of
characters practically at once. Different types of impact line printer are as follows:
a. Drum Printer
b. Band Printer
c. Chain Printer
Drum printers use a spinning horizontal cylinder that has a complete set of characters
embossed around its circumference for each character position across the page. While the drum is
rotated at a constant speed and the correct character reached at the correct position the hammer
strike the page, which strike the ink ribbon, which strikes the drum characters.
Chain printers place character sets on a revolving chain. In both cases, the type sets are rotated
horizontally, behind the paper, at a high rate of speed. When the desired character is in the proper
position, a hammer corresponding to that position is fired imprinting the character on the paper.
Band printers are just like chain printers. They contain fast rotating metal band where the
characters are embossed.
3.2 Non-impact Printer: - Printer that do not strike characters against ribbon or paper when they print
are non-impact printers. Non impact printer prints fully formed characters. So the qualities of non-
impact printers are higher than impact printer Different types of non-impact printer are as follows:
3.2.1 Laser Printer: - Laser Printer is an electro photographic printer that is based on the technology
used by photocopy machine. The laser printer emits a highly focused laser beam on a rotating drum,
which forms images on the drum. The drum is coated with a photosensitive plastic which is given a
negative electrical charge over its surface. When laser beam hits on the surface of the drum it creates
spots on the particular part of drum. The spots have a positive electrical charge. The drum is then
12 Prepared By: - Mandip Bhattarai
Computer System
rolled through a toner which is negatively charged ink powder and the positively charged spots are
picked up the toner. As the piece of electro statically charged paper is rolled against the drum, the
toner is transferred to the paper. Thus the image written on the drum by the laser is transferred to the
paper.
A laser printer can print 10-200 pages per minute. Printing quality is high and can print graphics.
Since the laser printers prints a page at a time they are also called page printer. They are available in
both colour and black and white.
3.2.2 Ink-jet Printer: -It uses ink jet technology to print characters on the paper. They produce
characters by spraying stream of ink drops onto the paper. Inkjet printers form fully formed characters.
They are quite and can form any kind of character. Inkjet printers are cheap and very popular now
days. Their speed ranges from 50-300 characters per second.
3.2.3 Thermal Printer: - Thermal printers use heat to produce an image on special paper. The print
mechanism is designed to heat the surface of chemically treated paper so that a dot is produced based
on the reaction of the chemical to the heat. No ribbon and ink is involved. The main disadvantage of
thermal printer is its paper.
Graph Plotter: - Plotter is a device that draws pictures on paper based on commands from a computer.
Plotters are output devices. They are used to produce precise and good quality graphics and drawing under
computer’s control. Plotters are basically of two types those that use pens and those that do not. Drum and
Flatbed plotter both use pens but electrostatic plotters do not.
In drum plotter, the paper is placed on the surface of a drum. The drum revolves and the plotter pens
are horizontally positioned over the target area. When the paper has rotated to the correct point, the pens are
dropped to the surface and moved left and right under program control across the paper as the drum
revolved.
Flatbed plotters are designed so that the paper is placed flat and one or more pens move horizontally
and vertically across the paper.
Electrostatic plotter use electrostatic charges to create images out of very small dots on specially
treated paper. Electrostatic plotters are faster and can produce images of very high resolution.
Ports: - A port is an interface on a computer to which peripheral devices are connected. All computer
peripherals are connected to the computer system through the port. A port is a connection point that allows
us to connect peripheral device like monitor, keyboard, mouse, printer etc. Data flow in and out through these
ports. Ports are of two types parallel and serial.
A parallel port allows transferring of all the bits of a word simultaneously. In parallel interface, there
are multiple lines to connect the peripheral to the port. A parallel interface is used to transfer data at faster
rate for high speed peripherals such as disk and tape.
A serial port allows serial data transfer. In serial data transfer, one bit of data is transferred at a time.
In serial interface, only one line or a pair of lines is used to transmit data. It is used for slow speed peripherals.
The disadvantage of a serial or parallel port is that only one device can be connected to a port.
USB (Universal Serial Bus): - It is a high speed serial bus. Its data transfer rate is higher than that of a serial
port. It allows interfacing several devices to a single port in a daisy chain.
It provides power line along with data lines. USB cable contains 4 wires two out of four wires in the USB cable
are used to supply electrical power to devices and two are reserved for send data and commands. It can