SlideShare a Scribd company logo
1 of 53
ALLAH, IN WHOSE NAME I BEGIN,
THE MOST AFFECTIONATE,
THE MOST MERCIFUL.
2
Objective:
To understand the function of
Logic Gates.
•APPARATUS: Breadboard Diode
Transistor Connecting Wires
Resistor LED
3
A digital system deals with quantities or variables which have only
two discrete values or states.
Following are the examples of such quantities:
•a switch can be either closed or open.
•the answer of a question can be either yes or no.
•a certain statement can be either true or false.
•a bulb can be either off or on.
Digital Systems
4
•We have mostly two inputs A, B & one output C.
•There are many different ways that C could depend upon A and B.
•The output C is a function, - a logic function - of the inputs A and B.
Operations on logic signals
5
• DEFINITION:
• A logic gate is an elementary building block of a digital circuit. Most logic
gates have two inputs and one output. At any given moment, every
terminal is in one of the two binary conditions low (0) or high (1),
represented by different voltage levels. The logic state of a terminal can,
and generally does, change often, as the circuit processes data. In most
logic gates, the low state is approximately zero volts (0 V), while the high
state is approximately five volts positive (+5 V).
Logic Gates
6
Types of Basic logic gates
AND
OR
NOT
NAND
NOR
7
Symbols of Logic Gates
8
Inputs & Outputs
9
• Some gate symbols have a circle on their output which means that their function
includes inverting of the output. It is equivalent to feeding the output through a not
gate.
The inverting circle (o):
10
•A DIAGRAM OF THE OUTPUTS FROM ALL POSSIBLE COMBINATIONS
OF INPUT
Truth Table
Input A Input B Output Q
0 0 0
0 1 0
1 0 0
1 1 1
11
12
Definition
The AND gate implements the Boolean
AND function where the output only is
logical 1 when all inputs are logical 1.
13
Symbol
Logical
Expression
The Boolean
expression for the
AND gate is
C=A.B
14
Boolen Expression for AND
Inputs Output
A B C
0 0 0
0 1 0
1 0 0
1 1 1
Truth Table
15
Circuit Diagram
16
Mode Of Action
17
1. When A is at 0V, diode D1 conducts. So the
point C is driven to 0V.
2. The same mechanism is repeated if B is at 0v,
then D2 conducts which switches the point like
0v.
3. When both A & B are at 0V, both the diodes
conduct and point C is at 0V.
4. When both the inputs A & B are at +5V, no
current will flow. The point C will be at 5V and
we get the logic answer 1.
Application
18
Person Sensor
Alarm Switch
Burglar Alarm
ON/OFF
ON/OFF
ON/OFF
If both the Person Sensor AND the
Alarm Switch are on then the
Burglar Alarm is activated.
1. ELECTRONIC DOOR WILL ONLY OPEN IF IT DETECTS A PERSON AND THE SWITCH IS SET
TO UNLOCKED.
2. MICROWAVE WILL ONLY START IF THE START BUTTON IS PRESSED AND THE DOOR
CLOSE SWITCH IS CLOSED.
19
General Application
20
Definition
The OR gate implements the Boolean OR
function where the output is logical 1 when
just input is logical 1.
21
. Symbol
Logical
Expression
The Boolean
expression for the
OR gate is
C=A+B
22
Boolen Expression for OR
Inputs Output
A B C
0 0 0
0 1 1
1 0 1
1 1 1
Truth Table
23
Circuit Diagram
24
Mode Of Action
25
1. When A is at +5V, D1 is forward biased and
hence conduct. We get +5V at point C.
2. Same mechanism happens if B is at +5V, D2
Conducts, switching the point C at 5V.
3. When both A & B are at 5V, both the diode D1
and D2 conduct and the point C is again at
5V.
4. The point C will be at 0V if and only both A &
B are at 0V.
Application
26
Front Doorbell Switch
Back Doorbell Switch
Doorbell
ON/OFF
ON/OFF
ON/OFF
If either the Front Doorbell Switch
OR the Back Doorbell Switch is
pressed then the Doorbell rings.
27
Definition
The NOT gate implements the Boolean NOT
function where the output is the inverse of
the input.
28
Symbol
Logical
Expression
The Boolean
expression for the
NOT gate is
A=C’
Or
A= 𝑪
29
Boolen Expression for NOT
Truth Table
Input Output
A C’ or 𝑪
0 1
1 0
30
Circuit Diagram
31
Mode Of Action
32
1. When A is at 5V, the emitter based junction is
forward biased and the transistor is on and
maximum current flows through the emitter lead.
So point C will be at 0V.
2. When we connect A with 0V, the transistor stops
working and we get the point C at +5V.
Application
33
Temperature Detector
(Above 20°C)
Central Heating
ON/OFF ON/OFF
If the temperature is above 20°C
then the Central Heating is switched
off.
If the temperature is below 20°C
then the Central Heating is switched
on.
1. MICROWAVE WILL STOP IF THE DOOR IS NOT CLOSED.
2.TRAFFIC LIGHT WILL OPERATE NORMALLY IF IT'S NOT IN MAINTENANCE
MODE.
3.STREET LIGHTS ARE TURNED ON WHEN THERE IS NO SUNLIGHT OR JUST
WITH TWILIGHT.
34
General Application
35
Definition
The NOR is a combination of an OR followed by a
NOT gate. The output is logical 1 when non of the
inputs are logical 0
NOR gates are so-called "universal gates" that can be
combined to form any other kind of logic gate.
36
Symbol
Logical
Expression
The Boolean
expression for the
NOR gate is
C = 𝑨 + 𝑩
37
Boolen Expression for NOR
Truth Table
Inputs Output
A B C D
0 0 0 1
0 1 1 0
1 0 1 0
1 1 1 0
38
Circuit Diagram
39
• NOR GATE CAN BE USED TO REALIZE THE BASIC LOGIC FUNCTION OF OR GATE, AND GATE
1. AS OR GATE:
THE OUTPUT FROM NOR GATE IS 𝑨 + 𝑩 BY USING ANOTHER INVERTER IN THE OUTPUT, THE
OUTPUT IS INVERTED AND IS GIVEN BY , C=A+B, WHICH IS LOGIC FUNCTION OF A SIMPLE OR
GATE.
2.AS AND GATE:
TWO INVERTERS WILL BE USED, ONE FOR EACH INPUT. THE INPUTS HAVE BEEN INVERTED
BEFORE THEY HAVE BEEN APPLIED TO THE NOR GATE. THE OUTPUT IS
𝑨 + 𝑩 = 𝑨. 𝑩
WHICH IS DEMORGAN’S THEOREM.
40
NOR gate as Universal Gate
Mode Of Action
41
1. The function of NOR gate is just the reverse
of OR gate function.
2. NOR gate will have an output 1 only when
both inputs A & B are at logic 0V
3. If any of the input is 1V, the output is 0V.
Application
42
43
Definition
The NAND gate is an AND gate followed by a
NOT gate. The output is logical 1 when one of
the inputs are logical 0
44
Symbol
Logical
Expression
The Boolean
expression for the
NAND gate is
C = 𝑨. 𝑩
45
Boolen Expression for NAND
Truth Table
Inputs Output
A B C D
0 0 0 1
0 1 0 1
1 0 0 1
1 1 1 0
46
Circuit Diagram
47
• NAND GATE CAN BE USED TO REALIZE THE BASIC LOGIC FUNCTION OF OR GATE, AND GATE
1. AS AND GATE:
THE OUTPUT FROM NAND GATE IS 𝑨. 𝑩 BY USING ANOTHER INVERTER IN THE
OUTPUT, THE OUTPUT IS INVERTED AND IS GIVEN BY , C=A.B , WHICH IS LOGIC
FUNCTION OF A SIMPLE AND GATE.
2.AS OR GATE:
TWO INVERTERS WILL BE USED, ONE FOR EACH INPUT. THE INPUTS HAVE BEEN
INVERTED BEFORE THEY HAVE BEEN APPLIED TO THE NANDGATE. THE OUTPUT IS
𝑨. 𝑩 = 𝑨 + 𝑩
WHICH IS DEMORGAN’S THEOREM.
48
NAND gate as Universal Gate
Mode Of Action
49
1. The function of NAND gate is just the reverse of
AND gate function.
2. NAND gate will have an output 1 only when both
inputs A & B are at logic 0V or any of the inputs is
0V.
3. If both the inputs are 1, the output will be 0V.
Application
50
A door closing system of an automobile
A car needs to be so designed that the driver gets a visual
indication if any of the doors of the car is open so that it
helps to avoid accident and injury to the passengers.
Assuming there are two doors where this system is fitted,
the circuit can be designed using a NAND gate as follows
You can see from the figure that when any of the switches
is open due to the door position, the NAND gate energies
the lamp inside the car, hence warning the driver.
51
REFERENCES
52
Logic gates (1)

More Related Content

What's hot

What's hot (20)

Logic gates and its realization
Logic gates and its realizationLogic gates and its realization
Logic gates and its realization
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Logic families
Logic  familiesLogic  families
Logic families
 
Latches and flip flops
Latches and flip flopsLatches and flip flops
Latches and flip flops
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Basics of plc_programming1
Basics of plc_programming1Basics of plc_programming1
Basics of plc_programming1
 
digital logic_families
digital logic_familiesdigital logic_families
digital logic_families
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
logic gates
logic gateslogic gates
logic gates
 
Z parameters
Z parametersZ parameters
Z parameters
 
Logic gates
Logic gatesLogic gates
Logic gates
 
Nand and nor as a universal gates
Nand and nor as a universal gatesNand and nor as a universal gates
Nand and nor as a universal gates
 
UNIPOLAR LOGIC FAMILY.pptx
UNIPOLAR LOGIC FAMILY.pptxUNIPOLAR LOGIC FAMILY.pptx
UNIPOLAR LOGIC FAMILY.pptx
 
Lecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptxLecture 04-Digital logic gates.pptx
Lecture 04-Digital logic gates.pptx
 
Computer circuit logic
Computer circuit logicComputer circuit logic
Computer circuit logic
 
Digital logic gate and its application
Digital logic gate and its applicationDigital logic gate and its application
Digital logic gate and its application
 
Digital electronics logic families
Digital electronics logic familiesDigital electronics logic families
Digital electronics logic families
 
Logic gates ppt
Logic gates pptLogic gates ppt
Logic gates ppt
 
Digital electronics
Digital electronicsDigital electronics
Digital electronics
 
Logic Gates
Logic GatesLogic Gates
Logic Gates
 

Viewers also liked

Logic Gates Presentation
Logic Gates PresentationLogic Gates Presentation
Logic Gates Presentationnad407
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshopKedarv
 
Presentation on knock door bell project by namit
Presentation on knock door bell project by namitPresentation on knock door bell project by namit
Presentation on knock door bell project by namitNamit Sood
 
Content Marketing in 2017 - Discussion at Digital Chai pe Charcha
Content Marketing in 2017 - Discussion at Digital Chai pe CharchaContent Marketing in 2017 - Discussion at Digital Chai pe Charcha
Content Marketing in 2017 - Discussion at Digital Chai pe CharchaSocial Beat
 
El conocimiento tecnológico ciapuscio
El conocimiento tecnológico ciapuscioEl conocimiento tecnológico ciapuscio
El conocimiento tecnológico ciapusciodariosandrone
 
Tai lieu huong dan nhiem vu e&i inspector
Tai lieu huong dan nhiem vu e&i inspectorTai lieu huong dan nhiem vu e&i inspector
Tai lieu huong dan nhiem vu e&i inspectorKhiem Vo Duy
 
The cambridge ancient history Rome and the mediterranean to 133 bc
The cambridge ancient history Rome and the mediterranean to 133 bcThe cambridge ancient history Rome and the mediterranean to 133 bc
The cambridge ancient history Rome and the mediterranean to 133 bcEndrit Danaj
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detectionAnurag Alaria
 
Giao trinh van cong nghiep
Giao trinh van cong nghiepGiao trinh van cong nghiep
Giao trinh van cong nghiepKhiem Vo Duy
 

Viewers also liked (12)

Logic Gates Presentation
Logic Gates PresentationLogic Gates Presentation
Logic Gates Presentation
 
Simplification of Boolean Functions
Simplification of Boolean FunctionsSimplification of Boolean Functions
Simplification of Boolean Functions
 
Digital clock workshop
Digital clock workshopDigital clock workshop
Digital clock workshop
 
Presentation on knock door bell project by namit
Presentation on knock door bell project by namitPresentation on knock door bell project by namit
Presentation on knock door bell project by namit
 
Content Marketing in 2017 - Discussion at Digital Chai pe Charcha
Content Marketing in 2017 - Discussion at Digital Chai pe CharchaContent Marketing in 2017 - Discussion at Digital Chai pe Charcha
Content Marketing in 2017 - Discussion at Digital Chai pe Charcha
 
Smart door bell
Smart door bellSmart door bell
Smart door bell
 
El conocimiento tecnológico ciapuscio
El conocimiento tecnológico ciapuscioEl conocimiento tecnológico ciapuscio
El conocimiento tecnológico ciapuscio
 
Tai lieu huong dan nhiem vu e&i inspector
Tai lieu huong dan nhiem vu e&i inspectorTai lieu huong dan nhiem vu e&i inspector
Tai lieu huong dan nhiem vu e&i inspector
 
The cambridge ancient history Rome and the mediterranean to 133 bc
The cambridge ancient history Rome and the mediterranean to 133 bcThe cambridge ancient history Rome and the mediterranean to 133 bc
The cambridge ancient history Rome and the mediterranean to 133 bc
 
Automatic doorbell with object detection
Automatic doorbell with object detectionAutomatic doorbell with object detection
Automatic doorbell with object detection
 
Giao trinh van cong nghiep
Giao trinh van cong nghiepGiao trinh van cong nghiep
Giao trinh van cong nghiep
 
Scenes in America
Scenes in AmericaScenes in America
Scenes in America
 

Similar to Logic gates (1)

PHYSICS PRACTICAL PROJECT (1).pdf
PHYSICS PRACTICAL PROJECT (1).pdfPHYSICS PRACTICAL PROJECT (1).pdf
PHYSICS PRACTICAL PROJECT (1).pdfOmChaubey7
 
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
 
Logic Gates & Related Device
Logic Gates & Related DeviceLogic Gates & Related Device
Logic Gates & Related DeviceMd. Nahidul Islam
 
Semiconductor Devices Class 12 Part-4
Semiconductor Devices Class 12 Part-4Semiconductor Devices Class 12 Part-4
Semiconductor Devices Class 12 Part-4Self-employed
 
physics investigatory on logic gates
physics investigatory on logic gatesphysics investigatory on logic gates
physics investigatory on logic gatesMoviesBuzz1
 
logic gates using IC cbse class 12
logic gates using IC cbse class 12logic gates using IC cbse class 12
logic gates using IC cbse class 12Kirthi Kirthu
 
Physics logic gates 2
Physics logic gates 2Physics logic gates 2
Physics logic gates 2Kirthi Kirthu
 
Logic gate class 12
Logic gate class 12Logic gate class 12
Logic gate class 12Nipun Shah
 
Physics investigatory project
Physics investigatory projectPhysics investigatory project
Physics investigatory projectAbhinav Kumar
 
LOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdfLOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdfMeghaChauhan75
 
solids_and_semiconductor_devices_4.ppt
solids_and_semiconductor_devices_4.pptsolids_and_semiconductor_devices_4.ppt
solids_and_semiconductor_devices_4.pptUmeshPatil149
 
Solids_And_Semiconductor_Devices_4.ppt
Solids_And_Semiconductor_Devices_4.pptSolids_And_Semiconductor_Devices_4.ppt
Solids_And_Semiconductor_Devices_4.pptJosephMuez2
 
Presentation on Logic Fundamental by Anupam
Presentation on Logic Fundamental by AnupamPresentation on Logic Fundamental by Anupam
Presentation on Logic Fundamental by AnupamAnupamAkib
 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfTamiratDejene1
 

Similar to Logic gates (1) (20)

Digital logic
Digital logicDigital logic
Digital logic
 
Deld lab manual
Deld lab manualDeld lab manual
Deld lab manual
 
DOC-20240203-WA0000.pptx
DOC-20240203-WA0000.pptxDOC-20240203-WA0000.pptx
DOC-20240203-WA0000.pptx
 
PHYSICS PRACTICAL PROJECT (1).pdf
PHYSICS PRACTICAL PROJECT (1).pdfPHYSICS PRACTICAL PROJECT (1).pdf
PHYSICS PRACTICAL PROJECT (1).pdf
 
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
 
Logic Gates & Related Device
Logic Gates & Related DeviceLogic Gates & Related Device
Logic Gates & Related Device
 
Digital Logic circuit
Digital Logic circuitDigital Logic circuit
Digital Logic circuit
 
Semiconductor Devices Class 12 Part-4
Semiconductor Devices Class 12 Part-4Semiconductor Devices Class 12 Part-4
Semiconductor Devices Class 12 Part-4
 
physics investigatory on logic gates
physics investigatory on logic gatesphysics investigatory on logic gates
physics investigatory on logic gates
 
2th year iv sem de lab manual
2th year iv sem de lab manual2th year iv sem de lab manual
2th year iv sem de lab manual
 
Class 12th Logic Gates
Class 12th Logic GatesClass 12th Logic Gates
Class 12th Logic Gates
 
logic gates using IC cbse class 12
logic gates using IC cbse class 12logic gates using IC cbse class 12
logic gates using IC cbse class 12
 
Physics logic gates 2
Physics logic gates 2Physics logic gates 2
Physics logic gates 2
 
Logic gate class 12
Logic gate class 12Logic gate class 12
Logic gate class 12
 
Physics investigatory project
Physics investigatory projectPhysics investigatory project
Physics investigatory project
 
LOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdfLOGICAL GATES mayank chauhan.pdf
LOGICAL GATES mayank chauhan.pdf
 
solids_and_semiconductor_devices_4.ppt
solids_and_semiconductor_devices_4.pptsolids_and_semiconductor_devices_4.ppt
solids_and_semiconductor_devices_4.ppt
 
Solids_And_Semiconductor_Devices_4.ppt
Solids_And_Semiconductor_Devices_4.pptSolids_And_Semiconductor_Devices_4.ppt
Solids_And_Semiconductor_Devices_4.ppt
 
Presentation on Logic Fundamental by Anupam
Presentation on Logic Fundamental by AnupamPresentation on Logic Fundamental by Anupam
Presentation on Logic Fundamental by Anupam
 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdf
 

Logic gates (1)

  • 1.
  • 2. ALLAH, IN WHOSE NAME I BEGIN, THE MOST AFFECTIONATE, THE MOST MERCIFUL. 2
  • 3. Objective: To understand the function of Logic Gates. •APPARATUS: Breadboard Diode Transistor Connecting Wires Resistor LED 3
  • 4. A digital system deals with quantities or variables which have only two discrete values or states. Following are the examples of such quantities: •a switch can be either closed or open. •the answer of a question can be either yes or no. •a certain statement can be either true or false. •a bulb can be either off or on. Digital Systems 4
  • 5. •We have mostly two inputs A, B & one output C. •There are many different ways that C could depend upon A and B. •The output C is a function, - a logic function - of the inputs A and B. Operations on logic signals 5
  • 6. • DEFINITION: • A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment, every terminal is in one of the two binary conditions low (0) or high (1), represented by different voltage levels. The logic state of a terminal can, and generally does, change often, as the circuit processes data. In most logic gates, the low state is approximately zero volts (0 V), while the high state is approximately five volts positive (+5 V). Logic Gates 6
  • 7. Types of Basic logic gates AND OR NOT NAND NOR 7
  • 10. • Some gate symbols have a circle on their output which means that their function includes inverting of the output. It is equivalent to feeding the output through a not gate. The inverting circle (o): 10
  • 11. •A DIAGRAM OF THE OUTPUTS FROM ALL POSSIBLE COMBINATIONS OF INPUT Truth Table Input A Input B Output Q 0 0 0 0 1 0 1 0 0 1 1 1 11
  • 12. 12
  • 13. Definition The AND gate implements the Boolean AND function where the output only is logical 1 when all inputs are logical 1. 13
  • 15. Boolen Expression for AND Inputs Output A B C 0 0 0 0 1 0 1 0 0 1 1 1 Truth Table 15
  • 17. Mode Of Action 17 1. When A is at 0V, diode D1 conducts. So the point C is driven to 0V. 2. The same mechanism is repeated if B is at 0v, then D2 conducts which switches the point like 0v. 3. When both A & B are at 0V, both the diodes conduct and point C is at 0V. 4. When both the inputs A & B are at +5V, no current will flow. The point C will be at 5V and we get the logic answer 1.
  • 18. Application 18 Person Sensor Alarm Switch Burglar Alarm ON/OFF ON/OFF ON/OFF If both the Person Sensor AND the Alarm Switch are on then the Burglar Alarm is activated.
  • 19. 1. ELECTRONIC DOOR WILL ONLY OPEN IF IT DETECTS A PERSON AND THE SWITCH IS SET TO UNLOCKED. 2. MICROWAVE WILL ONLY START IF THE START BUTTON IS PRESSED AND THE DOOR CLOSE SWITCH IS CLOSED. 19 General Application
  • 20. 20
  • 21. Definition The OR gate implements the Boolean OR function where the output is logical 1 when just input is logical 1. 21
  • 23. Boolen Expression for OR Inputs Output A B C 0 0 0 0 1 1 1 0 1 1 1 1 Truth Table 23
  • 25. Mode Of Action 25 1. When A is at +5V, D1 is forward biased and hence conduct. We get +5V at point C. 2. Same mechanism happens if B is at +5V, D2 Conducts, switching the point C at 5V. 3. When both A & B are at 5V, both the diode D1 and D2 conduct and the point C is again at 5V. 4. The point C will be at 0V if and only both A & B are at 0V.
  • 26. Application 26 Front Doorbell Switch Back Doorbell Switch Doorbell ON/OFF ON/OFF ON/OFF If either the Front Doorbell Switch OR the Back Doorbell Switch is pressed then the Doorbell rings.
  • 27. 27
  • 28. Definition The NOT gate implements the Boolean NOT function where the output is the inverse of the input. 28
  • 29. Symbol Logical Expression The Boolean expression for the NOT gate is A=C’ Or A= 𝑪 29
  • 30. Boolen Expression for NOT Truth Table Input Output A C’ or 𝑪 0 1 1 0 30
  • 32. Mode Of Action 32 1. When A is at 5V, the emitter based junction is forward biased and the transistor is on and maximum current flows through the emitter lead. So point C will be at 0V. 2. When we connect A with 0V, the transistor stops working and we get the point C at +5V.
  • 33. Application 33 Temperature Detector (Above 20°C) Central Heating ON/OFF ON/OFF If the temperature is above 20°C then the Central Heating is switched off. If the temperature is below 20°C then the Central Heating is switched on.
  • 34. 1. MICROWAVE WILL STOP IF THE DOOR IS NOT CLOSED. 2.TRAFFIC LIGHT WILL OPERATE NORMALLY IF IT'S NOT IN MAINTENANCE MODE. 3.STREET LIGHTS ARE TURNED ON WHEN THERE IS NO SUNLIGHT OR JUST WITH TWILIGHT. 34 General Application
  • 35. 35
  • 36. Definition The NOR is a combination of an OR followed by a NOT gate. The output is logical 1 when non of the inputs are logical 0 NOR gates are so-called "universal gates" that can be combined to form any other kind of logic gate. 36
  • 37. Symbol Logical Expression The Boolean expression for the NOR gate is C = 𝑨 + 𝑩 37
  • 38. Boolen Expression for NOR Truth Table Inputs Output A B C D 0 0 0 1 0 1 1 0 1 0 1 0 1 1 1 0 38
  • 40. • NOR GATE CAN BE USED TO REALIZE THE BASIC LOGIC FUNCTION OF OR GATE, AND GATE 1. AS OR GATE: THE OUTPUT FROM NOR GATE IS 𝑨 + 𝑩 BY USING ANOTHER INVERTER IN THE OUTPUT, THE OUTPUT IS INVERTED AND IS GIVEN BY , C=A+B, WHICH IS LOGIC FUNCTION OF A SIMPLE OR GATE. 2.AS AND GATE: TWO INVERTERS WILL BE USED, ONE FOR EACH INPUT. THE INPUTS HAVE BEEN INVERTED BEFORE THEY HAVE BEEN APPLIED TO THE NOR GATE. THE OUTPUT IS 𝑨 + 𝑩 = 𝑨. 𝑩 WHICH IS DEMORGAN’S THEOREM. 40 NOR gate as Universal Gate
  • 41. Mode Of Action 41 1. The function of NOR gate is just the reverse of OR gate function. 2. NOR gate will have an output 1 only when both inputs A & B are at logic 0V 3. If any of the input is 1V, the output is 0V.
  • 43. 43
  • 44. Definition The NAND gate is an AND gate followed by a NOT gate. The output is logical 1 when one of the inputs are logical 0 44
  • 45. Symbol Logical Expression The Boolean expression for the NAND gate is C = 𝑨. 𝑩 45
  • 46. Boolen Expression for NAND Truth Table Inputs Output A B C D 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 46
  • 48. • NAND GATE CAN BE USED TO REALIZE THE BASIC LOGIC FUNCTION OF OR GATE, AND GATE 1. AS AND GATE: THE OUTPUT FROM NAND GATE IS 𝑨. 𝑩 BY USING ANOTHER INVERTER IN THE OUTPUT, THE OUTPUT IS INVERTED AND IS GIVEN BY , C=A.B , WHICH IS LOGIC FUNCTION OF A SIMPLE AND GATE. 2.AS OR GATE: TWO INVERTERS WILL BE USED, ONE FOR EACH INPUT. THE INPUTS HAVE BEEN INVERTED BEFORE THEY HAVE BEEN APPLIED TO THE NANDGATE. THE OUTPUT IS 𝑨. 𝑩 = 𝑨 + 𝑩 WHICH IS DEMORGAN’S THEOREM. 48 NAND gate as Universal Gate
  • 49. Mode Of Action 49 1. The function of NAND gate is just the reverse of AND gate function. 2. NAND gate will have an output 1 only when both inputs A & B are at logic 0V or any of the inputs is 0V. 3. If both the inputs are 1, the output will be 0V.
  • 50. Application 50 A door closing system of an automobile A car needs to be so designed that the driver gets a visual indication if any of the doors of the car is open so that it helps to avoid accident and injury to the passengers. Assuming there are two doors where this system is fitted, the circuit can be designed using a NAND gate as follows You can see from the figure that when any of the switches is open due to the door position, the NAND gate energies the lamp inside the car, hence warning the driver.
  • 52. 52