Digital Electronics
Digital Electronics
ELECTRONICS
HISTORY
Binary Numbers:
0 1
logic 0 logic 1
False True
Low High
d. Decimal to Base-6
Ex: (76)10 = (204)6
76÷6=12 remainder 4
12÷6=2 remainder 0
2÷6=0 remainder 2
Explanation: 62(2) + 61(0) + 60(4)
2. Any Base to Decimal – Multiply the number with the given base with its respective
weights and add
a. Binary to Decimal
Ex: (1001)2 = (9)10 → 23(1) + 22(0) + 21(0) + 20(1)
b. Octal to Decimal
Ex: (65)8 = (53)10 → 81(6) + 80(5)
c. Hexa-Decimal to Decimal
Ex: (FF)16 = (255)10 → 161(F==15) + 160(F==15)
d. Base-7 to Decimal
Ex: (56)7 = (41)10 → 71(5) + 70(6)
3. Any Base to Any Base – To convert from one base to other One have to Follow two steps
i. Firstly, Convert from any base to decimal
ii. Next, Convert from decimal to the target base
a. Hexa-Decimal to Octal
Ex: (7F)16 = (127)8
Explanation:
Step-1
(7F)16 = (7)161 + (15)160 → (127)10
Step-2
1. 127÷8=15 remainder 7
2. 15÷8=1 remainder 7
3. 1÷8=0 remainder 1
b. Octal to Hexa-Decimal
Ex: (127)8 = (7F)16
Explanation:
Step-1
(177)8 = (1)82 + (7)81 + (7)80 → (127)10
Step-2
1. 27÷16=7 remainder 15 (which is F in hexadecimal)
2. 7÷16=0 remainder 7
c. Octal to Binary
Ex: (37)8 = (11111)2
Explanation:
Step-1
(37)8 = (3)81 + (7)80→ (31)10
Step-2
1. 31÷2=15 remainder 1
2. 15÷2=7 remainder 1
3. 7÷2=3 remainder 1
4. 3÷2=1 remainder 1
5. 1÷2=0 remainder 1
Shortcut: Write each symbol in 3 bits binary → 37 = (011 111)2
d. Binary to Octal
Ex: (1000101)2 = (105)8
Explanation:
Step-1
(1000101)2 = 26 (1) + 22 (1) + 20 (1) = (69)10
Step-2
1. 69÷8=8 remainder 5
2. 8÷8=1 remainder 0
3. 1÷8= 0 remainder 1
Shortcut: Group Three Bits binary from the LSB → 001 | 000 | 101 =
(105)8
e. Octal to Hexa-Decimal
Ex: (65)8 = (35)16
Group four bits binary from the three bits binary from LSB
(65)8 → 0011 | 0101 = (35)16
f. Hexa-Decimal to Decimal
Ex: (35)16 = (65)8
Group three bits binary from the four bits binary from LSB
(35)16 → 00 | 110 | 101 = (65)8
For numbers with Fractional Part:-
LOGIC GATES:
1. AND Gate
• Symbol:
• Function: Outputs true (1) only if both inputs are true (1).
A B Output (A AND B)
0 0 0
0 1 0
1 0 0
1 1 1
2. OR Gate
• Symbol:
0 0 0
0 1 1
1 0 1
1 1 1
0 1
1 0
4. NAND Gate
• Symbol:
• Function: Outputs false (0) only if both inputs are true (1).
A B Output (A NAND B)
0 0 1
0 1 1
1 0 1
1 1 0
5. NOR Gate
• Symbol:
• Function: Outputs true (1) only if both inputs are false (0).
A B Output (A NOR B)
0 0 1
0 1 0
1 0 0
1 1 0
6. XOR Gate (Exclusive OR)
• Symbol:
0 0 0
0 1 1
1 0 1
1 1 0
0 0 1
0 1 0
1 0 0
1 1 1
Summary
• AND: True only if both inputs are true.
• OR: True if at least one input is true.
• NOT: Inverts the input.
• NAND: True unless both inputs are true.
• NOR: True only if both inputs are false.
• XOR: True if exactly one input is true.
• XNOR: True if both inputs are the same.
Principle of Duality:
1) A + 0 =A 6) A.0 =0
2) A + 1 =1 7) A.A =A
3) A + A =A 8) A.A’ =0
4) A + A’ =1 9) (A’)’ =A
5) A.1 = A
Laws :
Commutative law : A + B = B + A, A.B = B.A
Associative law : A + (B + C) = (A + B) + C
A.(B.C) = (A.B).C
Distributive law : A + BC = (A+B)(A+C)
A.(B+C) = A.B + A.C
Absorption law : A + AB = A, A(A+B) = A
A + A’B = A+B A(A’ + B) = AB
Demorgan’s Law
1) (A.B)’ = A’ + B’ (Bubbled OR)
Formula:
4X! Implementation
Ex:
Solve the expression F (W, X, Y) = WX + W’Y + X’Y’, using reed
muller (AND+OR)
WX + W’Y + X’Y’ = WX ⊕ (1+W) Y ⊕ (1 ⊕ X) (1 ⊕ Y)
= WX ⊕ Y ⊕ WY ⊕ 1 ⊕ X ⊕ Y ⊕ XY
= WX ⊕ WY ⊕ 1 ⊕ X ⊕ XY
Logic Implementation
Karnaugh Maps:
Also known as K-maps, is a graphical technique for finding a Boolean
expression or simplifying Boolean expressions without using any Boolean
algebra theorems.
Types of K-map
1) 1-variable k-map
a’ a
Ex : Y = AB + CD + EF
𝒀 = ∑ (𝟎, 𝟓, 𝟔)
𝒎
Y = m0 + m5 + m 6
Y = A’B’C’ + AB’C + ABC’
Ex : Y = (A + B)(C+D)(E+F)
Y = ∏𝑚(0,2,4)
Y = m0 + m2 + m4
Y = (A + B + C)( A + B’ + C)( A’ + B + C)