01 Fundamentals of Computer
01 Fundamentals of Computer
FUNDAMENTALS OF COMPUTER
Computer
Hardware Software
Input
Unit
CENTRAL PROCESSING
UNIT(CPU)
Processor is the computer’s brain.
It processes basic instructions stored in memory.
It co-ordinates all computing and decision making
operations.
It determines the overall performance of the
computer.
It is a package that contain transistors and other
components into a silicon chip referred as
microprocessor.
Registers are the storage locations inside the CPU
Central Processing Unit (CPU)
It is the brain of the computer. It controls, operates
and co-ordinates all operations inside the computer.
It is also called microprocessor which is a single
chip.
It has two parts
1. Control Unit (CU)
It co-ordinates and controls all activities of
computers.it works like a nervous system in our
body
2. Arithmetic and Logic Unit (ALU)
It perform all arithmetic and logical operations
ARITHMETIC AND LOGIC UNIT
They are:
1.Monitors
2.Printers
Computer
Computer can be defined as it is an
electronic machine designed to accept
and store input data then Process them
and produces output as results under
the direction of a stored program.
For data processing input devices,
central processing unit, output devices
and memory devices are used for input,
process, output and storage
respectively.
Characteristics of Computers
(Advantages of Computers)
Speed
A computer can perform millions of operations in a second. It can do in a
minute, as much work as man can do in a year. The time taken to execute
an instruction is only a few nano seconds (1 nano sec = 10-9 sec)
Accuracy
A computer can perform arithmetic calculations with a very high degree of
accuracy. But accuracy, we means less errors in the output and also the
precision with which calculation are performed. Because of high degree of
accuracy, computers can be used to solve scientific problems.
Diligence (Hard Working)
Since computer is a machine it can operate for long hours unlike human
beings it will not show any emotions or disobedience. Due to this, they are
best suited for routine jobs. They do not become lazy or express feeling for
repetitiveness.
Characteristics of Computers
Versatility
The computer is a very versatile tool. It can be used
to perform many different kinds of processing tasks. It
is a general purpose data processing machine. It can
perform any task that could be accomplished by a
series of logical steps.
Huge Memory (power of remembering)
Computers have enormous memory capacity.
Huge volume of data can be stored in its memory
for processing.
Disadvantages (Lack) of Computer
No IQ
They don’t have the power to make judgment of their
own. If a computer is given with wrong instructions
or invalid data, it cannot identify this. Hence if will
produce erroneous results.
Lack of Decision Making Power
Number Systems
AKM HSS Kottoor
Download these slides from
http://akmhsskottoor.webs.com
PRESS MOUSE BUTTON OR SPACE TO CONTINUE
NUMBER SYSTEM
Reminder
3710 = ( 1 0 0 1 0 1 )2 2 37
2 18 1
2 9 0
2 4 1
2 2 0
1 0
2.Decimal to Binary(Fractions)
25.37510 = ( 1 1 0 0 1 . 0 1 1 )2
Remainder
2 25 0.375 X 2 =0.750 0
2 12 1
2 6 0 0.750 X 2 =1.500 1
2 3 0
1 1 0.500 X 2 =1.000 1
3.Decimal to Octal
Remainder
22510 = ( 3 4 1)8 8 225
8 28 1
3 4
4.Decimal to Octal(Fractions)
198.57510= ( 3 0 6 . 4 1 0 )8
Remainder
8 198 0.575 X 8 =4.600 4
8 24 6
3 0 0.600 X 8 =1.200 1
AKMHSS Kottoor
0.200 X 8 =0.400 0
© TCA Gafoor
5.Decimal to Hexadecimal
Remainder
65910 = ( 2 9 3)16 16 659
16 41 3
2 9
6.Decimal to Hexadecimal(Fractions)
266.36710= ( 1 0 A . 5 D F )16
Remainder
16 266 0.367 X 16 =5.872 5
16 16 10 (A)
( 1 0 0 1 0 1 )2 = ( 1 0 0 1 0 1 )2
= 1 X 25 + 0 X 24 + 0 X 23 + 1 X 22 + 0 X 21 + 1 x 20
= 1 X 32 + 0 X 16 + 0 X 8 + 1 X4 + 0 X 2 + 1 x 1
= 32 + 0 + 0 + 4 + 0 + 1
= 37
8.Binary Fractions to Decimal
( 11101.110 )2 =
= 1 X 24 + 1 X 23 + 1 X 22 + 0 X 21 + 1 X 20 + 1 x 2-1+ 1 x 2-2+ 0 x 2-3
= 1 X 16 + 1 X 8 + 1 X 4 + 0 X2 + 1 X 1 + 1x½ + 1x¼ + 0
© tcagafoor.webnode.com
= 16 + 8 + 4 + 0 + 1 + ½ + ¼ + 0
( 364 )8 =
= 3 X 8 2
+ 6 X 8 1
+ 4 X 8 0
= 3 X 64 + 6X 8 + 4X1
= 192 + 48 + 4
= 244
10.Octal Fractions to Decimal
( 237.16)8 =
= 2 X 8 2
+ 3 X 8 1
+ 7 X 8 0
+ 1 X 8 -1
+ 6 X 8 -2
= 2 X 64 + 3 X 8 + 7 X 1+ 1 X 1/8 + 6 X 1/64
= 128 + 24 + 7 + 0.125 + 0.09375
= 159.21875
11.Hexadecimal to Decimal
( 12A )16=
= 1 X 16 2
+ 2 X 16 1
+ 10 X 16 0
= 1 X 256 + 2 X 16 + 10 X 1
= 256 + 32 + 10
= 298
12.Hexadecimal Fractions to Decimal
( 2AC.B)16 =
= 2 X 16 2
+ 10 X 16 1
+ 12 X 16 0
+ 11 X 16 -1
= 2 X 256 + 10 X 16 + 12 X 1 + 11 X 1/16
= 512 + 160 + 12 + 0.688
= 684.688
13.Binary to Octal
(1011110)2 = 001|011|110
= 1 3 6
= (136)8
(10111111.0111)2 = 010 |111|111. 011|100
= 2 7 7. 3 4
= (277.34) 8
14.Octal to Binary
( 147)8 = 1 4 7
= (001100111)2
( 637.543)8 = 6 3 7 . 5 4 3
= 110 011 111 . 101 100 011
= (110 011 111.101 100 011)2
15.Binary to Hexadecimal
(1011110)2 = |
0 101 1110
= 5 E
= (5E)16
(10111111.0111)2 =
=
|
1011 1111. 0111
© tcagafoor.webnode.com
B F . 7
= (BF.7)16
16.Hexadecimal to Binary
( A69)16 = A 6 9
Addition Rules
0+0=0
1+0=1
0+1=1
1 + 1 = 0 and a carry 1 to the next column
1 Carry
1001+
© tcagafoor.webnode.com
101
11 1 0
18.Binary Subtraction
Subtraction Rules
0-0=0
1-0=1
1-1=0
0 - 1 = 1 with borrow 1
0 10 0 10
1 0 1 1 0-
© tcagafoor.webnode.com
1 1 0 1
1 0 0 1
19.Binary Representation of Integers
In 2’s complement the + ve numbers are represented in their original form and
negative numbers are in the 2’s complement form.2’s complement is calculated
by adding 1 to 1’s complement.
1.Represent (11)10 in 2’s Complement form
0 0 0 0 1 0 1 1
2.Represent (-11)10 in 2’s Complement form
Binary of (+11)10 0 0 0 0 1 0 1 1
1’s comp. of (-11)10 1 1 1 1 0 1 0 0 +
Add 1 to 1’s compli. 1
2’s Complement 1 1 1 1 0 1 0 1
REAL NUMBER REPRESENTATION/
FLOATING POINT NUMBERS
Real numbers can be represented by their Parts
0.2575 x 102
Mantissa x Exponent
10 bit x 6 bit
Mantissa Part can be represented using 10 Bit and
exponent part can be represented using 6 bit.
Mantissa Part in 2s Compliment form
And exponent part represent from 0 to 63
CHARACTER REPRESENTATION
Methods user for Representing characters in Memory
1. ASCII
ASCII (American Standard code for information
interchange) is 7 bit code to represent all characters in
US keyboard. Using 7bit ,this can Represent 27
characters = 128 characters.Which is enough to reprsent
all Character,alphabets,numbers in keyboard
2. Unicode
Unicode is a 16/32 bit code,which have a capacity to
represent all of the characters used in written
language of the world other than English and
includes all punctuation marks,maths
symbols,technical symbols,arrows etc..
CHARACTER REPRESENTATION