Number System
Number System
Nursing Instructor
Dhaka Nursing College,
Dhaka
Topic: Number System of
Computer
Level: Midwifery 1st year
Introduction
Computer is an advanced electronic device
that takes raw data as input from the user and
processes these data under the control of set of
instructions (called program) and gives the result
(output) and saves output for the future use.
It can process both numerical and nonnumerical (arithmetic and logical) calculations.
10/01/16
Characteristics of
computers:
10/01/16
Characteristics of computers
(cont)
10/01/16
Characteristics of
computers (cont)
o 4) Storage Capacity : The computer has a provision to
store large volumes of data in the small storage
devices, which have capacity to store huge amounts
of data and help the retrieval of data an easy task.
o 5) Versatile : The computer perform three basic
operations.
a) It is capable to access and accept information
through various input-output devices from the user.
b) It performs basic Arithmetic and Logic operations
on data as desired.
10/01/16
Characteristics of
computers (cont)
c) It is capable to generate the desired output
in the desired form.
6) Automation : Once the instructions fed into
computer it works automatically without any
human intervention until the completion of
execution of program until meets logical
instructions to terminate the job.
10/01/16
Limitation of Computer
o 1) Computer does not work on itself, it requires set of
instructions to be provided, and else computer
(Hardware) is waste.
o 2) Computer are not intelligent, they have to be
instructed about each and every step which they have
to perform.
o 3) Computers cannot take decisions on its own, one
has to program the computer to take an action if some
conditional prevail.
o 4) Computers, unlike humans cannot learn by
experience.
10/01/16
Number system
o Introduction
Every computer stores number, letters, and other
special characters in coded form. Before going into the
details of these codes, it is essential to have a basic
understanding of a number used number systems by
computer professionals and relationship among them.
Computer data looks especially strange because
people normally use base 10 to represents numbers. The
decimal numbers system (deci means 10 in Latin) is
called base 10 because 10 symbols are available: 0, 1, 2,
3, 4, 5, 6, 7, 8, and 9. Each symbol in a number is called
digit. So 10 is a two digit number.
10/01/16
11
12
13
10/01/16
14
10/01/16
15
16
Hexadecima Binary
l
Octal
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
0
1
2
3
4
5
6
7
0
1
10
11
100
101
110
111
17
Hexadecima Binary
l
Octal
1000
10
1001
10
1010
11
1011
12
1100
13
1101
14
1110
15
1111
16
10
10000
10/01/16
18
Column value
1
2
3
4
5
20=1
21=2
22=4
23=8
24=16
1
2
4
8
16
19
8
*1
4
*0
16
8
0
Step 3: Sum of total products
16+ 8+ 0+ 0+1 =25
Hence, 110012=2510
10/01/16
2
*0
1
*1
20
Column value
1
2
3
4
80
81
82
83
10/01/16
1
8
64
512
21
10/01/16
22
Hexadecimal to Decimal
Example: 1AC16=?10
Here, 1AC16=1*162 +A*161 +C*160
=1*256 +10*16 +12*1
=256+160 +12
=428
Hence, 1AC16=42810
10/01/16
23
Computer code
Numeric data:
We see or understand that binary numbers are coded
to represent characters in computer.
Binary coding schemes are used in computers to
represent data internally.
In binary coding, every symbol which appears in data
is represented by a group of bits. The group of bits
used to represent a symbol is called a bite.
However, the term of bite is commonly used to mean
an 8-bit (a group of 8 bits), because most of the
modern computers used to 8bits to represent a
symbol.
10/01/16
24
10/01/16
25
BCD Equivalent
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
26
ASCII (cont)
ASCII is of two types - ASCII7 and ASCII8. ASCII7 is
a 7-bit code, which allows 128(27) different characters.
The first three bits are used as zone bits.
Microcomputers using 8-bits bite (group of 8 bits for 1
bite).
28
29
10/01/16
30
Logic gate
All operations within a computer are carried out by means
of combinations of signal passing through standard block
of built-in circuits, which are known as logic gate.
In other words, a logic gate as an electronic circuit, which
operates on one or more input signals, to produce
standard output signals. These logic gates are building
blocks of all the circuits in computer.
Computer circuits are built up using combination of
different type of logic gates to perform the necessary
operation.
These are sufficient to introduce the concept of circuit
design by using logic gate.
31
AND Gate
To have a conceptual idea, let us consider the case of figure
2.
Here, two switches A and B are connected in series.
It is obvious that the input current will reach the output
point, only when both the switches are in the on (1) state.
There will be on output (output=0), if either one or both the
switches are in the off (0) state.
Hence, two or more switches connected in series behave as
an AND gate.
The behavior of logic gate , that is , the state of output
signal, depending on the various combinations of input
signals, is conveniently represented by means of truth table.
33
Truth table:
Output
C=A+
B
34
OR Gate
An OR gate is the physical realization of the logical
addition (OR) operation.
It is an electronic circuit which generates an output
signal of 1, if any of the output signals is also 1.
Two or more switches connected the parallel behave
as an OR gate.
It can be seen from the figure 3 that the input current
will reach the output point, when any one of the two
switches are in the on (1) state.
There will be no output, only when the both switches
(A and B) are in the off (0) state.
10/01/16
35
OR Gate (Cont)
The truth table and the block diagram symbol for an
OR gate, for two input signals, are shown in figure 4.
Observe that, an output of 1 is obtained, when any of
the input signals is1.
Truth table:
Input
10/01/16
A
0
0
1
1
Output
B
C=A+B
0
0
1
1
0
1
1
1
36
NOT Gate
A NOT gate is the physical realization of the
completion operation. It is an electronic circuit which
generates an output signal, which is the reverse of the
input signal.
A NOT gate is also known as an inverter because it
inverts the output.
The truth table and the block diagram symbol for a
NOT gate are shown in figure 4.
Recall that the complementation is unary operation,
which is defined on a single variable. Hence, a NOT
gate always has a single input.
10/01/16
37
NAND Gate
38
NOR Gate
A NOR gate is a complemented OR gate. That is, the
out put of a NOR gate will be a 1 , only when all
inputs are 0, and it will be a 0, if any input is a 1.
figure 5.
10/01/16
39
10/01/16
40
A lot of thanks,
For your concentration.
10/01/16
41