Documente Academic
Documente Profesional
Documente Cultură
Experiment - I
Reg. No : 16sea029
Abstract
Logic gates are the fundamentals of digital electronics. Basically there are six logic gates as
“NOT”, “AND”, “OR”, “EXOR”, “NAND”, “NOR” and “EXNOR” which can be represent
any kind of logical functions in digital electronics. Since this experiment was focused on
studying about basic logic gates and their operations which performs the functions of
Boolean algebra in order to having an successful approach for understanding concepts of
digital electronics.
Page | ii
Table of Contents
1. Introduction ................................................................................................................... 1
2. Pre-Lab Exercises .......................................................................................................... 2
3. Methodology.................................................................................................................. 4
3.1.1 Equipment and Materials ................................................................................. 5
4. Results ........................................................................................................................... 5
5. Analysis & Discussions ................................................................................................. 6
6. Conclusions ................................................................................................................... 7
7. References ..................................................................................................................... 8
List of Figures
List of Tables
Page | iii
1. Introduction
This experiment was focused on studying about basic logic gates and their operations. Logic
gates are the basic building blocks of digital electronics and mainly there are six logic gates
as “NOT”, “AND”, “OR”, “EXOR”, “NAND”, “NOR” and “EXNOR” which can be
represent any kind of logical functions in digital electronics.
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).
For this experiments 7400 IC series was used to identify the behavior of each logic gates.
Experiment allows student to understand the operation of logic gates and also some basic
concepts related with digital electronics.
Page | 1
2. Pre-Lab Exercises
A. Identify and name the basic logic gates and draw symbols to represent them.
B. For each of the above logic gates, write down a Boolean algebraic expression to
represent them.
C. Construct the truth tables of each logic gate you identified.
Electronic circuits are working with power which is provided by applying prescribed
voltage to the circuit. Therefore best method for indicating logical conditions (logical
truth and logical false) is availability of voltage in relevant terminal. Accordingly “True”
and “False” can be represented through following conditions.
Above figure shows IC Vs. VCE behavior of transistor for different IB values. Accordingly it
is clear that in the cut-off region, transistor is fully off and opposed to that in the saturated
region transistor is fully open. Therefore is obvious that transistor can operate as an
electronic switch.
Page | 3
In the aforementioned arrangement BJT is act as a “NOT” gate and therefore it is known as
inverter. As described previously, here,
In cut-off region, IC=0 & VCE=VCC
In saturated region, VCE=0 & IC=VCC/RL
Let’s discuss with circuit diagram shown above, assume that the “low” states are voltages
between 0 to 0.5 V and “high” states voltages are between 4 to 5 V, and VCC = 5 V. When
the input voltage is “low” (VI ≈ 0), BJT will be in cut-off and VO = VCC = 5 V (“high” state).
When input voltage is “high,” with proper choice of RB, BJT will be in saturation, and VO =
VCE = Vsat ≈ 0.2 V (“low” state).
Accordingly it is worked as “NOT” gate.
3. Methodology
Following steps were repeated identifying operation of each logic gate.
Identify the correct IC from 7400 series for each gate and study about pin
configuration of the IC by referring the data sheets. Specially followings are studied.
Input and output pins of logic gates
Power input pin (VCC and ground pin)
Construct the circuit as shown in figure below using the dip switch and other
components
Provide necessary power supply to the circuit correctly observe the result for
different arrangements shown in table below
A B F
0 0
0 1
1 0
1 1
Page | 4
3.1.1 Equipment and Materials
4. Results
Following table indicates observed results in relation to each logic gate. Here “0” denotes
no voltage is applied to the input and “1” denotes 5VDC is applied to the input terminal. Also
in the output, “1” denotes that the LED was switched on and “0” denotes it was not switched
on. Here always 14 pin was for the power supply (VCC = 5V) and 7 pin was for the GND.
Pin arrangements for inputs and outputs of each gate are mentioned in below table.
Page | 5
0 1 0
1 0 0
1 1 0
EXOR A (Pin 1 ) B (Pin 2 ) Output (Pin 3 )
0 0 0
0 1 1
1 0 1
1 1 0
EXNOR A (Pin 1 ) B (Pin 2 ) Output (Pin 3 )
0 0 1
0 1 0
1 0 0
1 1 1
However several problems were encountered during the experiment and here are the
solutions for them.
In some cases LED was dimmed (when it must be in totally “OFF” position) and in such a
cases, it seems to be that result was unreliable. However reason for aforementioned situation
was identified as it happens because of floating inputs. Floating inputs means that input is
not connected by any conducting path to key voltage reference point or ground, in another
word it is not reference to anything. Here input is not tied to anything and therefore input
potential is indeterminable. This can be avoided either using a pull up resistor to input
voltage or pull down resistor to 0V or ground. In this experiment pull down resistors was
used.
Page | 6
Here we assumed that voltage drop across the logic gate (IC) in non-considerable. According
to the data sheet of a LED,
*Table below indicates that current rating for orange color LED (which has 20nm dominant
wavelength) is 20mA.
(Source: http://dangerousprototypes.com/docs/Basic_Light_Emitting_Diode_guide)
DIP (Dual Inline Package) switch is a set of manual electrical switches designed to hold
configurations and select the interrupt request (IRQ). DIP switches are used in place of
jumper blocks.
6. Conclusions
Operation of basic logic gates was successfully studied in this experiments. Furthermore
important concepts which are related with digital electronics such as floating inputs,
transistor as an inverter (NOT gate) was also studied.
Page | 7
7. References
AspenCore Inc. (2016). Logic Gates. Retrieved August 03, 2016, from Electronics Tutorials:
http://www.electronics-tutorials.ws/
EETech Media. (n.d.). All About Circuits. Retrieved August 03, 2016, from
http://www.allaboutcircuits.com/
Hughes, E. (2008). Electrical and Electronic Technology (10th ed.). (J. Hiley, K. Brown, &
M. Smith, Eds.) Essex: Pearson Education Limited.
Page | 8