DLD Lab 02 - Basic Logic Gates - V3
DLD Lab 02 - Basic Logic Gates - V3
Objectives
To verify the behavior of logic gates using the Truth Table (AND, OR, NOT and NOR gates)
on TinkerCAD and familiarization with digital integrated circuits by reading its datasheet and
the internal IC gate level structure.
This lab consists of five different sections. The description of each section is given below:
Section
Background
The aim of this section is to discuss:
i. The logic gate 10
ii. The basic gates
a) Reading Datasheet
In this section, we will get familiarized with Digital Integrated Circuits by
reading the datasheet of the following gate IC and their internal gate level
structure. 15
1. AND gate IC 7408
2. NOT gate IC 7404
3. NOR gate IC 7402
b) AND Gate
In this part, we will practically verify the behavior of AND logic gate using the 30
truth table.
c) NOT Logic Gate
In this part, we will practically verify the behavior of NOT logic gate using the 30
truth table.
Background
1. What is a logic gate?
2. What are the AND, NAND, OR, NOR and NOT gates. Briefly discuss their functionality.
• An AND gate is a logic gate having two or more inputs that operates on logical
conjunction from mathematical logic. Only if all of the AND gate's inputs are HIGH,
will the output be HIGH. If none of the AND gate's inputs are HIGH, the output is
LOW.
• The NOT gate is a gate with one input and one output, implementing one of the
three basic logical functions, that is logical negation. It has a HIGH output signal
only when it's input signal is LOW, and a LOW output when the input is HIGH.
• The NAND gate is a combination of two fundamental logic gates, the AND gate
and the NOT gate connected in series. It produces a LOW output only if all of its
inputs are HIGH, and vice versa. Thus, its output is complement to that of the AND
gate.
• Similarly, the NOR gate is a combination of the OR gate and the NOT gate
connected in series. It produces a HIGH output only if both the inputs to it are
LOW; if one or both input is HIGH, a LOW output results. The output of the OR
gate is complement to that of the AND gate.
Page | 1
Lab 02 – Basic Logic Gates
Reading Datasheet
a. Reading Datasheet
In this task you are required to read the datasheet and get familiarized with internal gate level
structure of following ICs
1. AND gate IC 7408
2. OR gate IC 7432
3. NOT gate IC 7404
4. NOR gate IC 7402
TinkerCAD automatically save all your simulations. Make sure you create a
separate circuit for each IC. It will help you in post lab exercise.
𝑌 =𝐴 · 𝐵
Three input AND operation can be performed with the sample expression shown below; where
A, B and C are inputs, and Y is the output which is always a logic 0 except when all the inputs
are HIGH.
𝑌 = 𝐴 · 𝐵 · 𝐶
i. Equipment
1. Adjustable Direct Current (DC) Power supply.
2. Digital Multi Meter (DMM).
3. IC type 7408 AND gate.
4. Light Emitting Diode (LED), resistors (330 Ohm) and slide switches.
Page | 2
Lab 02 – Basic Logic Gates
AND Logic Gate
Figure 2.1 - 7408 AND logic gate IC Figure 2.2 - Design schematic of a two-input AND gate.
Page | 3
Lab 02 – Basic Logic Gates
AND Logic Gate
Make sure that you that power supply is set to 5V and turn it on only when the
connections are verified.
When working on physical circuit, use DMM to verify the connections and
troubleshooting.
Input Output
A B A B Y Y
(Logic) (Logic) (Volts) (Volts) (Logic) (Volts)
0 0 0 0 0 0
0 1 0 5 0 0
1 0 5 0 0 0
1 1 5 5 1 4.64
Page | 4
Lab 02 – Basic Logic Gates
AND Logic Gate
0 0 0 0 0 0 0 0
0 0 1 0 0 5 0 0
0 1 0 0 5 0 0 0
0 1 1 0 5 5 0 0
1 0 0 5 0 0 0 0
1 0 1 5 0 5 0 0
1 1 0 5 5 0 0 0
1 1 1 5 5 5 1 4.64
Page | 5
Lab 02 – Basic Logic Gates
NOT Logic Gate
𝑌 = 𝐴̅
i. Equipment
1. Adjustable Direct Current (DC) Power supply.
2. Digital Multi Meter (DMM).
3. IC type 7404 NOT gate.
4. Light Emitting Diode (LED), resistors (330 Ohm) and slide switches.
Page | 6
Lab 02 – Basic Logic Gates
NOT Logic Gate
Figure 2.4 - 7404 NOT logic gate IC. Figure 2.5 - Schematic of NOT gate
Page | 7
Lab 02 – Basic Logic Gates
NOR Logic Gate
Input Output
A A Y Y
(Logic) (Volts) (Logic) (Volts)
0 0 1 4.64
1 5 0 0
NOT gate circuit (Link)
https://www.tinkercad.com/things/kUCyqCq2jkc-copy-of-2-input-and-circuit/editel?sharecode=p4M
Page | 8
Lab 02 – Basic Logic Gates
NOR Logic Gate
̅̅̅̅̅̅̅̅̅
𝑌 = 𝐴 + 𝐵
𝑌 = ̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝐴 + 𝐵 + 𝐶
i. Equipment
1. Adjustable DC Power supply.
2. DMM.
3. IC type 7402 NOR gate.
4. Light Emitting Diode (LED), resistors (330 Ohm) and slide switches.
Figure 2.6 - 7402 NOR logic gate IC. Figure 2.7 - Schematic of NOR gate
Page | 9
Lab 02 – Basic Logic Gates
NOR Logic Gate
Input Output
A B A B Y Y
(Logic) (Logic) (Volts) (Volts) (Logic) (Volts)
0 0 0 0 1 4.64
0 1 0 5 0 0
1 0 5 0 0 0
1 1 5 5 0 0
Page | 10
Lab 02 – Basic Logic Gates
NOR Logic Gate
0 0 0 0 0 0 1 4.64
0 0 1 0 0 5 0 0
0 1 0 0 5 0 0 0
0 1 1 0 5 5 0 0
1 0 0 5 0 0 0 0
1 0 1 5 0 5 0 0
1 1 0 5 5 0 0 0
1 1 1 5 5 5 0 0
Page | 11
Lab 02 – Basic Logic Gates
NOR Logic Gate
Page | 12
Lab 02 – Basic Logic Gates
Exercise
Exercise
1. Reduce the Power Supply voltage to 4V in 2-input NOR gate circuit. Comment on the
effect of reduced supply voltage on your observed output logic and output voltage. Did
it effect the logic level? Briefly explain why. Attach snippet of simulation circuit.
2. Search the Datasheet of IC 74HC00. Provide its pin configuration and Voltage levels
for High and Low Logic.
3. If we were to build a truth table for a 16-input AND gate, how many different
combinations of inputs would we have? Explain.
4. An electronic system will only operate if three switches R, S and T are correctly set.
An output signal (X = 1) will occur if R and S are both in the ON position or if R is in
the OFF position, and S and T are both in the ON position. Design a logic circuit to
represent the above situation, and draw the truth table
5. Develop a truth table for the circuit and determine the Logic Gate got realized.
Circuit 1 Circuit 2
Page | 13
Lab 02 – Basic Logic Gates
Assessment Rubric
Assessment Rubric
Page | 14
Lab 02 – Basic Logic Gates
Lab Evaluation Rubric
Components are wired and Components are wired Few but not all Complete components are
Neat and Clean Circuit didn’t show neat and clean with untidy connection Components are wired wired with neat and clean
LR1
layout connections and minimal and didn’t show neat and with neat and clean tight connections and task
efforts shown clean connections connections completed in due time
Measurements are
Measurements are both
Measurements are incomplete, somewhat inaccurate and Measurements are mostly
accurate and precise.
inaccurate and imprecise. very imprecise. accurate.
Observations are very
Observations are incomplete Observations are Observations are generally
LR4 Data Collection thorough. Includes
or not included. Symbols, incomplete or recorded in a complete. Minor errors
appropriate symbols, units
units and significant figures confusing way. Major using symbols, units and
and significant digits and
are not included errors using symbols, units significant digits
task completed in due time
and significant digits
Page | 15