D - Logic Gates
D - Logic Gates
Mary
High Section D – Electricity & Magnetism
Topic: Logic Gates
Specific Objectives
Logic Gates
A digital solid state electronic device which is used to perform pre- determined functions
or sets of functions in a given system.
The logic used is based on the binary numbering system – the usage of 1 (for on or high
voltage) and 0 (for off or low voltage).
Most logic gates tend to have two inputs and one output.
Logic gates are accompanied by the use of truth tables.
These are tables that seek to give a summary of the prescribed outcome (output) based on
the input or combination of input applied.
As most other electronic devices, logic gates can also be represented by circuit symbols. Below
are the various basic logic gates symbols and the truth tables that summarize their outcomes
based on the various inputs.
i) NOT Gate – the only one input, one output logic gate.
INPUT A OUTPUT Z
Page 1 of 10
CSEC PHYSICS MADE EASY Copyrighted© 2005; Revised 2020
Mikhael V. Davis JP 5/3/2021
Happy Grove High, Titchfield, Annotto Bay, Seaforth High, Immaculate, Wolmer’s, St. Mary
High Section D – Electricity & Magnetism
Electrical Circuit Representation of a NOT Gate
INPUT A
OUTPUT Z
INPUT B
A B
0 0
1 1
Note that both switches have to be on in order for
the bulb to glow.
INPUT A
OUTPUT Z
INPUT B
Page 2 of 10
CSEC PHYSICS MADE EASY Copyrighted© 2005; Revised 2020
Mikhael V. Davis JP 5/3/2021
Happy Grove High, Titchfield, Annotto Bay, Seaforth High, Immaculate, Wolmer’s, St. Mary
High Section D – Electricity & Magnetism
INPUT B
INPUT A
OUTPUT Z
INPUT B
An Exclusive OR Gate
There is also the exclusive OR gate that does not
INPUT A produce ON as its output when both inputs are ON;
OUTPUT Z
ON is only exclusive to when either output is on.
INPUT B
INPUTS OUTPUT
A B Z
0 0 0
0 1 1
1 0 1
1 1 0
Truth Table for an Exclusive OR Gate
Page 3 of 10
CSEC PHYSICS MADE EASY Copyrighted© 2005; Revised 2020
Mikhael V. Davis JP 5/3/2021
Happy Grove High, Titchfield, Annotto Bay, Seaforth High, Immaculate, Wolmer’s, St. Mary
High Section D – Electricity & Magnetism
Electrical Circuit Representation of an OR Gate
A
0
1
No current will flow and the bulb will
B not glow in the position of the diagram
0 to the left. With either switch A or B
1 closed, current will flow and the bulb
will glow. The bulb will also glow
when both switches are closed.
v) NOR Gate
INPUT A
OUTPUT Z
INPUT B
INPUT B
Page 4 of 10
CSEC PHYSICS MADE EASY Copyrighted© 2005; Revised 2020
Mikhael V. Davis JP 5/3/2021
Happy Grove High, Titchfield, Annotto Bay, Seaforth High, Immaculate, Wolmer’s, St. Mary
High Section D – Electricity & Magnetism
Applications of Logic Gates – Logic Circuits
There are many instances and situations where logic gates are used to bring about desired
effects. Such operations include:
Car alarm systems
Keyboards/Computers
Stoplights
Rain and other weather signaling systems, etc
Kettles and other heating systems
Activity: Explain how the above weather monitoring system works. Be clear about what takes
place in each case and at each significant point.
---------------------------------------------------------------------------------------------------------------------
…and lastly, the output F is for inputs D & E; there is an OR gate in between; hence, in
column F, if there is a one (1) in either columns D or E or two ones (1), a one (1) must be
written in column F – see the function of the OR gate.
Note that the first three columns give the eight possible combinations (2 3). It is also
forms the three-digit counting in binary (base two) from zero (000) to seven (111).
Follow the steps above and solve for the following logic circuit.
A A B C D E F
D 0 0 0
0 0 1
B
0 1 0
0 1 1
F
C E 1 0 0
1 0 1
1 1 0
1 1 1
Follow the steps above and solve for the following logic circuit.
A A B C D E F
0 0 0
E
0 0 1
B D 0 1 0
0 1 1
F
1 0 0
C
1 0 1
1 1 0
1 1 1
---------------------------------------------------------------------------------------------------------------------
Page 6 of 10
CSEC PHYSICS MADE EASY Copyrighted© 2005; Revised 2020
Mikhael V. Davis JP 5/3/2021
Happy Grove High, Titchfield,
ld, Annotto Bay, Seaforth High, Immaculate, Wolmer’s, St. Mary
High Section D – Electricity & Magnetism
Assignment: Systems Analysis
Research, plan and design a logic system that can be proposed for stop lights.
---------------------------------------------------------------------------------------------------------------------
a) Draw clear and identifiable circuit symbols for the logic gates in Table 2 below.
Table 2
LOGIC GAT
GATE SYMBOL
NOR
NOT
NAND
OR
(4 marks)
b) Complete the truth tables (Table 3 and Table 4) for the two-input logic gates below.
OUTPUT OUTPUT
A B Z A B Z
0 0 0 0
0 1 0 1
1 0 1 0
1 1 1 1
NOR AND
Table 3 Table 4
(4 marks)
Page 7 of 10
CSEC PHYSICS MADE EASY Copyrighted©
Copyrighted 2005; Revised 2020
Mikhael V. Davis JP 5/3/2021
Happy Grove High, Titchfield,
ld, Annotto Bay, Seaforth High, Immaculate, Wolmer’s, St. Mary
High Section D – Electricity & Magnetism
i) The logic circuit shown in Figure 3 can be used to warn a driver that he is about to leave his car with the
headlights switched ON. Table 5 represents the truth table for the logic of the circuit. Complete Table 5.
Table 5
INPUT OUTPUT
HS IS DS X Y Z
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
(6 marks)
ii) Examine the result in the Z column and write out in words the conditions under which the alarm will sound.
(2 marks)
Total = 16 marks
-----------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------
January 2004, Paper II, Question #4
Figure 1
A, B and C are logic switches which are connected to the cover, water level and power switches and their
corresponding states of cover. Water level and the power switch are shown in the table below.
Page 8 of 10
CSEC PHYSICS MADE EASY Copyrighted©
Copyrighted 2005; Revised 2020
Mikhael V. Davis JP 5/3/2021
Happy Grove High, Titchfield,
ld, Annotto Bay, Seaforth High, Immaculate, Wolmer’s, St. Mary
High Section D – Electricity & Magnetism
Switch 1 0
B Water below heating element level Water above heating element level
Table 3
Figure 1
i) Sketch the Vout-tt graph when switch S is open. (1 mark)
ii) Sketch the Vout-tt graph across the diode D when switch S is closed. (1 mark)
iii) Sketch the V-tt graph across a battery power source. (1 mark)
iv) What is the similarity in the voltage between ii) and iii)? (1 mark)
v) How can you use the circuit in Figure 1 to determine to determine whether or not a semiconductor diode is
defective? (2 marks)
Page 9 of 10
CSEC PHYSICS MADE EASY Copyrighted©
Copyrighted 2005; Revised 2020
Mikhael V. Davis JP 5/3/2021
Happy Grove High, Titchfield, Annotto Bay, Seaforth High, Immaculate, Wolmer’s, St. Mary
High Section D – Electricity & Magnetism
b) i) The truth table of a logic gate is shown for inputs A and B and output C.
A B C
0 0 1
0 1 1
1 0 1
1 1 0
A B C D E
0 0 0 1 0
0 1
1 0
1 1 0
(8 marks)
Total = 15 marks
……………………………………………………………………………………………………...................................
Page 10 of 10
CSEC PHYSICS MADE EASY Copyrighted© 2005; Revised 2020
Mikhael V. Davis JP 5/3/2021