SlideShare a Scribd company logo
1 of 60
Download to read offline
Author : Khairi
LOGIC GATES
Logic
gate
Input
Output
q Logic gates are electronic switches
with one or more input but
only one output
q Logic gates are commonly found in
computers and other electronic
system
q Input and output for logic gates
only 1 or 0
Author : Khairi
TRUTH TABLE
All inputs and outputs of logic gates can be displayed by
using a table
The table is known as truth table
LOGIC GATES
Input Output
A B C X
Author : Khairi
NOT GATE
Symbol for NOT GATE
A X
INPUT OUTPUT
A X
1
0
Truth table
0
1
Boolean expression
X = A
Output is opposite to input
LOGIC GATES
Author : Khairi
NOT GATE
A X
INPUT OUTPUT
A X
1
0
Truth table
0
1
Corresponding electric circuit
LOGIC GATES
Symbol for NOT GATE
Author : Khairi
A X
INPUT OUTPUT
A X
1
0
Truth table
0
1
Corresponding electric circuit
LOGIC GATES
Symbol for NOT GATE
NOT GATE
Author : Khairi
AND GATE
Boolean expression
X = A B
INPUT OUTPUT
A B X
0
0
0
1
1 0
1 1
0
0
0
1
A
B
X
Corresponding electric circuit
Choose all high
LOGIC GATES
Author : Khairi
Boolean expression
X = A B
INPUT OUTPUT
A B X
0
0
0
1
1 0
1 1
0
0
0
1
A
B
X
Corresponding electric circuit
LOGIC GATES
AND GATE
Author : Khairi
NAND GATE
Boolean expression for X
X A B
=
A
B
X
LOGIC GATES
Author : Khairi
Combination of possible inputs
22 = 2 x 2
= 4
X A B
=
A
B
LOGIC GATES
NAND GATE
Author : Khairi
Truth table
A B X A B
=
Output for NAND GATE is opposite the output of AND GATE
0 0
X A B
=
A
B
LOGIC GATES
NAND GATE
Author : Khairi
Truth table
A B X A B
=
0 0
Input 00 for AND GATE produces 0 output
Inverting the output to get the output for AND GATE
1
0 1
X A B
=
A
B
LOGIC GATES
NAND GATE
Author : Khairi
Truth table
A B X A B
=
0 0 1
0 1 1
X A B
=
A
B
LOGIC GATES
Input 01 for AND GATE produces 0 output
Inverting the output to get the output for AND GATE
NAND GATE
Author : Khairi
Truth table
A B X A B
=
0 0 1
0 1 1
1 0 1
1 1 0
Corresponding electric circuit
X A B
=
A
B
LOGIC GATES
NAND GATE
Author : Khairi
OR GATE
A
B
X
Boolean expression for X
X = A + B
INPUT OUTPUT
A B X
0
0
0
1
1 0
1 1
0
1
1
1
Choose any one high
LOGIC GATES
Author : Khairi
OR GATE
A
B
X
Boolean expression for X
X = A + B
INPUT OUTPUT
A B X
0
0
0
1
1 0
1 1
0
1
1
1
Corresponding electric circuit
LOGIC GATES
Author : Khairi
NOR GATE
Boolean expression for X
X = A + B
A
B
X
INPUT OUTPUT
A B X
0
0
0
1
1 0
1 1
1
0
0
0
LOGIC GATES
Author : Khairi
COMBINATION OF LOGIC GATES
In the electronic circuit,logic gates are combined into various
combination to produce a desired output
LOGIC GATES
AND
NAND
AND
Author : Khairi
LOGIC GATES
COMBINATION OF LOGIC GATES
A
B
C
D
X
What is the Boolean expression for X
A B
Author : Khairi
LOGIC GATES
COMBINATION OF LOGIC GATES
A
B
C
D
X
What is the Boolean expression for X
A B
C D
Author : Khairi
LOGIC GATES
COMBINATION OF LOGIC GATES
A
B
C
D
X
What is the Boolean expression for X
A B
C D
A B C D
Author : Khairi
P
Q
X
Write the Boolean expression for X and state the equivalent
basic logic gate.
P + Q
P + Q
P
Q
X
Equivalent logic gate is NOR GATE
LOGIC GATES
COMBINATION OF LOGIC GATES
Author : Khairi
EXERCISE
P
Q
R
S
X
Write the Boolean expression for X
LOGIC GATES
X = P Q R S
+ +
Author : Khairi
LOGIC GATES
COMBINATION OF LOGIC GATES
1
0
0
1
X
What is the output,X ?
0
1
0
Author : Khairi
EXERCISE
Build a truth table for the combination of logic gates above
LOGIC GATES
A B X
0
0
1
1
0
1
0
1
0
1
0
0
A
B X
Author : Khairi
EXERCISE
LOGIC GATES
1
1
1
1
X
State the output for X
1
0
0
Author : Khairi
LOGIC GATES
EXERCISE
1
1
0
1
X
State the output for X
1
0
1
Author : Khairi
LOGIC GATES
EXERCISE
1
1
0
1
X
State the output for X
1
0
0
Author : Khairi
SERIAL INPUT
State the output for X
X
1011
1001
LOGIC GATES
Author : Khairi
1011
1001
1
X
LOGIC GATES
State the output for X
SERIAL INPUT
Author : Khairi
1
X
1011
1001
0
LOGIC GATES
State the output for X
SERIAL INPUT
Author : Khairi
1
X
1011
1001
01
LOGIC GATES
State the output for X
SERIAL INPUT
Author : Khairi
1
X
1011
1001
011
LOGIC GATES
State the output for X
SERIAL INPUT
Author : Khairi
1
X
1011
1001
011
Output X = 1011
LOGIC GATES
State the output for X
SERIAL INPUT
Author : Khairi
State the output for X
1011
1001 X
1
LOGIC GATES
SERIAL INPUT
Author : Khairi
1011
1001 X
10
LOGIC GATES
State the output for X
SERIAL INPUT
Author : Khairi
1011
1001 X
100
LOGIC GATES
State the output for X
SERIAL INPUT
Author : Khairi
1011
1001 X
1001
Output X = 1001
LOGIC GATES
State the output for X
SERIAL INPUT
Author : Khairi
EXERCISE
LOGIC GATES
1111
1001
1101
0001
X
State the output for X
1111
0001
1111
Author : Khairi
LOGIC GATES
EXERCISE
1111
1001
1101
0001
X
State the output for X
0000
1110
1110
Author : Khairi
LOGIC GATES
EXERCISE
1111
1001
1101
0001
X
State the output for X
0000
1110
0001
Author : Khairi
INPUT FROM TIMING DIAGRAM
LOGIC GATES
1
0
1 1
0 0
The input is 1001
Author : Khairi
X
Draw the output for X on timing diagram
Get the input in binary number
1 0 1
0 0 1
Get the output in binary number
= 101
Draw the timing diagram for output X
LOGIC GATES
INPUT FROM TIMING DIAGRAM
Author : Khairi
INPUT P
INPUT Q
OUTPUT X
If P and Q are
the inputs
of AND GATE.
Draw the output X
LOGIC GATES
INPUT FROM TIMING DIAGRAM
Author : Khairi
EXERCISE
Draw the output if the inputs
are fed to NOR GATE
1 0 1 1 1 0 0
0 0 1 1 0 1 0
0 1 0 0 0 0 1
LOGIC GATES
Author : Khairi
EXERCISE
Draw the output X
LOGIC GATES
X
Author : Khairi
ENRICHMENT PRACTICE
Light sensor
Body heat sensor
P
Q
X
Relay switch
Security lamp
Name the logic gate P.
NOT gate
Author : Khairi
ENRICHMENT PRACTICE
Light sensor
Body heat sensor
P
Q
X
Relay switch
Security lamp
Q is AND gate.Draw the AND gate by using two switches,batteries
and lamp.
Author : Khairi
ENRICHMENT PRACTICE
Light sensor
Body heat sensor
P
Q
X
Relay switch
Security lamp
Complete the truth table below for output X.
Input light sensor Input body heat sensor Output X
0
0
1
1
0
1
0
1
0
1
0
0
Author : Khairi
ENRICHMENT PRACTICE
Light sensor
Body heat sensor
P
Q
X
Relay switch
Security lamp
State the function of the relay switch in the circuit.
To switch on or off the security lamp.
Author : Khairi
Which of the following truth tables represents output R in the circuit ?
PAST YEARS QUESTION
Author : Khairi
Which of the following truth tables represents output R in the circuit ?
PAST YEARS QUESTION
Author : Khairi
What is the get X which produces the output in the truth table ?
A. AND
B. OR
C. NAND
D. NOR
PAST YEARS QUESTION
Author : Khairi
Which of the Boolean algebraic expression represents the output Z ?
A. Z = X Y
B. Z = X Y
C. Z = X Y
D. Z = X Y
Both S1 and S2 have to close
to produce Z high
PAST YEARS QUESTION
Author : Khairi
Which of the following output signals is produced by the logic
gate circuit ?
A. B. C. D.
0101
1001
1110
0110
1110
PAST YEARS QUESTION
Author : Khairi
PAST YEARS QUESTION
Which truth table is correct ?
Author : Khairi
Figure shows two combination of logic gates.
a. Name the logic gate M.
OR gate
b. Complete the truth table for P and Q
S1 S2
Output P
0
1
1
0
0
1
0
1
0
S1 S2
Output Q
0
1
1
0
0
1
1
1
1
PAST YEARS QUESTION
Author : Khairi
Figure shows the system used to control the level of pesticide in a bottle
Input S1 and S2 is “0” when they receive a low level of radiation and “1”
when they receive a high level of radiation.
a. State the level of the pesticide in the bottle if the input S1 is “0”.
Give your reason.
Level of pesticide in the bottle is high because it receives low radiation
due to less penetration of radioactive radiation
PAST YEARS QUESTION
Author : Khairi
Figure shows the system used to control the level of pesticide in a bottle
Input S1 and S2 is “0” when they receive a low level of radiation and “1”
when they receive a high level of radiation.
b. State the level of the pesticide in the bottle if the input S1 is “1”.
Give your reason.
Level of pesticide in the bottle is low because it receives high radiation
due to higher penetration of radioactive radiation
PAST YEARS QUESTION
Author : Khairi
Figure shows the system used to control the level of pesticide in a bottle
Input S1 and S2 is “0” when they receive a low level of radiation and “1”
when they receive a high level of radiation.
c. If the output of logic gate system is “1” when the volume of pesticide
accepted and “0” if it is rejected.Which combination of logic gate P or Q is
suitable to be used ?Give reason for your answer.
Combination of logic gate P because both S1 and S2 have to be “0” when the volume
is acceptable
PAST YEARS QUESTION
Author : Khairi
PAST YEARS QUESTION
output
What is the output ?

More Related Content

What's hot

What's hot (20)

LOGIC GATES
LOGIC GATESLOGIC GATES
LOGIC GATES
 
Nand gate
Nand gateNand gate
Nand gate
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplification
 
Logic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gatesLogic gates and NAND and NOR univarsal gates
Logic gates and NAND and NOR univarsal gates
 
logic gates
logic gateslogic gates
logic gates
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and Subtractor
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparator
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
Full custom digital ic design of priority encoder
Full custom digital ic design of priority encoderFull custom digital ic design of priority encoder
Full custom digital ic design of priority encoder
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Code conversion
Code conversionCode conversion
Code conversion
 
Subtractor
SubtractorSubtractor
Subtractor
 
Adder substracter
Adder substracterAdder substracter
Adder substracter
 
Magnitude comparator
Magnitude comparatorMagnitude comparator
Magnitude comparator
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Digital logic gates and Boolean algebra
Digital logic gates and Boolean algebraDigital logic gates and Boolean algebra
Digital logic gates and Boolean algebra
 

Similar to 24.logic gates

Similar to 24.logic gates (20)

Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptx
 
Logic Gates.pptx
Logic Gates.pptxLogic Gates.pptx
Logic Gates.pptx
 
Basic Logic gates
Basic Logic gatesBasic Logic gates
Basic Logic gates
 
Physics logic gates1
Physics logic gates1Physics logic gates1
Physics logic gates1
 
verification of logic gates cbse class 12
verification of logic gates cbse class 12verification of logic gates cbse class 12
verification of logic gates cbse class 12
 
Logic gates 07 11-2014
Logic gates 07 11-2014Logic gates 07 11-2014
Logic gates 07 11-2014
 
Physics investigatory project
Physics investigatory projectPhysics investigatory project
Physics investigatory project
 
Computer circuit logic
Computer circuit logicComputer circuit logic
Computer circuit logic
 
Chapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebraChapter 4. logic function and boolean algebra
Chapter 4. logic function and boolean algebra
 
Logic gates
Logic gatesLogic gates
Logic gates
 
combinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptxcombinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptx
 
PHYSICS PRACTICAL PROJECT (1).pdf
PHYSICS PRACTICAL PROJECT (1).pdfPHYSICS PRACTICAL PROJECT (1).pdf
PHYSICS PRACTICAL PROJECT (1).pdf
 
Digital logic Gates of Computer Science
Digital logic Gates of Computer ScienceDigital logic Gates of Computer Science
Digital logic Gates of Computer Science
 
Digital logic
Digital logicDigital logic
Digital logic
 
Electronic Circuits
Electronic  CircuitsElectronic  Circuits
Electronic Circuits
 
logic gates functions.pptx
logic gates functions.pptxlogic gates functions.pptx
logic gates functions.pptx
 
boolean-logic.pptx
boolean-logic.pptxboolean-logic.pptx
boolean-logic.pptx
 
Logic Gates Class 12
Logic Gates Class 12Logic Gates Class 12
Logic Gates Class 12
 
Name dld preparation
Name dld preparationName dld preparation
Name dld preparation
 
Logic circuit2017
Logic circuit2017Logic circuit2017
Logic circuit2017
 

More from Nurul Fadhilah

QUIZ INTERFERENCE OF WAVES.pdf
QUIZ INTERFERENCE OF WAVES.pdfQUIZ INTERFERENCE OF WAVES.pdf
QUIZ INTERFERENCE OF WAVES.pdfNurul Fadhilah
 
RPH 4 ELECTROM induction.docx
RPH 4 ELECTROM induction.docxRPH 4 ELECTROM induction.docx
RPH 4 ELECTROM induction.docxNurul Fadhilah
 
RPH 5 transformer.docx
RPH 5 transformer.docxRPH 5 transformer.docx
RPH 5 transformer.docxNurul Fadhilah
 
RPH 3 ELECTROM induction.docx
RPH 3 ELECTROM induction.docxRPH 3 ELECTROM induction.docx
RPH 3 ELECTROM induction.docxNurul Fadhilah
 
RPH 2 ELECTROM FORCE ON C.docx
RPH 2 ELECTROM FORCE ON C.docxRPH 2 ELECTROM FORCE ON C.docx
RPH 2 ELECTROM FORCE ON C.docxNurul Fadhilah
 
RPH 1 ELECTROM FORCE ON C.docx
RPH 1 ELECTROM FORCE ON C.docxRPH 1 ELECTROM FORCE ON C.docx
RPH 1 ELECTROM FORCE ON C.docxNurul Fadhilah
 
revision Discuss exam questions.docx
revision Discuss exam questions.docxrevision Discuss exam questions.docx
revision Discuss exam questions.docxNurul Fadhilah
 
Revision alternative to practical .docx
Revision alternative to practical .docxRevision alternative to practical .docx
Revision alternative to practical .docxNurul Fadhilah
 
3.4 Energy and Electrical Power.docx
3.4 Energy and Electrical Power.docx3.4 Energy and Electrical Power.docx
3.4 Energy and Electrical Power.docxNurul Fadhilah
 
3.2 Resistance (revision final).pdf
3.2 Resistance (revision final).pdf3.2 Resistance (revision final).pdf
3.2 Resistance (revision final).pdfNurul Fadhilah
 
3 internal resistance.pdf
3 internal resistance.pdf3 internal resistance.pdf
3 internal resistance.pdfNurul Fadhilah
 
2 emf and internal resistance.pdf
2 emf and internal resistance.pdf2 emf and internal resistance.pdf
2 emf and internal resistance.pdfNurul Fadhilah
 
Momentum (Multiple Choice) QP.pdf
Momentum (Multiple Choice) QP.pdfMomentum (Multiple Choice) QP.pdf
Momentum (Multiple Choice) QP.pdfNurul Fadhilah
 
Moments & Centre of Mass QP.pdf
Moments & Centre of Mass QP.pdfMoments & Centre of Mass QP.pdf
Moments & Centre of Mass QP.pdfNurul Fadhilah
 
Moments & Centre of Mass (Multiple Choice) QP.pdf
Moments & Centre of Mass (Multiple Choice) QP.pdfMoments & Centre of Mass (Multiple Choice) QP.pdf
Moments & Centre of Mass (Multiple Choice) QP.pdfNurul Fadhilah
 

More from Nurul Fadhilah (20)

MAGNETISM.pdf
MAGNETISM.pdfMAGNETISM.pdf
MAGNETISM.pdf
 
QUIZ INTERFERENCE OF WAVES.pdf
QUIZ INTERFERENCE OF WAVES.pdfQUIZ INTERFERENCE OF WAVES.pdf
QUIZ INTERFERENCE OF WAVES.pdf
 
RPH 4 ELECTROM induction.docx
RPH 4 ELECTROM induction.docxRPH 4 ELECTROM induction.docx
RPH 4 ELECTROM induction.docx
 
RPH 5 transformer.docx
RPH 5 transformer.docxRPH 5 transformer.docx
RPH 5 transformer.docx
 
RPH 3 ELECTROM induction.docx
RPH 3 ELECTROM induction.docxRPH 3 ELECTROM induction.docx
RPH 3 ELECTROM induction.docx
 
RPH 2 ELECTROM FORCE ON C.docx
RPH 2 ELECTROM FORCE ON C.docxRPH 2 ELECTROM FORCE ON C.docx
RPH 2 ELECTROM FORCE ON C.docx
 
RPH 1 ELECTROM FORCE ON C.docx
RPH 1 ELECTROM FORCE ON C.docxRPH 1 ELECTROM FORCE ON C.docx
RPH 1 ELECTROM FORCE ON C.docx
 
revision Discuss exam questions.docx
revision Discuss exam questions.docxrevision Discuss exam questions.docx
revision Discuss exam questions.docx
 
Revision alternative to practical .docx
Revision alternative to practical .docxRevision alternative to practical .docx
Revision alternative to practical .docx
 
3.4 Energy and Electrical Power.docx
3.4 Energy and Electrical Power.docx3.4 Energy and Electrical Power.docx
3.4 Energy and Electrical Power.docx
 
3.2 Resistance (revision final).pdf
3.2 Resistance (revision final).pdf3.2 Resistance (revision final).pdf
3.2 Resistance (revision final).pdf
 
3 internal resistance.pdf
3 internal resistance.pdf3 internal resistance.pdf
3 internal resistance.pdf
 
2 emf and internal resistance.pdf
2 emf and internal resistance.pdf2 emf and internal resistance.pdf
2 emf and internal resistance.pdf
 
1 ELECTRIC 1.pdf
1 ELECTRIC 1.pdf1 ELECTRIC 1.pdf
1 ELECTRIC 1.pdf
 
Forces 1 QP.pdf
Forces 1 QP.pdfForces 1 QP.pdf
Forces 1 QP.pdf
 
Momentum QP.pdf
Momentum QP.pdfMomentum QP.pdf
Momentum QP.pdf
 
Momentum (Multiple Choice) QP.pdf
Momentum (Multiple Choice) QP.pdfMomentum (Multiple Choice) QP.pdf
Momentum (Multiple Choice) QP.pdf
 
Moments & Centre of Mass QP.pdf
Moments & Centre of Mass QP.pdfMoments & Centre of Mass QP.pdf
Moments & Centre of Mass QP.pdf
 
Moments & Centre of Mass (Multiple Choice) QP.pdf
Moments & Centre of Mass (Multiple Choice) QP.pdfMoments & Centre of Mass (Multiple Choice) QP.pdf
Moments & Centre of Mass (Multiple Choice) QP.pdf
 
Hooke's Law QP.pdf
Hooke's Law QP.pdfHooke's Law QP.pdf
Hooke's Law QP.pdf
 

Recently uploaded

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 

Recently uploaded (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 

24.logic gates

  • 1. Author : Khairi LOGIC GATES Logic gate Input Output q Logic gates are electronic switches with one or more input but only one output q Logic gates are commonly found in computers and other electronic system q Input and output for logic gates only 1 or 0
  • 2. Author : Khairi TRUTH TABLE All inputs and outputs of logic gates can be displayed by using a table The table is known as truth table LOGIC GATES Input Output A B C X
  • 3. Author : Khairi NOT GATE Symbol for NOT GATE A X INPUT OUTPUT A X 1 0 Truth table 0 1 Boolean expression X = A Output is opposite to input LOGIC GATES
  • 4. Author : Khairi NOT GATE A X INPUT OUTPUT A X 1 0 Truth table 0 1 Corresponding electric circuit LOGIC GATES Symbol for NOT GATE
  • 5. Author : Khairi A X INPUT OUTPUT A X 1 0 Truth table 0 1 Corresponding electric circuit LOGIC GATES Symbol for NOT GATE NOT GATE
  • 6. Author : Khairi AND GATE Boolean expression X = A B INPUT OUTPUT A B X 0 0 0 1 1 0 1 1 0 0 0 1 A B X Corresponding electric circuit Choose all high LOGIC GATES
  • 7. Author : Khairi Boolean expression X = A B INPUT OUTPUT A B X 0 0 0 1 1 0 1 1 0 0 0 1 A B X Corresponding electric circuit LOGIC GATES AND GATE
  • 8. Author : Khairi NAND GATE Boolean expression for X X A B = A B X LOGIC GATES
  • 9. Author : Khairi Combination of possible inputs 22 = 2 x 2 = 4 X A B = A B LOGIC GATES NAND GATE
  • 10. Author : Khairi Truth table A B X A B = Output for NAND GATE is opposite the output of AND GATE 0 0 X A B = A B LOGIC GATES NAND GATE
  • 11. Author : Khairi Truth table A B X A B = 0 0 Input 00 for AND GATE produces 0 output Inverting the output to get the output for AND GATE 1 0 1 X A B = A B LOGIC GATES NAND GATE
  • 12. Author : Khairi Truth table A B X A B = 0 0 1 0 1 1 X A B = A B LOGIC GATES Input 01 for AND GATE produces 0 output Inverting the output to get the output for AND GATE NAND GATE
  • 13. Author : Khairi Truth table A B X A B = 0 0 1 0 1 1 1 0 1 1 1 0 Corresponding electric circuit X A B = A B LOGIC GATES NAND GATE
  • 14. Author : Khairi OR GATE A B X Boolean expression for X X = A + B INPUT OUTPUT A B X 0 0 0 1 1 0 1 1 0 1 1 1 Choose any one high LOGIC GATES
  • 15. Author : Khairi OR GATE A B X Boolean expression for X X = A + B INPUT OUTPUT A B X 0 0 0 1 1 0 1 1 0 1 1 1 Corresponding electric circuit LOGIC GATES
  • 16. Author : Khairi NOR GATE Boolean expression for X X = A + B A B X INPUT OUTPUT A B X 0 0 0 1 1 0 1 1 1 0 0 0 LOGIC GATES
  • 17. Author : Khairi COMBINATION OF LOGIC GATES In the electronic circuit,logic gates are combined into various combination to produce a desired output LOGIC GATES AND NAND AND
  • 18. Author : Khairi LOGIC GATES COMBINATION OF LOGIC GATES A B C D X What is the Boolean expression for X A B
  • 19. Author : Khairi LOGIC GATES COMBINATION OF LOGIC GATES A B C D X What is the Boolean expression for X A B C D
  • 20. Author : Khairi LOGIC GATES COMBINATION OF LOGIC GATES A B C D X What is the Boolean expression for X A B C D A B C D
  • 21. Author : Khairi P Q X Write the Boolean expression for X and state the equivalent basic logic gate. P + Q P + Q P Q X Equivalent logic gate is NOR GATE LOGIC GATES COMBINATION OF LOGIC GATES
  • 22. Author : Khairi EXERCISE P Q R S X Write the Boolean expression for X LOGIC GATES X = P Q R S + +
  • 23. Author : Khairi LOGIC GATES COMBINATION OF LOGIC GATES 1 0 0 1 X What is the output,X ? 0 1 0
  • 24. Author : Khairi EXERCISE Build a truth table for the combination of logic gates above LOGIC GATES A B X 0 0 1 1 0 1 0 1 0 1 0 0 A B X
  • 25. Author : Khairi EXERCISE LOGIC GATES 1 1 1 1 X State the output for X 1 0 0
  • 26. Author : Khairi LOGIC GATES EXERCISE 1 1 0 1 X State the output for X 1 0 1
  • 27. Author : Khairi LOGIC GATES EXERCISE 1 1 0 1 X State the output for X 1 0 0
  • 28. Author : Khairi SERIAL INPUT State the output for X X 1011 1001 LOGIC GATES
  • 29. Author : Khairi 1011 1001 1 X LOGIC GATES State the output for X SERIAL INPUT
  • 30. Author : Khairi 1 X 1011 1001 0 LOGIC GATES State the output for X SERIAL INPUT
  • 31. Author : Khairi 1 X 1011 1001 01 LOGIC GATES State the output for X SERIAL INPUT
  • 32. Author : Khairi 1 X 1011 1001 011 LOGIC GATES State the output for X SERIAL INPUT
  • 33. Author : Khairi 1 X 1011 1001 011 Output X = 1011 LOGIC GATES State the output for X SERIAL INPUT
  • 34. Author : Khairi State the output for X 1011 1001 X 1 LOGIC GATES SERIAL INPUT
  • 35. Author : Khairi 1011 1001 X 10 LOGIC GATES State the output for X SERIAL INPUT
  • 36. Author : Khairi 1011 1001 X 100 LOGIC GATES State the output for X SERIAL INPUT
  • 37. Author : Khairi 1011 1001 X 1001 Output X = 1001 LOGIC GATES State the output for X SERIAL INPUT
  • 38. Author : Khairi EXERCISE LOGIC GATES 1111 1001 1101 0001 X State the output for X 1111 0001 1111
  • 39. Author : Khairi LOGIC GATES EXERCISE 1111 1001 1101 0001 X State the output for X 0000 1110 1110
  • 40. Author : Khairi LOGIC GATES EXERCISE 1111 1001 1101 0001 X State the output for X 0000 1110 0001
  • 41. Author : Khairi INPUT FROM TIMING DIAGRAM LOGIC GATES 1 0 1 1 0 0 The input is 1001
  • 42. Author : Khairi X Draw the output for X on timing diagram Get the input in binary number 1 0 1 0 0 1 Get the output in binary number = 101 Draw the timing diagram for output X LOGIC GATES INPUT FROM TIMING DIAGRAM
  • 43. Author : Khairi INPUT P INPUT Q OUTPUT X If P and Q are the inputs of AND GATE. Draw the output X LOGIC GATES INPUT FROM TIMING DIAGRAM
  • 44. Author : Khairi EXERCISE Draw the output if the inputs are fed to NOR GATE 1 0 1 1 1 0 0 0 0 1 1 0 1 0 0 1 0 0 0 0 1 LOGIC GATES
  • 45. Author : Khairi EXERCISE Draw the output X LOGIC GATES X
  • 46. Author : Khairi ENRICHMENT PRACTICE Light sensor Body heat sensor P Q X Relay switch Security lamp Name the logic gate P. NOT gate
  • 47. Author : Khairi ENRICHMENT PRACTICE Light sensor Body heat sensor P Q X Relay switch Security lamp Q is AND gate.Draw the AND gate by using two switches,batteries and lamp.
  • 48. Author : Khairi ENRICHMENT PRACTICE Light sensor Body heat sensor P Q X Relay switch Security lamp Complete the truth table below for output X. Input light sensor Input body heat sensor Output X 0 0 1 1 0 1 0 1 0 1 0 0
  • 49. Author : Khairi ENRICHMENT PRACTICE Light sensor Body heat sensor P Q X Relay switch Security lamp State the function of the relay switch in the circuit. To switch on or off the security lamp.
  • 50. Author : Khairi Which of the following truth tables represents output R in the circuit ? PAST YEARS QUESTION
  • 51. Author : Khairi Which of the following truth tables represents output R in the circuit ? PAST YEARS QUESTION
  • 52. Author : Khairi What is the get X which produces the output in the truth table ? A. AND B. OR C. NAND D. NOR PAST YEARS QUESTION
  • 53. Author : Khairi Which of the Boolean algebraic expression represents the output Z ? A. Z = X Y B. Z = X Y C. Z = X Y D. Z = X Y Both S1 and S2 have to close to produce Z high PAST YEARS QUESTION
  • 54. Author : Khairi Which of the following output signals is produced by the logic gate circuit ? A. B. C. D. 0101 1001 1110 0110 1110 PAST YEARS QUESTION
  • 55. Author : Khairi PAST YEARS QUESTION Which truth table is correct ?
  • 56. Author : Khairi Figure shows two combination of logic gates. a. Name the logic gate M. OR gate b. Complete the truth table for P and Q S1 S2 Output P 0 1 1 0 0 1 0 1 0 S1 S2 Output Q 0 1 1 0 0 1 1 1 1 PAST YEARS QUESTION
  • 57. Author : Khairi Figure shows the system used to control the level of pesticide in a bottle Input S1 and S2 is “0” when they receive a low level of radiation and “1” when they receive a high level of radiation. a. State the level of the pesticide in the bottle if the input S1 is “0”. Give your reason. Level of pesticide in the bottle is high because it receives low radiation due to less penetration of radioactive radiation PAST YEARS QUESTION
  • 58. Author : Khairi Figure shows the system used to control the level of pesticide in a bottle Input S1 and S2 is “0” when they receive a low level of radiation and “1” when they receive a high level of radiation. b. State the level of the pesticide in the bottle if the input S1 is “1”. Give your reason. Level of pesticide in the bottle is low because it receives high radiation due to higher penetration of radioactive radiation PAST YEARS QUESTION
  • 59. Author : Khairi Figure shows the system used to control the level of pesticide in a bottle Input S1 and S2 is “0” when they receive a low level of radiation and “1” when they receive a high level of radiation. c. If the output of logic gate system is “1” when the volume of pesticide accepted and “0” if it is rejected.Which combination of logic gate P or Q is suitable to be used ?Give reason for your answer. Combination of logic gate P because both S1 and S2 have to be “0” when the volume is acceptable PAST YEARS QUESTION
  • 60. Author : Khairi PAST YEARS QUESTION output What is the output ?