Lecture1 Chapter1 - Introduction To Digital Systems
Lecture1 Chapter1 - Introduction To Digital Systems
Numbers
Lecture1- Introduction to Digital Systems
Engr. Arshad Nazir, Asst Prof
Dept of Electrical Engineering
EE-223 Digital Logic Design Spring 2024 SEECS 1
Chapter Contents
Digital Systems
Binary Numbers
Number Base Conversion
Octal and Hexadecimal Numbers
Complements
Signed Binary Numbers
Binary Codes
Binary Storage and Registers
Binary Logic and Logic Gates
Timing Diagrams
Digital Multimeter
Digital thermometer
EE-223 Digital Logic Design Spring 2024 6
Analog and Digital Systems
Discrete Discrete
Inputs Information
Processing
System Discrete
Outputs
System State
Hexadecimal
(base16)
EE-223 Digital Logic Design Spring 2024 23
Decimal-r Conversion
• Conversion of a number in base r to decimal is done by expanding the number in
a power series and adding all the terms.
• For example, (C34D)16 is converted to decimal:
12 X 163 + 3 X 162 + 4 X 161 + 13 X 160 = (49997)10
• (11010.11)2 is converted to decimal:
1 X 24 + 1 X 23 + 0 X 22 + 1 X 21 + 0 X 20 + 1 X 2-1 + 1 X 2-2 = 26.75
• In general N=(Number)r = (a n-1 a n-2 … a1 a 0 . a -1 a -2 … a -m )r
(Integer Portion) + (Fraction Portion)
N= (a n-1 x r n-1 +a n-2 x r n-2 +… +a1 x r 1+a 0 x r 0+a x r -1 +a x
-1 -2 r -2 +…+a -m x r -m)10
( i = n −1
i =0
ai • r i + ) ( j =−1
a
j =− m j
• r j
)
13/2 = 6 + ½ a0 = 1
6/2 = 3 + 0 a1 = 0
3/2 = 1 + ½ a2 = 1
1/2 = 0 + ½ a3 = 1
(37)10 = 1001012
(422)10 = (1A6)16
Carry in (Z) of 1: Z 1 1 1 1
X 0 0 1 1
+Y +0 +1 +0 +1
CS 01 10 10 11