You are on page 1of 14

DEPARTMENT OF TECHNICAL EDUCATION

ANDHRA PRADESH
Name : P.Swarupa
Designation : Lecturer
Branch : ECE
Institute : Govt. Polytechnic, Masabtank, Hyd.
Semester : III Semester
Subject : Digital Electronics
Subject Code : EC – 304
Topic : Basics of Digital Electronics
Duration : 50 Mts.
Sub-Topic : Number Systems (Hexadecimal System)
Teaching Aids : PPT Animations
EC304.3 1
Objectives

On completion of this period, you would be able to

• Know what is a Hexadecimal number.

• Convert a Hexadecimal to binary & vice-versa.

• Convert a decimal to hexadecimal & vice-versa.

EC304.3 2
Hexadecimal Numbers

• It is a weighted code.

• The base of Hexadecimal number system is 16.

• Hexadecimal number system has 16 digits.

• It uses 0 to 9 numbers and A to F alphabets.

• After reaching ‘9’ in hexadecimal system , we continue


counting as A,B,C,D,E & F.

• Used extensively in microprocessor systems.


EC304.3 3
Hexadecimal to binary conversion
• To convert a hexadecimal number to a binary number,
convert each hexadecimal digit to its 4-bit equivalent
binary code.

• For example : 9AF . 3 Hexadecimal is Converted to


Binary as follows:

9 A F . 3

1001 1010 1111 . 0011

EC304.3 4
Binary to Hexadecimal conversion
• A given binary number can be converted into hexadecimal
number by grouping the given binary number into 4- bits.

• For example the binary number is 1011001001.

• The grouping should be considered from LSB towards MSB

in 4bits.

10 1100 1001
By adding zero’s on left side
0010 1100 1001
2 C 9
EC304.3 5
Decimal to Hexadecimal conversion
• To convert decimal number to hexadecimal number,
divide decimal number successively by 16.
• Write down the remainders after each division.
• The remainders in the reverse-order form the
hexadecimal number.
• Example : Convert decimal number 873 into hexadecimal

• Therefore, (873)10 = (369)16.


For Fractional part
• With decimal fractions, multiply by ‘16’, write the carry into
integer position.

• For example: Decimal number 0.5 is converted to


hexadecimal as follows:
0.5x16 = 8.0

8
Therefore, (0.5)10= (0.8)16

EC304.3 7
Summary
We have discussed about

• Hexadecimal number system.

• Conversion of Hexadecimal to binary & vice-versa.

• Conversion of a Hexadecimal number to decimal

and vice-versa.

EC304.3 8
Quiz

EC304.3 9
1. Hexadecimal number system is used in

a) Microprocessor system

b) Watches

c) Calculators

d) All of the above


EC304.3 10
2. The Hexadecimal number system is

c) A weighted code

b) An unweighted code

c) There is no positional value

d) It is weighted and unweighted

EC304.3 11
Frequently Asked Questions

1. Convert the following binary numbers to octal


and then to decimal:

a) 11011100.101010

b) 01010011.010101

c) 10110011

EC304.3 12
Frequently Asked Questions (contd..)

2. Convert the following numbers from decimal

to Octal and then to binary:

a) 375

b) 249

c) 27.125
Frequently Asked Questions (contd..)

2. Convert decimal 65,535 to its hexadecimal and binary


equivalents.

4. Convert the binary numbers in problem 1 to


Hexadecimal.

7. Convert the decimal numbers in problem 2 to


Hexadecimal.

EC304.3 14

You might also like