De Lecture - 01
De Lecture - 01
UNIT-2
UNIT-3
UNIT-4
BOOKS
UNIT-1
Chapter-1
Number Systems and Codes
Binary, Octal,
Hexadecimal, and
Decimal Number System
and their Conversion
What is Digital Electronics?
Digital electronics is
the branch of
electronics which is
based on the
combination and
switching of voltages
called logic levels.
Electronics circuits and systems are of two kinds -
analog and digital.
(1010.01)2
= 10.25
(1010.01)2 = (10.25)10
Octal to Decimal Conversion
Example: Convert the octal number
726 in to its decimal equivalent.
Example: Convert the octal number
12.2 in to its decimal equivalent.
Hexadecimal to Decimal Conversion
Example: Convert the hexadecimal
number 27FA in to its decimal equivalent.
Example: Convert (A0F9.0EB)16 to
decimal.
Binary to octal and vice versa
Example: Convert the binary number
1101010 in to its octal equivalent.
Example: Convert the octal number 562 in
to its binary equivalent.
Binary to Hexadecimal and vice versa
Example: Convert the binary number
111101 in to its hexadecimal equivalent.
Example: Convert the hexadecimal
number 2AB in to its binary equivalent.
Octal to Hexadecimal Conversion
• To convert an octal number to hexadecimal,
the simplest way is to first convert to binary
and then binary to hexadecimal.
Example: Convert 756.6038 to hexadecimal.
Hexadecimal to Octal Conversion
• To convert a hexadecimal number to octal , the
simplest way is to first convert to binary and
then binary to octal.
Example: Convert B9F.AE16 to octal.
MISCELLANEOUS EXAMPLES
Example:
Given that 1610 = 100b, find the value of b.
Solution
Given 1610 = 100b
Convert 100b to decimal.
Therefore, 16 = 1 × b2 + 0 × b1 + 0 × b0
or 16 = b2
or b = 4
Example: What should be the radix of the number
used in the following addition?
34 + 15 = 50
Solution
Given 34 + 15 = 50
or (34)r + (15)r = (50)r
or 3×r1 + 4×r0 + 1×r1 + 5×r0 = 5×r1 + 0×r0
or 3r + 4 + 1r + 5 = 5r + 0
or 4r + 9 = 5r
or 5r – 4r = 9
or r=9
Example: Determine the possible base in the
following arithmetic operation.
Solution