Module 4 - 548 - 24ESC14C - 30-10-2024
Module 4 - 548 - 24ESC14C - 30-10-2024
DIGITAL ELECTRONICS
Prepared by
Dr. Anna Merine George
Asst. Professor, Dept of ECE, BMSIT&M
1
INTRODUCTION
2
ANALOG & DIGITAL SIGNAL
4
BLOCK DIAGRAM OF DIGITAL SYSTEM
• Digital electronics is the field of electronics involving the study of digital signals
and the engineering of devices that use or produce them.
• Usually made from logic gates, packaged in integrated circuits.
• Each logic gate is designed to perform a Boolean function
5
NUMBER SYSTEM
6
WHY NUMBER SYSTEMS?
7
NUMBER SYSTEMS
8
NUMBER SYSTEMS
9
NUMBER CONVERSIONS
10
BINARY TO DECIMAL CONVERSIONS
Binary 1 1 0 0 1 1
Decimal 32 + 16 + 0 + 0 + 2 + 1 = 51
11
DECIMAL TO BINARY CONVERSION
Divide by 2 Process
Decimal # 13 ÷ 2 = 6 remainder 1
6 ÷ 2 = 3 remainder 0
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
12
1 1 0 1
NUMBER CONVERSIONS
Binary-to-
7-Segment
Decoder/
Driver
13
HEXADECIMAL AND BINARY CONVERSIONS
Hexadecimal E A 14
DECIMAL TO HEXADECIMAL
CONVERSION
Divide by 16 Process
Decimal # 47 ÷ 16 = 2 remainder 15
2 ÷ 16 = 0 remainder 2
2 F 15
HEXADECIMAL TO DECIMAL
CONVERSION
Hexadecimal 2 D B
(256 x 2) (16 x 13) (1 x 11)
Add the binary numbers 1010 and 11 Add the Binary numbers 11010 and 1100
(carry) (carry)(carry)
1 1 1
1 0 1 0 1 1 0 1 0
+ 1 1 + 1 1 0 0
1 1 0 1 1 0 0 1 1 0
18
COMPLEMENTS
• Used in digital computers for simplifying the subtraction operation and for
logical manipulations.
• If the largest negative quantity to be represented is True origin
Offset Origin
known then it is possible to place the offset origin
sufficiently far to the left of the true origin so that all
*7 -3
negative quantities are measured rightward of the offset
10 units
origin.
Here in this example, 7 is the complement of 3. Graphical interpretation of
complements
19
TYPES OF COMPLEMENTS
• r’s complement:
• For Binary number: 2’s complement and for decimal numbers 10’s complement
• A positive number N in base r with an integer part of n digits, the r’s
complement of N is defined as 𝑟 𝑛 − 𝑁 for 𝑁 ≠ 0 and 0 for N=0.
• Find the r’s complement of following:
• 10’s complement of (52520)10 is 105 − 52520 = 47480
• 2’s complement of (101100)2 is (26 )10 - (101100)2 =010100
• 10’s complement of (0.3267)10 is 1 – 0.3267 = 0.6733.
No integer part , so 10n = 100 = 1
20
COMPLEMENTS
21
TYPES OF COMPLEMENT
• (r-1)’s complement
• A positive number N in base r with an integer part of n digits and a
fraction part of m digits, the (r-1)’s complement of N is defined as 𝑟 𝑛 −
𝑟 −𝑚 − 𝑁.
• 9’s complement of (0.3267)10 is 1 − 10−4 − 0.3267 =0.6732
• 1’s complement of (0.0110)2 is (1 − 2−4 )10 - (0.0110)2 =0.1001
• r’s complement can be obtained from the (r-1)’s complement after the
addition of 𝑟 −𝑚 to the least significant digit
22
SUBTRACTION WITH R’S COMPLEMENT
23
EXAMPLE
24
EXAMPLE
25
ADDING/SUBTRACTING IN 2S
COMPLEMENT
2s complement notation makes it possible to add and subtract signed numbers
(Decimal) 2s Complement
(+1) 0001
(- 1) 1111
+ (- 3) + 1101
+ (- 2) + 1110 (- 2) 11 1 0 2s complement
(- 3) 1 11 0 1 2s complement
(+5) 0 1 0 1
Discard
+ (- 4) + 1 1 0 0
(+1) 1 0 0 0 1
26
Discard
EXAMPLE
27
SUBTRACTION WITH (R-1)’S
COMPLEMENT
28
EXAMPLE
30
BOOLEAN ALGEBRA
31
BOOLEAN ALGEBRA
32
BOOLEAN ALGEBRA
33
BOOLEAN ALGEBRA
34
BOOLEAN PROPERTIES & THEOREMS
35
BOOLEAN PROPERTIES & THEOREMS
37
MINTERMS FOR 3 VARIABLES
38
MAXTERMS
A + B, A + B, '
A+ B , A + B
' ' '
39
MAXTERMS FOR 3 VARIABLES
40
EXAMPLE
41
SUM OF PRODUCTS (SOP)
42
PRODUCT OF SUMS (POS)
43
LOGIC GATES
44
LOGIC GATES
45
LOGIC GATES
46
LOGIC GATES
47
DIGITAL CIRCUITS
48
COMBINATIONAL CIRCUITS
49
FULL ADDER
Input Output
Logic Cin (Sum)
Symbol: Full
A
B Adder Cout (carry
out)
Full Adder is the adder that adds three inputs and produces two outputs.
50
FULL ADDER –TRUTH TABLE & LOGIC
DIAGRAM
𝑠𝑢𝑚=𝐴⊕𝐵⊕𝐶𝑖𝑛
𝐶𝑜𝑢𝑡=𝐴𝐵+𝐵𝐶𝑖𝑛+𝐴𝐶𝑖𝑛
51
IMPLEMENTATION OF HALF ADDER
WITH NAND GATES
52
IMPLEMENTATION OF HALF ADDER
WITH NOR GATES
53
PROBLEMS
1. Draw a network to realize the following by using only one AND gate and one
OR gate
2. Draw a network to realize the following by using two OR gates and two
AND gates
54