You are on page 1of 24

Lecture-4

Digital Electronics
(ITIT1201)

Dr. Nalin Kumar Sharma


Deptt. of Electronics and Electrical Engineering
Objectives of this Lecture
• Number system conversion.
• Basic binary arithmetic

Dr. Nalin Kumar Sharma 2


Number System
Name Base or Radix Different digits ( 0 to r-1)
(r)
Binary 2
Octal 8
Decimal 10
Hexadecimal 16

3
Positional Number System

Dr. Nalin Kumar Sharma 4


Positional Number System: Binary

Dr. Nalin Kumar Sharma 5


Positional Number System: Octal

Dr. Nalin Kumar Sharma 6


Positional Number System: Hexadecimal

Dr. Nalin Kumar Sharma 7


Positional Number System: General Formula
Any number system with radix x, having m digits to left and n digits in
right of decimal point can be expressed as:

Dr. Nalin Kumar Sharma 8


Conversion: Decimal to any other number

(37.6875 )10 =()𝑥

Dr. Nalin Kumar Sharma 9


Decimal to Binary

(37.6875 )10 =()2

Dr. Nalin Kumar Sharma 10


Decimal to Octal

(128.25 )10 =( )8

Dr. Nalin Kumar Sharma 11


Decimal to Hexadecimal

(128 . 25 )10 =( )16

Dr. Nalin Kumar Sharma 12


Type:2 Binary to decimal
• 11000110

Dr. Nalin Kumar Sharma 13


Octal to decimal
• 237

Dr. Nalin Kumar Sharma 14


Binary to decimal
• A3B

Dr. Nalin Kumar Sharma 15


Type: 3 Octal-binary
• Each significant digit in given number system is replaced by its 3-bit
binary equivalent.

• Ex: 376

• Octal-binary: Starting from LSB, each group of 3 bits is replaced by its


decimal equivalent.

• Ex: 10011010101
Dr. Nalin Kumar Sharma 16
Type: 3 Hexadecimal-binary

• Ex: 2DH

• Ex: 011110110101

Dr. Nalin Kumar Sharma 17


Type-4: Hexadecimal to Octal

Dr. Nalin Kumar Sharma 18


Problems

Dr. Nalin Kumar Sharma 19


ADDITION

Dr. Nalin Kumar Sharma 20


Binary Operations
• Addition

Dr. Nalin Kumar Sharma 21


Binary Operations
• Subtraction

Dr. Nalin Kumar Sharma 22


Binary Operations
• Multiplication

Dr. Nalin Kumar Sharma 23


Binary Operations
• Division

Dr. Nalin Kumar Sharma 24

You might also like