Computer System
Computer System
Computer System
The ALU is the area of the Microprocessor8e in which arithmetic and logic
operations are performed on data.
The type of operation that is to be performed is determined by signals from
the control unit.
The data that are to be operated on by the ALU can come from either the
memory unit or the input unit.
Results of operations performed in the ALU can be transferred to either the
memory unit for storage or the output unit.
Control Unit (CU)
• The control unit (CU) is a component of a processing unit
that directs the operation of the processor. It tells the
computer's memory, arithmetic/logic unit and input and
output devices on how to respond to a program's
instructions.
• This unit contains logic and timing circuits that generate
the proper signals necessary to execute each instruction
in a program.
REGISTER
A register is a quickly accessible location available
to a ALU and Control Unit. Registers usually consist
of a small amount of fast storage, although some
registers have specific hardware functions, and may
be read-only.
Registers are normally measured by the number of
bits they can hold, for example, an "8-bit register",
"32-bit register" or a "64-bit register" or even more.
General purpose of registers is to store data and
intermediate results during program execution.
There are several classes of registers
Accumulator: It is most frequently used register used to store data taken
from memory. Its number varies from microprocessor to microprocessor.
Memory Address Register (MAR): It stores address of data or instructions
to be fetched from memory.
Memory Buffer Register (MBR): It stores instruction and data received
from the memory and sent from the memory.
Instruction Register (IR): Instructions are stored in instruction register.
When one instruction is completed, next instruction is fetched in memory for
processing.
Program Counter (PC): It counts instructions.
I/O Register: It is used to communicate the input output devices.
Clock Speed:
Every Microprocessor or CPU contains a clock along with Control unit(CU). The
Microprocessor execute the instructions and synchronize all the component of the
computer with the reference of clock signal. The frequency of the pulses is known
as clock speed.
The Clock or System Clock is an electronic pulse generator that sends out an
electronic pulse in regular interval. The electronic component of needs these
electronic pulses in order to perform the task. And then, clock speed determine
the number of operations per second the microprocessor can perform.
The clock speed is measured in Megahertz or Gigahertz.
Word Length
The number of bits that can be processed by a processor in a single instruction is
called Word Length. The word length depends upon the width of the internal data
bus, Register , ALU.
The first commercial microprocessor Intel 4004 was 4-bit processor. 8-bit
microprocessor can process 8-bit data at a time.
Currently most microprocessor used 32-bits or 64-bits Word length.
Bus System
A bus is a collection of wires, chips and slots inside the computer through
which data are transmitted from one part of the computer to another from
peripheral devices.
It is also called a pathway in the computer on which data travels. It is a set of
parallel distinct wires, serving different purposes, which allow devices
attached to it to communicate with the CPU.
The function of BUS are:
It carries information from one component to another.
2. Magnetic memory
It is the memory that consists of magnetic property for storing data. It stores data in the
form of magnetized dots. It is slower for read / write and cheaper than semiconductor. It is
used as the secondary or backup memory of the computer. Examples: Hard disk, Floppy disk,
Tape drive, etc.
3. Optical memory
It is the memory that uses optical property (light) to the read-write operation of the data. It
is slower and cheaper than semiconductor memory and used for mass storage and backup.
Example: CD, DVD, BD, etc.
On the basis of function, memory can be classified as Primary Memory and Secondary
Memory.
❖ Primary Memory:
Primary memory is also known as system memory or main memory or primary storage or
internal memory. Primary memory is the working area for the computer's processor.
It holds data for processing. It holds instructions for processing data. It holds data after it is
processed waiting to be sent to an output or storage device.
Features of Primary memory
1. It is used for storing data and programs for temporary.
2. It is normally used for smaller storages.
3. It is expensive and faster for read / write operations than secondary memory.
Here are some of them that comes under the primary memory
1. RAM (Random Access Memory)
2. ROM(Read Only Memory)
RAM (Random Access Memory)
RAM is the read/write memory of the computer. It is used for both purpose read and write. It
possesses random access property that means CPU can access any memory location in a
random sequence form.
It is a volatile memory. It stores data or information as long as power supply is on. But ,after
power supply is off, data will be gone.
Ram is used to store:
1. Instruction waiting to be executed by CPU
2. Instruction currently being executed by CPU
3. Data Waiting Processing
4. Data Waiting output
There are two types of RAM.
1. Static RAM(SRAM)
2. Dynamic RAM(DRAM)
Static RAM (SRAM)
The word static indicates that the memory retains its contents as long as power is being
supplied. However, data is lost when the power gets down due to volatile nature. SRAM
chips use a matrix of 6-transistors.
It is expensive but faster for read/write than DRAM.it is typically used for CPU cache while
DRAM is used for a computer's main memory.
Characteristic of Static RAM
• Long life
• No need to refresh
• Faster
• Used as cache memory
• Large size
• Expensive
• High power consumption
Dynamic RAM (DRAM)
DRAM, unlike SRAM, must be continually refreshed in order to maintain the data. This is
done by placing the memory on a refresh circuit that rewrites the data several hundred times
per second.
DRAM is used for most system memory as it is cheap and small.
All DRAMs are made up of memory cells, which are composed of one capacitor and one
transistor.
Characteristics of Dynamic RAM
• Short data lifetime
• Needs to be refreshed continuously
• Slower as compared to SRAM
• Used as RAM
• Smaller in size
• Less expensive
• Less power consumption
Read Only Memory (ROM)
ROM stands for Read only memory. It can be used only to perform
the read operations. It does not have write access. It is non-volatile
memory i.e, the information stored in it is permanent and is not lost
even if the power supply is cut down.
It is used for permanent storage of programs. The capacity of ROM is
comparatively smaller than RAM, it slower and cheaper than RAM.
ROM stores “firmware,” which is permanent software. The
manufacturer fits a specifically designed ROM chip into a device
during the building process.
There many kinds of ROM that are as follow:
The devices that are used to receive the data and instructions are called input devices. These
devices are used to input program and data to the computer.
These input devices converts input data and instructions into a suitable binary form which can be
accepted by the computer.
For ex: keyboard, mouse, scanner, MICR, Touch screen, etc.
COMMONLY USED INPUT DEVICES
• Keyboard
A keyboard is the primary input device through which instructions and data are entered into the computer.
A keyboard is connected to the CPU with a cable. When a key is pressed, an electronic signal is produced which is
then detected by an electronic circuit called keyboard encoder. The main function of an encoder is to detect
which key has been pressed and to send a binary code to CPU.
Most key board have following keys
Alphanumeric keys(letters and numbers)
Punctuation keys(comma, semicolon and so on)
Special Keys(function keys, control keys, arrow keys, caps lock key etc)
➢ Some types of standard keyboards
➢ XT(Extended Technology): 83 keys
➢ AT(Advanced Technology): 101 Keys
➢ Enhanced Technology: 103 keys or more(multimedia)
• Mouse
A mouse is a small input device which is used to point, draw and select items
that are displayed on the computer screen.
The pointer of the mouse is called a cursor. As we move the mouse across the
screen, the cursor moves according to the movement of the mouse.
Types of mouse are
Mechanical Mouse
Opto-mechanical Mouse
Optical Mouse
• Scanner
The scanner is an input device that needs images or text and converts the
data into digital signals. The image is scanned and converted into a format
that the PC can interpret.
A scanner works by digitizing an image, dividing it into a grid of small dots
called pixel and representing each dot with RGB value for that pixel value by
binary bits which can be stored in a file and can be displayed on a screen.
• Bar Code Reader
The Bar Code Reader is a device which is used to read a barcode field.
Bar Code is a technology that uses white spaces and black bars to represent
encoded information. This encoded information can be read with an optical
device that converts the bars and spaces into an electrical signal which is
then decoded into the original characters.
The bar code reader is used in labeling consumer products and books.
• Light Pen
A light pen is a pencil shaped device which is used to select screen positions
by detecting the light coming from points on a screen.
The light pens are still in use, they are not as popular as they used to be as
they have several disadvantages comparing to other input devices.
• OCR (Optical Character Reader)
Optical Character Reader (OCR) is the device that helps in the recognition of printed or
written text characters by a computer.
OCR is used for reading text from paper and translating it into a form that the
computer can manipulate.
An OCR reader scans the document using the photoelectric device(camera) to convert
it into electric signals. These patterns are then compared with the stored patterns of
the characters which the reader can recognize. If a match is found, the character
scanned is identified otherwise, it is rejected by the reader.
This device is widely used in airlines, banks, postal offices (for reading postal code),
etc.
• OMR (Optical Mark Reader)
Optical Mark Reader is widely used device for scoring answers for multiple choice
questions.
It can sense the presence of a pen or pencil mark. Special marks such as squares or
bubbles are prepared on examination answer sheets or questionnaires .
The user fills in these squares or bubbles with soft pencil or ink to indicate their
choice. These marks are detected by the Optical Mark Reader and the corresponding
signals are sent to the processor.
• MICR (Magnetic Ink Character Reader)
Magnetic Ink Character Reader has been used to read
documents that are written by a special ink made of a
magnetic material called magnetic ink.
MICR is capable of reading characters on a paper written
with the magnetic ink which is magnetized during the input
process. The MICR reads the magnetic pattern of the
written characters.
To identify the characters, these patterns are compared
with a special pattern stored in the memory. It is mostly
used in banks and postal services.
• Touch Screen
Touch screen is a kind of screen which is sensitive to user’s
touch. One can use a finger to point the command or menu
displayed on the screen. It is widely popular on smart
phones and laptops.
o Microphone
Microphone is an input device to input sound that is then stored in a
digital form.
The microphone is used for various applications such as adding
sound to a multimedia presentation or for mixing music
o Digital Camera
Digital camera is a camera that takes video or still photographs, or both,
digitally by recording images on a light-sensitive sensor. Many compact
digital still cameras can record sound and moving video as well as still
photographs.
Output Devices
Output devices are those devices which display the required result in simple words to the
users. The output device provides the output of data or information.
The purpose of the output devices is to translate data and information from electrical
impulses to a human-readable format.
There are two principal kinds of output. They are described below:
• Soft copy output
It refers to data that is shown on a display screen or sound produced by a speaker. It is present in a digital
form on a computer. This kind of output is untouchable. It is temporary in nature. For example, content
displayed on a screen.
• Hardcopy output
It refers to printed output printed on the paper or some material that can be touched and carried for being
shown to others. It is permanent in nature and can keep in paper files or can be looked later when a person
is not using the computer. For example, outputs produced on paper by printer or plotter in the form of text
or graphics, etc.
COMMONLY USED OUTPUT DEVICES
Monitor
The monitor is display screen that is used to display text and graphics, allowing users to view
the result of the processing. It is the most common and popularly used output device for
producing soft copy output. It displays the generated output on a television-like a screen.
Monitor is classified on the following basis:-
Classification of monitor on the basis of the colors displayed:
Monochrome monitor: It basically processes only two colors, one for foreground and one for the background.
Grayscale monitor: The grayscale monitor is a special monochrome monitor such that it can show the varying
intensity of gray against a white background.
Color monitor: This monitor can display several million colors.
Classification of monitor on the basis of their display technique:
Cathode Ray Tube (CRT) Monitor
Liquid Crystal Display (LCD) Monitor
Light Emitting Diode (LED) Monitor
Liquid Crystal Display (LCD) Monitor
A liquid crystal display (LCD) monitor is a computer monitor or
display that uses LCD technology to show clear images and is
found mostly on laptop computers and flat panel monitors.
This technology has replaced the traditional cathode ray tube
(CRT) monitors.
The liquid crystalline material is sandwiched between two glass or
plastic plates. The front plate is transparent and the back is
reflective.
LCD is lighter in weight, not bulky but expensive compared to CRT
monitors. It consumes low voltage and power consumption.
Light Emitting Diode (LED) Monitor
Serial Port
A serial port enables a line to be connected that will send bits one after the other
on the single line, like cars on a one lane highway. Serial lines are used to link
slow speed devices and equipment that is not close by.
Serial ports are used principally for communications lines, modems and mice.
They are frequently labeled COM for communications purpose.
• Universal Serial Bus (USB)
Universal Serial Bus (USB) is a serial bus standard to connect
devices to a host computer.
It was designed to allow many peripherals to be connected
using a single standardized interfaces socket, to improve plug
and play capabilities that allows devices to get connected and
disconnected without powering off the computer.
It includes providing power to low-consumption devices
eliminating the need for an external power supply and
allowing many devices to be used without requiring
manufacture-specific drivers to be installed.
HDMI
HDMI stands for High Definition Multimedia Interface and
is the most frequently used HD signal for transferring both
high definition audio and video over a single cable.
It is used both in the commercial sector and is the most used
cable in homes connecting devices such as digital TV, DVD
player, Blue Ray player, Play station with the television or
projector .
Expansion slot
An expansion slot refers to any of the slots on a
motherboard that can hold an expansion card to expand
the computer's functionality, like a video card, network
card, or sound card.
The expansion card is plugged directly into
the expansion port so that the motherboard has direct
access to the hardware.