SlideShare a Scribd company logo
1 of 12
Fredrick Kendrick Electronic Engineering Dept. ET1220
AND-NAND-OR-NOR-GATES
The AND gate
One of the easiest multiple-input gates to understand is the AND gate, so-called
because the output of this gate will be "high" (1) if and only if all inputs (first
input and the second input and . . .) are "high" (1). If any input(s) are "low" (0), the
output is guaranteed to be in a "low" state as well.
In case you might have been wondering, AND gates are made with more than
three inputs, but this is less common than the simple two-input variety.
A two-input AND gate's truth table looks like this:
What this truth table means in practical terms is shown in the following sequence
of illustrations, with the 2-input AND gate subjected to all possibilities of input
logic levels. An LED (Light-Emitting Diode) provides visual indication of the
output logic level:
Fredrick Kendrick Electronic Engineering Dept. ET1220
Fredrick Kendrick Electronic Engineering Dept. ET1220
It is only with all inputs raised to "high" logic levels that the AND gate's output
goes "high," thus energizing the LED for only one out of the four input
combination states.
The NAND gate
A variation on the idea of the AND gate is called the NAND gate. The word
"NAND" is a verbal contraction of the words NOT and AND. Essentially, a NAND
gate behaves the same as an AND gate with a NOT (inverter) gate connected to
the output terminal. To symbolize this output signal inversion, the NAND gate
symbol has a bubble on the output line. The truth table for a NAND gate is as one
might expect, exactly opposite as that of an AND gate:
Fredrick Kendrick Electronic Engineering Dept. ET1220
As with AND gates, NAND gates are made with more than two inputs. In such
cases, the same general principle applies: the output will be "low" (0) if and only
if all inputs are "high" (1). If any input is "low" (0), the output will go "high" (1).
The OR gate
Our next gate to investigate is the OR gate, so-called because the output of this
gate will be "high" (1) if any of the inputs (first input or the second input or . . .)
are "high" (1). The output of an OR gate goes "low" (0) if and only if all inputs are
"low" (0).
A two-input OR gate's truth table looks like this:
Fredrick Kendrick Electronic Engineering Dept. ET1220
The following sequence of illustrations demonstrates the OR gate's function, with
the 2-inputs experiencing all possible logic levels. An LED (Light-Emitting Diode)
provides visual indication of the gate's output logic level:
Fredrick Kendrick Electronic Engineering Dept. ET1220
Fredrick Kendrick Electronic Engineering Dept. ET1220
A condition of any input being raised to a "high" logic level makes the OR gate's
output go "high," thus energizing the LED for three out of the four input
combination states.
The NOR gate
As you might have suspected, the NOR gate is an OR gate with its output
inverted, just like a NAND gate is an AND gate with an inverted output.
NOR gates, like all the other multiple-input gates seen thus far, can be
manufactured with more than two inputs. Still, the same logical principle applies:
the output goes "low" (0) if any of the inputs are made "high" (1). The output is
"high" (1) only when all inputs are "low" (0).
The Negative-AND gate
A Negative-AND gate functions the same as an AND gate with all its inputs
inverted (connected through NOT gates). In keeping with standard gate symbol
convention, these inverted inputs are signified by bubbles. Contrary to most
peoples' first instinct, the logical behavior of a Negative-AND gate is not the same
as a NAND gate. Its truth table, actually, is identical to a NOR gate:
Fredrick Kendrick Electronic Engineering Dept. ET1220
The Negative-OR gate
Following the same pattern, a Negative-OR gate functions the same as an OR
gate with all its inputs inverted. In keeping with standard gate symbol convention,
these inverted inputs are signified by bubbles. The behavior and truth table of a
Negative-OR gate is the same as for a NAND gate:
Fredrick Kendrick Electronic Engineering Dept. ET1220
The Exclusive-OR gate
The last six gate types are all fairly direct variations on three basic functions:
AND, OR, and NOT. The Exclusive-OR gate, however, is something quite different.
Exclusive-OR gates output a "high" (1) logic level if the inputs are
at different logic levels, either 0 and 1 or 1 and 0. Conversely, they output a "low"
(0) logic level if the inputs are at the same logic levels. The Exclusive-OR
(sometimes called XOR) gate has both a symbol and a truth table pattern that is
unique:
Fredrick Kendrick Electronic Engineering Dept. ET1220
There are equivalent circuits for an Exclusive-OR gate made up of AND, OR, and
NOT gates, just as there were for NAND, NOR, and the negative-input gates. A
rather direct approach to simulating an Exclusive-OR gate is to start with a
regular OR gate, then add additional gates to inhibit the output from going "high"
(1) when both inputs are "high" (1):
In this circuit, the final AND gate acts as a buffer for the output of the OR gate
whenever the NAND gate's output is high, which it is for the first three input state
combinations (00, 01, and 10). However, when both inputs are "high" (1), the
Fredrick Kendrick Electronic Engineering Dept. ET1220
NAND gate outputs a "low" (0) logic level, which forces the final AND gate to
produce a "low" (0) output.
Another equivalent circuit for the Exclusive-OR gate uses a strategy of two AND
gates with inverters, set up to generate "high" (1) outputs for input conditions 01
and 10. A final OR gate then allows either of the AND gates' "high" outputs to
create a final "high" output:
Exclusive-OR gates are very useful for circuits where two or more binary
numbers are to be compared bit-for-bit, and also for error detection (parity check)
and code conversion (binary to Grey and vice versa).
The Exclusive-NOR gate
Finally, our last gate for analysis is the Exclusive-NOR gate, otherwise known as
the XNOR gate. It is equivalent to an Exclusive-OR gate with an inverted output.
The truth table for this gate is exactly opposite as for the Exclusive-OR gate:
Fredrick Kendrick Electronic Engineering Dept. ET1220
Instructor: Don Heller. ITT Technical Indianapolis.

More Related Content

What's hot (20)

Nand gate
Nand gateNand gate
Nand gate
 
Logical Gates
Logical GatesLogical Gates
Logical Gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Chap 3
Chap 3Chap 3
Chap 3
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Universal Gates - Aneesa N Ali
Universal Gates - Aneesa N AliUniversal Gates - Aneesa N Ali
Universal Gates - Aneesa N Ali
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
 
Exclusive OR GAte
Exclusive OR GAteExclusive OR GAte
Exclusive OR GAte
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
implementation of NAND gate
implementation of NAND gateimplementation of NAND gate
implementation of NAND gate
 
Basic Gates in Digital Logic
Basic Gates in Digital LogicBasic Gates in Digital Logic
Basic Gates in Digital Logic
 
LOGIC GATES
LOGIC GATESLOGIC GATES
LOGIC GATES
 
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
 
Digital logic, an inverter or NOT gate
Digital logic, an inverter or NOT gateDigital logic, an inverter or NOT gate
Digital logic, an inverter or NOT gate
 
Logic not gate tutorial with logic gate truth table
Logic not gate tutorial with logic gate truth tableLogic not gate tutorial with logic gate truth table
Logic not gate tutorial with logic gate truth table
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Diana
DianaDiana
Diana
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Logic gate class 12
Logic gate class 12Logic gate class 12
Logic gate class 12
 

Viewers also liked

Web classification of Digital Libraries using GATE Machine Learning  
Web classification of Digital Libraries using GATE Machine Learning  	Web classification of Digital Libraries using GATE Machine Learning  
Web classification of Digital Libraries using GATE Machine Learning   sstose
 
2008 Sae Capacitive Sensing
2008 Sae Capacitive Sensing2008 Sae Capacitive Sensing
2008 Sae Capacitive Sensingzztdn3
 
Wireless Wall Switch (Single Key)
Wireless Wall Switch (Single Key)Wireless Wall Switch (Single Key)
Wireless Wall Switch (Single Key)Daniel Chen
 
Capacitive Touch Sensing
Capacitive Touch SensingCapacitive Touch Sensing
Capacitive Touch SensingRey Anderson
 
Ee325 cmos design lab 6 report - loren k schwappach
Ee325 cmos design   lab 6 report - loren k schwappachEe325 cmos design   lab 6 report - loren k schwappach
Ee325 cmos design lab 6 report - loren k schwappachLoren Schwappach
 
A minor project report HOME AUTOMATION USING MOBILE PHONES
A minor project report HOME AUTOMATION  USING  MOBILE PHONESA minor project report HOME AUTOMATION  USING  MOBILE PHONES
A minor project report HOME AUTOMATION USING MOBILE PHONESashokkok
 
Presentation Smart Home With Home Automation
Presentation Smart Home With Home AutomationPresentation Smart Home With Home Automation
Presentation Smart Home With Home AutomationArifur Rahman
 
Touch screen home automation
Touch screen home automationTouch screen home automation
Touch screen home automationvision2d16
 
My Final Year Project - Individual Control Home Automation System
My Final Year Project - Individual Control Home Automation SystemMy Final Year Project - Individual Control Home Automation System
My Final Year Project - Individual Control Home Automation SystemMichael Olafusi
 

Viewers also liked (10)

Web classification of Digital Libraries using GATE Machine Learning  
Web classification of Digital Libraries using GATE Machine Learning  	Web classification of Digital Libraries using GATE Machine Learning  
Web classification of Digital Libraries using GATE Machine Learning  
 
2008 Sae Capacitive Sensing
2008 Sae Capacitive Sensing2008 Sae Capacitive Sensing
2008 Sae Capacitive Sensing
 
Wireless Wall Switch (Single Key)
Wireless Wall Switch (Single Key)Wireless Wall Switch (Single Key)
Wireless Wall Switch (Single Key)
 
Capacitive Touch Sensing
Capacitive Touch SensingCapacitive Touch Sensing
Capacitive Touch Sensing
 
Nand gate
Nand gateNand gate
Nand gate
 
Ee325 cmos design lab 6 report - loren k schwappach
Ee325 cmos design   lab 6 report - loren k schwappachEe325 cmos design   lab 6 report - loren k schwappach
Ee325 cmos design lab 6 report - loren k schwappach
 
A minor project report HOME AUTOMATION USING MOBILE PHONES
A minor project report HOME AUTOMATION  USING  MOBILE PHONESA minor project report HOME AUTOMATION  USING  MOBILE PHONES
A minor project report HOME AUTOMATION USING MOBILE PHONES
 
Presentation Smart Home With Home Automation
Presentation Smart Home With Home AutomationPresentation Smart Home With Home Automation
Presentation Smart Home With Home Automation
 
Touch screen home automation
Touch screen home automationTouch screen home automation
Touch screen home automation
 
My Final Year Project - Individual Control Home Automation System
My Final Year Project - Individual Control Home Automation SystemMy Final Year Project - Individual Control Home Automation System
My Final Year Project - Individual Control Home Automation System
 

Similar to AND, NAND, OR, NOR GATES

Similar to AND, NAND, OR, NOR GATES (20)

assignment_mathematics.pptx
assignment_mathematics.pptxassignment_mathematics.pptx
assignment_mathematics.pptx
 
Digital Logic Gates .pptx
Digital Logic Gates .pptxDigital Logic Gates .pptx
Digital Logic Gates .pptx
 
OR, AND, NOT Gates
OR, AND, NOT GatesOR, AND, NOT Gates
OR, AND, NOT Gates
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptx
 
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdfM. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
M. FLORENCE DAYANA/unit - II logic gates and circuits.pdf
 
Basic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfBasic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdf
 
Digital electoronics ppt
Digital electoronics pptDigital electoronics ppt
Digital electoronics ppt
 
067 [BEEE].pptx
067 [BEEE].pptx067 [BEEE].pptx
067 [BEEE].pptx
 
067 [BEEE].pptx
067 [BEEE].pptx067 [BEEE].pptx
067 [BEEE].pptx
 
logicgates-180511113246666666660 (1).pdf
logicgates-180511113246666666660 (1).pdflogicgates-180511113246666666660 (1).pdf
logicgates-180511113246666666660 (1).pdf
 
Digital logic gate and its application
Digital logic gate and its applicationDigital logic gate and its application
Digital logic gate and its application
 
Logic gates digital electronics
Logic gates digital electronicsLogic gates digital electronics
Logic gates digital electronics
 
Digital logic
Digital logicDigital logic
Digital logic
 
6_2019_04_09!08_59_48_PM logic gate_.ppt
6_2019_04_09!08_59_48_PM logic gate_.ppt6_2019_04_09!08_59_48_PM logic gate_.ppt
6_2019_04_09!08_59_48_PM logic gate_.ppt
 
basic logic gate presentation date23.ppt
basic logic gate presentation date23.pptbasic logic gate presentation date23.ppt
basic logic gate presentation date23.ppt
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic gates 1
Logic gates 1Logic gates 1
Logic gates 1
 
Logic gates and Boolean Algebra_VSG
Logic gates and Boolean Algebra_VSGLogic gates and Boolean Algebra_VSG
Logic gates and Boolean Algebra_VSG
 
Logic gates
Logic gatesLogic gates
Logic gates
 

More from Fredrick Kendrick (20)

Maxwell Equations (2)
Maxwell Equations (2)Maxwell Equations (2)
Maxwell Equations (2)
 
Transistor Tester
Transistor TesterTransistor Tester
Transistor Tester
 
Digital Decimal Counter
Digital Decimal CounterDigital Decimal Counter
Digital Decimal Counter
 
LED Pattern
LED PatternLED Pattern
LED Pattern
 
Class A Power Amplifier
Class A Power AmplifierClass A Power Amplifier
Class A Power Amplifier
 
Schematic of the LED Voltmeter Circuit
Schematic of the LED Voltmeter CircuitSchematic of the LED Voltmeter Circuit
Schematic of the LED Voltmeter Circuit
 
Custom Circuit Design
Custom Circuit DesignCustom Circuit Design
Custom Circuit Design
 
Calculated Values
Calculated ValuesCalculated Values
Calculated Values
 
Series Parallel Circuits Hellers Theory
Series Parallel Circuits Hellers TheorySeries Parallel Circuits Hellers Theory
Series Parallel Circuits Hellers Theory
 
Stop Light Switching Program
Stop Light Switching ProgramStop Light Switching Program
Stop Light Switching Program
 
JK FLIPFLOP WITH TOGGLE
JK FLIPFLOP WITH TOGGLEJK FLIPFLOP WITH TOGGLE
JK FLIPFLOP WITH TOGGLE
 
BOOLEAN
BOOLEANBOOLEAN
BOOLEAN
 
Parallel Circuit Math Table Blanks
Parallel Circuit Math Table BlanksParallel Circuit Math Table Blanks
Parallel Circuit Math Table Blanks
 
Circuit Measurement Table
Circuit Measurement TableCircuit Measurement Table
Circuit Measurement Table
 
Engineering Calculation Table 2016
Engineering Calculation Table 2016Engineering Calculation Table 2016
Engineering Calculation Table 2016
 
Engineering Calculation Table PUBLISHED
Engineering Calculation Table PUBLISHEDEngineering Calculation Table PUBLISHED
Engineering Calculation Table PUBLISHED
 
Final PLC Project
Final PLC ProjectFinal PLC Project
Final PLC Project
 
AM Receivers
AM ReceiversAM Receivers
AM Receivers
 
IC Circuits Amplifiers
IC Circuits AmplifiersIC Circuits Amplifiers
IC Circuits Amplifiers
 
WENDY HAMIL
WENDY HAMILWENDY HAMIL
WENDY HAMIL
 

AND, NAND, OR, NOR GATES

  • 1. Fredrick Kendrick Electronic Engineering Dept. ET1220 AND-NAND-OR-NOR-GATES The AND gate One of the easiest multiple-input gates to understand is the AND gate, so-called because the output of this gate will be "high" (1) if and only if all inputs (first input and the second input and . . .) are "high" (1). If any input(s) are "low" (0), the output is guaranteed to be in a "low" state as well. In case you might have been wondering, AND gates are made with more than three inputs, but this is less common than the simple two-input variety. A two-input AND gate's truth table looks like this: What this truth table means in practical terms is shown in the following sequence of illustrations, with the 2-input AND gate subjected to all possibilities of input logic levels. An LED (Light-Emitting Diode) provides visual indication of the output logic level:
  • 2. Fredrick Kendrick Electronic Engineering Dept. ET1220
  • 3. Fredrick Kendrick Electronic Engineering Dept. ET1220 It is only with all inputs raised to "high" logic levels that the AND gate's output goes "high," thus energizing the LED for only one out of the four input combination states. The NAND gate A variation on the idea of the AND gate is called the NAND gate. The word "NAND" is a verbal contraction of the words NOT and AND. Essentially, a NAND gate behaves the same as an AND gate with a NOT (inverter) gate connected to the output terminal. To symbolize this output signal inversion, the NAND gate symbol has a bubble on the output line. The truth table for a NAND gate is as one might expect, exactly opposite as that of an AND gate:
  • 4. Fredrick Kendrick Electronic Engineering Dept. ET1220 As with AND gates, NAND gates are made with more than two inputs. In such cases, the same general principle applies: the output will be "low" (0) if and only if all inputs are "high" (1). If any input is "low" (0), the output will go "high" (1). The OR gate Our next gate to investigate is the OR gate, so-called because the output of this gate will be "high" (1) if any of the inputs (first input or the second input or . . .) are "high" (1). The output of an OR gate goes "low" (0) if and only if all inputs are "low" (0). A two-input OR gate's truth table looks like this:
  • 5. Fredrick Kendrick Electronic Engineering Dept. ET1220 The following sequence of illustrations demonstrates the OR gate's function, with the 2-inputs experiencing all possible logic levels. An LED (Light-Emitting Diode) provides visual indication of the gate's output logic level:
  • 6. Fredrick Kendrick Electronic Engineering Dept. ET1220
  • 7. Fredrick Kendrick Electronic Engineering Dept. ET1220 A condition of any input being raised to a "high" logic level makes the OR gate's output go "high," thus energizing the LED for three out of the four input combination states. The NOR gate As you might have suspected, the NOR gate is an OR gate with its output inverted, just like a NAND gate is an AND gate with an inverted output. NOR gates, like all the other multiple-input gates seen thus far, can be manufactured with more than two inputs. Still, the same logical principle applies: the output goes "low" (0) if any of the inputs are made "high" (1). The output is "high" (1) only when all inputs are "low" (0). The Negative-AND gate A Negative-AND gate functions the same as an AND gate with all its inputs inverted (connected through NOT gates). In keeping with standard gate symbol convention, these inverted inputs are signified by bubbles. Contrary to most peoples' first instinct, the logical behavior of a Negative-AND gate is not the same as a NAND gate. Its truth table, actually, is identical to a NOR gate:
  • 8. Fredrick Kendrick Electronic Engineering Dept. ET1220 The Negative-OR gate Following the same pattern, a Negative-OR gate functions the same as an OR gate with all its inputs inverted. In keeping with standard gate symbol convention, these inverted inputs are signified by bubbles. The behavior and truth table of a Negative-OR gate is the same as for a NAND gate:
  • 9. Fredrick Kendrick Electronic Engineering Dept. ET1220 The Exclusive-OR gate The last six gate types are all fairly direct variations on three basic functions: AND, OR, and NOT. The Exclusive-OR gate, however, is something quite different. Exclusive-OR gates output a "high" (1) logic level if the inputs are at different logic levels, either 0 and 1 or 1 and 0. Conversely, they output a "low" (0) logic level if the inputs are at the same logic levels. The Exclusive-OR (sometimes called XOR) gate has both a symbol and a truth table pattern that is unique:
  • 10. Fredrick Kendrick Electronic Engineering Dept. ET1220 There are equivalent circuits for an Exclusive-OR gate made up of AND, OR, and NOT gates, just as there were for NAND, NOR, and the negative-input gates. A rather direct approach to simulating an Exclusive-OR gate is to start with a regular OR gate, then add additional gates to inhibit the output from going "high" (1) when both inputs are "high" (1): In this circuit, the final AND gate acts as a buffer for the output of the OR gate whenever the NAND gate's output is high, which it is for the first three input state combinations (00, 01, and 10). However, when both inputs are "high" (1), the
  • 11. Fredrick Kendrick Electronic Engineering Dept. ET1220 NAND gate outputs a "low" (0) logic level, which forces the final AND gate to produce a "low" (0) output. Another equivalent circuit for the Exclusive-OR gate uses a strategy of two AND gates with inverters, set up to generate "high" (1) outputs for input conditions 01 and 10. A final OR gate then allows either of the AND gates' "high" outputs to create a final "high" output: Exclusive-OR gates are very useful for circuits where two or more binary numbers are to be compared bit-for-bit, and also for error detection (parity check) and code conversion (binary to Grey and vice versa). The Exclusive-NOR gate Finally, our last gate for analysis is the Exclusive-NOR gate, otherwise known as the XNOR gate. It is equivalent to an Exclusive-OR gate with an inverted output. The truth table for this gate is exactly opposite as for the Exclusive-OR gate:
  • 12. Fredrick Kendrick Electronic Engineering Dept. ET1220 Instructor: Don Heller. ITT Technical Indianapolis.