Number System
Number System
4× 103= 400
It has base '2' i.e. it has two base numbers 0 and 1 and these base numbers are called "Bits".
In this number system, group of "Four bits" is known as "Nibble" and group of "Eight bits" is known as
"Byte". i.e. 4 bits = 1 Nibble; 8 bits = 1 Byte
Binary to Decimal Conversion
A binary number is converted to decimal equivalent simply by summing together the weights of various
positions in the binary number which contains '1'.
Decimal to Binary Conversion
The integral decimal number is repeatedly divided by '2' and writing the remainders after each division
until a quotient 'O' is obtained.
To convert Fractional decimal into binary, Multiply the number by "2. After first multiplication integer digit of
the product is the first digit after binary point. Later only fraction part of the first product is multiplied by 2.
The integer digit of second multiplication is second digit after binary point, and so on. The multiplication by 2
only on the fraction will continue like this based on conversion accuracy or until fractional part becomes zero.
Octal-to-Binary Conversion
This conversion can be done by converting each octal digit into binary individually.
Binary-to-Octal Conversion
In this conversion the binary bit stream is grouped into groups of three bits starting at the LSB and the each
group is converted into its octal equivalent. After decimal point grouping start from left.
1.1.4 Hexadecimal Number System
The base for this system is "16", which requires 16 distinct symbols to represent the numbers.
It is a method of grouping 4 bits.
This number system contains numeric digits (0, 1, 2,....9) and alphabets (A, B, C, D, E and F) both,
so this is an "ALPHANUMERIC NUMBER SYSTEM".
Microprocessor deals with instructions and data that use hexadecimal number system for
programming purposes.
To signify a hexadecimal number, a subscript 16 or letter 'H' is used i.e. (A7) 16 or (A7)H
Hexadecima Decimal Binary
l
0 0 0
1 1 1
2 2 10
3 3 11
4 4 100
5 5 101
6 6 110
7 7 111
8 8 1000
9 9 1001
A 10 1010
B 11 1011
C 12 1100
D 13 1101
E 14 1110
F 15 1111
Hexadecimal-to-Binary Conversion
For this conversion replace each hexadecimal digit by its 4 bit binary equivalent.
Binary-to-Hexadecimal Conversion
For this conversion the binary bit stream is grouped into pairs of four (starting from LSB) and hex number is
written for its equivalent binary group.
Codes
When numbers, letters or words are represented by a special group of symbols, we say that they are being
encoded, and the group of symbols is called "CODE".