Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 11

Digital Logic Design(CS-128T)

Lecture 09

Lecture by:
Mr. Shakir Karim
Assistant Professor
CSITD, SSUET

Batch 2021F
LOGIC GATES USING SWITCH

AND GATE USING SWITCH


Two input AND gate needs, 2 input device, that’s why 2
switches are used and an output is LED connecting
buttons in series for AND Gate.
• When both buttons are not pressed it means input
logic is “0 and 0”, In that case LED will not glow.
• When any button is not pressed, the LED will not
glow, it means the logic is “0 and 1” or “1 and 0”.
Only when both buttons get pressed logic are “1
and 1”, LED will glow as seen in figure on next slide
below.
AND GATE USING SWITCH

                                                                                                                
OR GATE USING SWITCH
• Similarly, we know 2 input OR gate needs, 2 input
devices, that’s why 2 switches are used and an
output device is LED. We connect buttons
in parallel for OR Gate.
– Here, when both buttons are unpressed it means input
logic is “0 and 0”, In that case LED will not glow.
– When any button is pressed, the LED will glow, it
means the logic is “0 and 1” or “1 and 0”.
– And, when both buttons get pressed, the logic is “1
and 1”, the LED will glow as seen in the image below.
OR GATE USING SWITCH

                                                                                                                
Draw a logic circuit for

Computer Science & Information Technology Department


Sir Syed University of Engg. & Tech. Lecture by: Mr. Shakir Karim
What will be the output?

Computer Science & Information Technology Department


Sir Syed University of Engg. & Tech. Lecture by: Mr. Shakir Karim
What will be the output?

D
A B C

Computer Science & Information Technology Department


Sir Syed University of Engg. & Tech. Lecture by: Mr. Shakir Karim
Let’s design a circuit
A room has two doors and a light bulb. The light bulb is
controlled by three switches, A, B, and C. There is a
switch beside each door and a third switch in another
room. The light bulb is turned on (LTON) any time when
an odd number of switches are closed (active). Find the
expression for the function LTON and implement it with a
circuit having minimum number of gates. Assume that
the inputs follow positive logic.

Computer Science & Information Technology Department


Sir Syed University of Engg. & Tech. Lecture by: Mr. Shakir Karim
Truth Table
A B C LTON
0 0 0  
0 0 1 1
0 1 0 1
0 1 1  
1 0 0 1
1 0 1  
1 1 0  
1 1 1 1

Computer Science & Information Technology Department


Sir Syed University of Engg. & Tech. Lecture by: Mr. Shakir Karim
Expression from Truth Table
A B C LTON
0 0 0  
0 0 1 1
0 1 0 1 ABC
0 1 1   ABC
1 0 0 1
1 0 1   ABC
1 1 0  
1 1 1 1
ABC

LTON = ABC + ABC + ABC + ABC

Computer Science & Information Technology Department


Sir Syed University of Engg. & Tech. Lecture by: Mr. Shakir Karim

You might also like