Logic Circuits and Switching Theory: By: John Neil F. Romasanta
Logic Circuits and Switching Theory: By: John Neil F. Romasanta
Switching Theory
By: John Neil F. Romasanta
Logic Circuits and Switching Theory
Boolean Algebra
Number System
Number System
1100111010₂ 826 ₁₀
1 1 0 0 1 1 1 0 1 0
2⁹ 2⁸ 2⁷ 2⁶ 2⁵ 2⁴ 2³ 2² 2¹ 2⁰
512 + 256 + 0 + 0 + 32 + 16 + 8 + 0 + 2 + 0
Ans. 826₁₀
EXAMPLE: Binary to Decimal
11010.01101₂ 26.328125
₁₀
1 1 0 1 0. 0 1 1 0 1
Ans. 26.328125₁₀
PRACTICE: Binary to Decimal
1100111010₂ 1472
8
0 0 1 1 0 0 1 1 1 0 1 0
4 2 1 4 2 1 4 2 1 4 2 1
1 4 7 2
Ans. 1472₈
Practice: Binary to Octal
1. 1101110101₂ 1565
8
2. 10111110101₂ 2765
8
Binary to Hexadecimal
Example: Binary to Hexadecimal
11111010100111₂ 3EA7
16
0 0 1 1 1 1 1 0 1 0 10 0 1 1 1
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
A-10
B-11
3 E A 7
C-12
D-13
E-14 Ans. 3EA7₁₆
F-15
Practice: Binary to Hexadecimal
1. 1101110101101₂ 1BAD
16
2. 1011011110101₂ 16F5
16
Octal to Binary
Example: Octal to Binary
110010111101011
62753₈
2
6 2 7 5 3
4 2 1 4 2 1 4 2 1 4 2 1 4 2 1
1 1 0 0 1 0 1 1 1 1 0 1 0 1 1
Ans. 110010111101011₂
Practice: Octal to Binary
1. 75341₈ 111101011100001
1110000011011
2. 16033₈ 2
Octal to Decimal
Example: Octal to Decimal
62753₈ 26091
10
6 2 7 5 3
8⁴ 8³ 8² 8¹ 8⁰
6 X 8⁴ 2 x 8³ 7 X 8² 5 X 8¹ 3 X 8⁰
Ans. 26091₁₀
Practice: Octal to Decimal
1. 75341₈ 31457
10
2. 16033₈ 7195
10
Octal to Hexadecimal
Example: Octal to Hexadecimal
62753₈ 65EB
16
Octal to Binary 6 2 7 5 3
A-10
0110 0101 1110 1011
B-11
C-12
D-13
E-14
F-15
6 5 E B Ans. 65EB₁₆
Practice: Octal to Hexadecimal
1. 75341₈ 7AE1
16
2. 16033₈ 1C1B
16
Hexadecimal to Binary
Example: Hexadecimal to Binary
11101110000101000011
EE143₁₆
2
Octal to Binary E E 1 4 3
8421
A-10
B-11 1110 1110 0001 0100 0011
C-12
D-13
E-14
F-15
Ans. 11101110000101000011₂
Practice: Hexadecimal to Binary
1. BAD1₁₆ 1011101011010001
2
1110011100100
2. 1CE4₁₆ 2
Hexadecimal to Octal
Example: Hexadecimal to Octal
E7A6C₁₆ 3475154
Hexadecimal to Binary 8
8421 E 7 A 6 C
1. A2C5E₁₆ 2426136
8
2. B7A6D₁₆ 2675155
8
Hexadecimal to Decimal
Example: Octal to Hexadecimal
EE143₁₆ 975171
10
E E 1 4 3
Ans. 975171₁₀
Practice: Hexadecimal to Decimal
1. BAD1₁₆ 47825
10
7396
2. 1CE4₁₆ 10
Basic Logic Gates
Logic Gates
(A+B)(C+D)
C+D
SAMPLE PROBLEM
A B C ABC+A(B+C)
0 0 0 0
ABC ABC+A(B+C)
0 0 1 0
0 1 0 0
A 0 1 1 0
B 1 0 0 1
A(B+C) 1 0 1 1
1 1 0 1
B+C
C 1 1 1 1
Universal Logic Gates
Universal Logic Gate
Given
(A+C)(B+D)
(A+C)+(B+D)
(AC)+(BD)
AC+BD
Example: Using De Morgan’s Theorem
Given
AB+C
AB(C)
AB(C)
ABC
BOOLEAN ALGEBRA
Simplify the following Boolean equations
1. (A+B)(AB)
2. (A+B)(A+B)
3. BC+ABC+BC
4. A(B+C)+A+B
5. A+AB+AB+A+B
Thank You
and
Goodluck !