SlideShare a Scribd company logo
What are Logic Gates?
• Logic gates are electronic switches with one or more inputs and one
output only.
• Input is data fed into the processor to perform logical operations.
• The result of the operations is called the output.
• Logic gates operate on a binary input, that is the input is either 0 or 1.
• The output depends on the input and the type of logic gate.
Truth Table
• Shows the result of every possible output given every possible input.
• The possible number of combinations can be determined using the formula N2.
• A tree diagram can be used to show all the possible combination.
• For 2 inputs: A B
0 0
0 1
1 0
1 1
Tree Diagram Truth Table
BASIC LOGIC GATES
NOT GATE AND GATE OR GATE
NOT Gate
• The output is always opposite to the input.Therefore, a NOT
gate is also called an inverter.
• The inversion by a NOT gate can be written in the Boolean
algebraic expression:
A X
0 1
1 0
AX 
• The output is 1 if both inputs are 1.
• The Boolean algebraic expression for the action of anAND
gate is:
AND Gate
BAX 
*Dot sign representsAND operation.
A B X
0 0 0
0 1 0
1 0 0
1 1 1
OR Gate
• The output is 1 if either one or both inputs are 1.
• The Boolean algebraic expression for the action of anOR
gate is:
BAX 
*Plus sign represents OR operation.
A B X
0 0 0
0 1 1
1 0 1
1 1 1
COMBINATIONS OF
BASIC LOGIC GATES
NAND GATE NOR GATE
NAND GATE
• A NAND gate is equivalent to anAND gate followed by a
NOT gate.
• It is clear that the output is 0 if both inputs give an output of
1. In other words, its output is that of an AND gate inverted.
• The Boolean algebraic expression for this gate:
BAx 
A B X
0 0 1
0 1 1
1 0 1
1 1 0
NOR GATE
• A NOR gate is equivalent to an OR gate folllowed by a NOT
gate.
• It is clear that the output is 1 if both inputs are 0n. Other
combinations of inputs give an output of 0. In other words,
its output is that of an OR gate inverted.
• The Boolean algebraic expression for this gate:
BAx 
A B X
0 0 1
0 1 0
1 0 0
1 1 0
nand as a universal
gate
A B X
0 0 1
0 1 1
1 0 1
1 1 0
NAND as a Universal Gate: NOT
NAND Truth Table NOT Truth Table
A X
0 1
1 0
NAND as a Universal Gate: AND
NAND Truth Table AND Truth Table
A B X
0 0 1
0 1 1
1 0 1
1 1 0
A B X
0 0 0
0 1 0
1 0 0
1 1 1
NAND as a Universal Gate: OR
A B X
0 0 1
0 1 1
1 0 1
1 1 0
A B X
0 0 0
0 1 1
1 0 1
1 1 1
NAND Truth Table AND Truth Table
A B X Y Z
0 0
0 1
1 0
1 1
Applications of Logic Gates in Control Systems
• Logic gates are designed to make decisions based on the input(s). Hence, logic gates can
function as automatic switches.
• In a control system, there are three components: Input, ControlCircuit and Output.
Consists of detectors
that detect changes in
the environment and
convert them into
electrical signals.
Consists of electronic
devices to allow or block
the signal received.
Consists of devices that
respond to a signal from
logic gates.
Street Light
• Light sensor at the top of the lamp.
• The light is turned on when little to NO light is present.
• The NOT Gate is used.
Smoke Alarm
• The alarm can be activated automatically when smoke is
detected OR an emergency button is pressed.
• The OR Gate is used.

More Related Content

What's hot (20)

Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gate
Logic gateLogic gate
Logic gate
 
Logic gate implementing without using ICs by Nimay Giri
Logic gate implementing without using ICs by Nimay GiriLogic gate implementing without using ICs by Nimay Giri
Logic gate implementing without using ICs by Nimay Giri
 
Boolean Logic
Boolean LogicBoolean Logic
Boolean Logic
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Logic gate
Logic gateLogic gate
Logic gate
 
Half Adder and Full Adder
Half Adder and Full AdderHalf Adder and Full Adder
Half Adder and Full Adder
 
Digital Logic Circuits
Digital Logic CircuitsDigital Logic Circuits
Digital Logic Circuits
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Encoder and decoder
Encoder and decoderEncoder and decoder
Encoder and decoder
 
Nand and nor
Nand and norNand and nor
Nand and nor
 
What is Adder-Half and Full Adder
What is Adder-Half and Full AdderWhat is Adder-Half and Full Adder
What is Adder-Half and Full Adder
 
digital logic_families
digital logic_familiesdigital logic_families
digital logic_families
 
Logic gates
Logic gatesLogic gates
Logic gates
 
basic logic gates
 basic logic gates basic logic gates
basic logic gates
 
encoder and decoder in digital electronics
encoder and decoder in digital electronicsencoder and decoder in digital electronics
encoder and decoder in digital electronics
 
Decoders
DecodersDecoders
Decoders
 
Multiplexers & Demultiplexers
Multiplexers & DemultiplexersMultiplexers & Demultiplexers
Multiplexers & Demultiplexers
 

Similar to Electronics: Logic Gates

Logic Gate.pptx
Logic Gate.pptxLogic Gate.pptx
Logic Gate.pptxHrRajon2
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates. Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates. Satya P. Joshi
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxChristianVelchez2
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxWilliamJosephat1
 
LOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdfLOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdfMeghaChauhan75
 
LOGICAL_GATES_priyansh_singhal.pdf
LOGICAL_GATES_priyansh_singhal.pdfLOGICAL_GATES_priyansh_singhal.pdf
LOGICAL_GATES_priyansh_singhal.pdfMeghaChauhan75
 
11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptxElisée Ndjabu
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsVanitha Chandru
 
Basic Gates in Digital Logic
Basic Gates in Digital LogicBasic Gates in Digital Logic
Basic Gates in Digital LogicISMT College
 
introduction of logic gates
introduction of logic gates introduction of logic gates
introduction of logic gates HASNAINNAZIR1
 
Logic gates and Digital system.pptx
Logic gates and Digital system.pptxLogic gates and Digital system.pptx
Logic gates and Digital system.pptxAmiShete2
 
perform operation with boolean algebra
perform operation with boolean algebraperform operation with boolean algebra
perform operation with boolean algebraBrenda Debra
 
CSEC Physics Review - Introduction To Logic Gates
CSEC Physics Review - Introduction To Logic GatesCSEC Physics Review - Introduction To Logic Gates
CSEC Physics Review - Introduction To Logic GatesKevin Small
 

Similar to Electronics: Logic Gates (20)

Logic Gate.pptx
Logic Gate.pptxLogic Gate.pptx
Logic Gate.pptx
 
Logic gates
Logic gatesLogic gates
Logic gates
 
logic gates
logic gates logic gates
logic gates
 
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates. Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
Logic gates - AND, OR, NOT, NOR, NAND, XOR, XNOR Gates.
 
ICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptxICT Basic Logic Gates Lessons.pptx
ICT Basic Logic Gates Lessons.pptx
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptx
 
LOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdfLOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdf
 
LOGICAL_GATES_priyansh_singhal.pdf
LOGICAL_GATES_priyansh_singhal.pdfLOGICAL_GATES_priyansh_singhal.pdf
LOGICAL_GATES_priyansh_singhal.pdf
 
Logic gates 07 11-2014
Logic gates 07 11-2014Logic gates 07 11-2014
Logic gates 07 11-2014
 
11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx11_Fundamentals_of_Digital_Electronics_L.pptx
11_Fundamentals_of_Digital_Electronics_L.pptx
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
Basic Gates in Digital Logic
Basic Gates in Digital LogicBasic Gates in Digital Logic
Basic Gates in Digital Logic
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
 
BASIC LOGIC GATES.pdf
BASIC LOGIC GATES.pdfBASIC LOGIC GATES.pdf
BASIC LOGIC GATES.pdf
 
Logic Gates.pptx
Logic Gates.pptxLogic Gates.pptx
Logic Gates.pptx
 
introduction of logic gates
introduction of logic gates introduction of logic gates
introduction of logic gates
 
Logic gates and Digital system.pptx
Logic gates and Digital system.pptxLogic gates and Digital system.pptx
Logic gates and Digital system.pptx
 
perform operation with boolean algebra
perform operation with boolean algebraperform operation with boolean algebra
perform operation with boolean algebra
 
CSEC Physics Review - Introduction To Logic Gates
CSEC Physics Review - Introduction To Logic GatesCSEC Physics Review - Introduction To Logic Gates
CSEC Physics Review - Introduction To Logic Gates
 
Logic gates and Boolean.pdf
Logic gates and Boolean.pdfLogic gates and Boolean.pdf
Logic gates and Boolean.pdf
 

Recently uploaded

Shuaib Y-basedComprehensive mahmudj.pptx
Shuaib Y-basedComprehensive mahmudj.pptxShuaib Y-basedComprehensive mahmudj.pptx
Shuaib Y-basedComprehensive mahmudj.pptxMdAbuRayhan16
 
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...Sérgio Sacani
 
GEOLOGICAL FIELD REPORT On Kaptai Rangamati Road-Cut Section.pdf
GEOLOGICAL FIELD REPORT  On  Kaptai Rangamati Road-Cut Section.pdfGEOLOGICAL FIELD REPORT  On  Kaptai Rangamati Road-Cut Section.pdf
GEOLOGICAL FIELD REPORT On Kaptai Rangamati Road-Cut Section.pdfUniversity of Barishal
 
SAMPLING.pptx for analystical chemistry sample techniques
SAMPLING.pptx for analystical chemistry sample techniquesSAMPLING.pptx for analystical chemistry sample techniques
SAMPLING.pptx for analystical chemistry sample techniquesrodneykiptoo8
 
platelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptxplatelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptxmuralinath2
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONChetanK57
 
National Biodiversity protection initiatives and Convention on Biological Di...
National Biodiversity protection initiatives and  Convention on Biological Di...National Biodiversity protection initiatives and  Convention on Biological Di...
National Biodiversity protection initiatives and Convention on Biological Di...PABOLU TEJASREE
 
Detectability of Solar Panels as a Technosignature
Detectability of Solar Panels as a TechnosignatureDetectability of Solar Panels as a Technosignature
Detectability of Solar Panels as a TechnosignatureSérgio Sacani
 
Mammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also FunctionsMammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also FunctionsYOGESH DOGRA
 
Seminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptxSeminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptxRUDYLUMAPINET2
 
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...Health Advances
 
biotech-regenration of plants, pharmaceutical applications.pptx
biotech-regenration of plants, pharmaceutical applications.pptxbiotech-regenration of plants, pharmaceutical applications.pptx
biotech-regenration of plants, pharmaceutical applications.pptxANONYMOUS
 
INSIGHT Partner Profile: Tampere University
INSIGHT Partner Profile: Tampere UniversityINSIGHT Partner Profile: Tampere University
INSIGHT Partner Profile: Tampere UniversitySteffi Friedrichs
 
NuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent UniversityNuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent Universitypablovgd
 
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdfSCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdfSELF-EXPLANATORY
 
FAIRSpectra - Towards a common data file format for SIMS images
FAIRSpectra - Towards a common data file format for SIMS imagesFAIRSpectra - Towards a common data file format for SIMS images
FAIRSpectra - Towards a common data file format for SIMS imagesAlex Henderson
 
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...Subhajit Sahu
 
insect taxonomy importance systematics and classification
insect taxonomy importance systematics and classificationinsect taxonomy importance systematics and classification
insect taxonomy importance systematics and classificationanitaento25
 
A Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on EarthA Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on EarthSérgio Sacani
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionpablovgd
 

Recently uploaded (20)

Shuaib Y-basedComprehensive mahmudj.pptx
Shuaib Y-basedComprehensive mahmudj.pptxShuaib Y-basedComprehensive mahmudj.pptx
Shuaib Y-basedComprehensive mahmudj.pptx
 
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
Gliese 12 b: A Temperate Earth-sized Planet at 12 pc Ideal for Atmospheric Tr...
 
GEOLOGICAL FIELD REPORT On Kaptai Rangamati Road-Cut Section.pdf
GEOLOGICAL FIELD REPORT  On  Kaptai Rangamati Road-Cut Section.pdfGEOLOGICAL FIELD REPORT  On  Kaptai Rangamati Road-Cut Section.pdf
GEOLOGICAL FIELD REPORT On Kaptai Rangamati Road-Cut Section.pdf
 
SAMPLING.pptx for analystical chemistry sample techniques
SAMPLING.pptx for analystical chemistry sample techniquesSAMPLING.pptx for analystical chemistry sample techniques
SAMPLING.pptx for analystical chemistry sample techniques
 
platelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptxplatelets- lifespan -Clot retraction-disorders.pptx
platelets- lifespan -Clot retraction-disorders.pptx
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
 
National Biodiversity protection initiatives and Convention on Biological Di...
National Biodiversity protection initiatives and  Convention on Biological Di...National Biodiversity protection initiatives and  Convention on Biological Di...
National Biodiversity protection initiatives and Convention on Biological Di...
 
Detectability of Solar Panels as a Technosignature
Detectability of Solar Panels as a TechnosignatureDetectability of Solar Panels as a Technosignature
Detectability of Solar Panels as a Technosignature
 
Mammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also FunctionsMammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also Functions
 
Seminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptxSeminar on Halal AGriculture and Fisheries.pptx
Seminar on Halal AGriculture and Fisheries.pptx
 
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...The ASGCT Annual Meeting was packed with exciting progress in the field advan...
The ASGCT Annual Meeting was packed with exciting progress in the field advan...
 
biotech-regenration of plants, pharmaceutical applications.pptx
biotech-regenration of plants, pharmaceutical applications.pptxbiotech-regenration of plants, pharmaceutical applications.pptx
biotech-regenration of plants, pharmaceutical applications.pptx
 
INSIGHT Partner Profile: Tampere University
INSIGHT Partner Profile: Tampere UniversityINSIGHT Partner Profile: Tampere University
INSIGHT Partner Profile: Tampere University
 
NuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent UniversityNuGOweek 2024 full programme - hosted by Ghent University
NuGOweek 2024 full programme - hosted by Ghent University
 
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdfSCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
 
FAIRSpectra - Towards a common data file format for SIMS images
FAIRSpectra - Towards a common data file format for SIMS imagesFAIRSpectra - Towards a common data file format for SIMS images
FAIRSpectra - Towards a common data file format for SIMS images
 
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
word2vec, node2vec, graph2vec, X2vec: Towards a Theory of Vector Embeddings o...
 
insect taxonomy importance systematics and classification
insect taxonomy importance systematics and classificationinsect taxonomy importance systematics and classification
insect taxonomy importance systematics and classification
 
A Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on EarthA Giant Impact Origin for the First Subduction on Earth
A Giant Impact Origin for the First Subduction on Earth
 
NuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final versionNuGOweek 2024 Ghent - programme - final version
NuGOweek 2024 Ghent - programme - final version
 

Electronics: Logic Gates

  • 1.
  • 2. What are Logic Gates? • Logic gates are electronic switches with one or more inputs and one output only. • Input is data fed into the processor to perform logical operations. • The result of the operations is called the output. • Logic gates operate on a binary input, that is the input is either 0 or 1. • The output depends on the input and the type of logic gate.
  • 3. Truth Table • Shows the result of every possible output given every possible input. • The possible number of combinations can be determined using the formula N2. • A tree diagram can be used to show all the possible combination. • For 2 inputs: A B 0 0 0 1 1 0 1 1 Tree Diagram Truth Table
  • 4. BASIC LOGIC GATES NOT GATE AND GATE OR GATE
  • 5. NOT Gate • The output is always opposite to the input.Therefore, a NOT gate is also called an inverter. • The inversion by a NOT gate can be written in the Boolean algebraic expression: A X 0 1 1 0 AX 
  • 6. • The output is 1 if both inputs are 1. • The Boolean algebraic expression for the action of anAND gate is: AND Gate BAX  *Dot sign representsAND operation. A B X 0 0 0 0 1 0 1 0 0 1 1 1
  • 7. OR Gate • The output is 1 if either one or both inputs are 1. • The Boolean algebraic expression for the action of anOR gate is: BAX  *Plus sign represents OR operation. A B X 0 0 0 0 1 1 1 0 1 1 1 1
  • 8. COMBINATIONS OF BASIC LOGIC GATES NAND GATE NOR GATE
  • 9. NAND GATE • A NAND gate is equivalent to anAND gate followed by a NOT gate. • It is clear that the output is 0 if both inputs give an output of 1. In other words, its output is that of an AND gate inverted. • The Boolean algebraic expression for this gate: BAx  A B X 0 0 1 0 1 1 1 0 1 1 1 0
  • 10. NOR GATE • A NOR gate is equivalent to an OR gate folllowed by a NOT gate. • It is clear that the output is 1 if both inputs are 0n. Other combinations of inputs give an output of 0. In other words, its output is that of an OR gate inverted. • The Boolean algebraic expression for this gate: BAx  A B X 0 0 1 0 1 0 1 0 0 1 1 0
  • 11. nand as a universal gate
  • 12. A B X 0 0 1 0 1 1 1 0 1 1 1 0 NAND as a Universal Gate: NOT NAND Truth Table NOT Truth Table A X 0 1 1 0
  • 13. NAND as a Universal Gate: AND NAND Truth Table AND Truth Table A B X 0 0 1 0 1 1 1 0 1 1 1 0 A B X 0 0 0 0 1 0 1 0 0 1 1 1
  • 14. NAND as a Universal Gate: OR A B X 0 0 1 0 1 1 1 0 1 1 1 0 A B X 0 0 0 0 1 1 1 0 1 1 1 1 NAND Truth Table AND Truth Table
  • 15. A B X Y Z 0 0 0 1 1 0 1 1
  • 16. Applications of Logic Gates in Control Systems • Logic gates are designed to make decisions based on the input(s). Hence, logic gates can function as automatic switches. • In a control system, there are three components: Input, ControlCircuit and Output. Consists of detectors that detect changes in the environment and convert them into electrical signals. Consists of electronic devices to allow or block the signal received. Consists of devices that respond to a signal from logic gates.
  • 17. Street Light • Light sensor at the top of the lamp. • The light is turned on when little to NO light is present. • The NOT Gate is used.
  • 18. Smoke Alarm • The alarm can be activated automatically when smoke is detected OR an emergency button is pressed. • The OR Gate is used.