Professional Documents
Culture Documents
ELECTRONICS
(PHY340)
GROUP MEMBERS:
MEMBERS NAME STUDENT ID
NUR AZIRA SYAHIRAH BINTI AZIZAN 2016573601
NURUL NURJANNAH BINTI ZAINI KAMAL 2016351007
NUR SYUHADA BINTI AHMAD TERMIZI 2016726471
NUR AZRA BINTI AZAHARI 2016904685
DATE OF SUBMISSION:
14 DECEMBER 2018
LECTURER’S NAME:
SIR RAFAEL JULIUS
EXPERIMENT 1: Basic Logic Gates
Introduction: A large number of electronic circuits in computers, control units and so on are
made up of logic gates. The objective for conducting these experiments, is to see how the
operation of Logic Gates work. Furthermore, in order to see how these different logic gates
work, they will be used in separate circuits and have their own truth tables, so that it is easier
to tell how they differ from each other, and how they would work. Logic gates have one or
more inputs with one output. They respond to various input combinations. A truth table shows
this relationship between circuit’s input combinations and its output.
Materials Required:
Procedure:
Results:
Procedure:
1. The OR gate circuit was connected as shown in Figure 1-2.
2. The power supply was turned ON.
3. Table 2 was completed.
4. The power supply was turned OFF.
Table 2:
INPUTS OUTPUTS
A B X=A+B
0 0 0 (Low)
0 1 1 (High)
1 0 1 (High)
1 1 1(High)
Results:
Procedure:
1. The inverter circuit was connected as shown in Figure 1-3.
2. The power supply was turned ON.
3. Table 3 was completed.
4. The power supply was turned OFF.
Table 3:
INPUTS OUTPUTS
A X=A
0 1 (High)
1 0 (Low)
Results:
Procedure:
1. The circuit was connected as shown in Figure 1-4.
2. The power supply was turned ON.
3. Table 4 was completed.
4. The power supply was turned OFF.
5. The circuit was connected as shown in Figure 1-5.
6. The power supply was turned ON.
7. Table 5 was completed.
8. The power supply was turned OFF.
Table 4: Table 5:
6. The NAND gate is formed by inverting the inputs and outputs of an AND gate.
7. The NOR gate is formed by inverting the inputs and output of an OR gate.
8. The power supply voltage for TTL ICs is typically 5 volts.
9. Show the output waveform of the OR gate shown below.
10. Show the output waveform of the AND gate shown below.
Discussion:
The logic gate is representing for all digital circuits and expressed by Boolean constant which
are allowed to have only two possible value, 0 to 1. Boolean expression is for expressing the
relationship between a logic circuit’s inputs and outputs. There are three basic operations in
Boolean Algebra; AND, OR and NOT gates. AND and OR gates probably more than have at
least two inputs while NOT gate has only one input only and they are produce one input only.
Based off the “truth tables” shown in the observations, each truth table shows the output for
each gate in the circuit. As for the operation of AND gate, the output is high if both inputs A
and B are high. The Boolean expression for AND gate is X = A.B. As for the operation for OR
gate, the output will be high when input A or B is high or both are high. The Boolean expression
for OR gate is X = A+B. Meanwhile for the NOT gate, also known as an inverter. The operation
of NOT gate is that if a high level (1) input, it will produce a low level (0) output or vice versa.
The Boolean expression for NOT gate is X = A̅. The truth table was constructed for each logic
gates to analyse and verify the outputs for the circuit. Every gate has different truth table, which
shows that each basic gate works different from each other. The truth tables above indicate that
the expected results. All the results that obtained is same as in truth table.
Conclusion:
In conclusion, the logic gate work on the basis of Boolean Algebra and determined by truth
table. Also using only some basic logic gates we can construct AND, OR and NOT gates using
its combination in a particular way. Each gate works in different way.
EXPERIMENT 2: NAND & NOR GATES
Objective: To analyse the output of NAND and NOR gates with truth table.
Introduction: In this experiment, the understanding of logic gates we used to perform basic
logical hardware functions. Logic gates are the basic building blocks for digital electronic
circuits thus performing logical operations on one or more logical inputs to produce a single
logical input. A truth table shows this relationship between circuit’s input combinations and its
output. NAND and NOR gates were considered as universal gates. Combinations of NAND
and NOR gates will create a logic functions represent a basic logic gates (AND, OR and NOT
gates).
Apparatus:
Procedure:
INPUTS
OUTPUTS
A B
0 0 1
0 1 1
1 0 1
1 1 0
Results:
Part B: NOR Gate
Procedure:
1. The two inputs NOR gate circuit was connected as shown in Fig. 2-2.
2. The power supply was turned ON.
3. Table 2 was completed.
4. The power supply was turned OFF.
Table 2
INPUTS
OUTPUTS
A B
0 0 1
0 1 0
1 0 0
1 1 0
Results:
Part C: Gate Conversion
Procedure:
1. The circuit was connected as shown in Fig. 2-3.
2. The power supply was turned ON.
3. Table 3 was completed.
4. The power supply was turned OFF.
5. The circuit was connected as shown in Fig. 2-4.
6. The power supply was turned ON.
7. Table 4 was completed.
8. The power supply was turned OFF.
Table 3 Table 4
INPUTS OUTPUTS INPUTS OUTPUTS
A B X A B X
0 0 0 0 0 0
0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
Results:
Fig.2-3:
Fig.2-4:
Questions:
1. Which logic gate can be used to replace the circuit as shown in Fig. 2-3 & Fig 2-4.
For Figure 2-3, it can be replaced with the AND gate and Hex inverter.
For Figure 2-4, it can be replaced with the NOR gate and Hex inverter.
4. With logic diagram and equation, show how 1 2-inputs NAND gate can be used as an
inverter.
y = ̅̅̅̅̅̅
𝐴 .𝐴
̅̅̅̅̅̅̅̅
y=𝐴 +𝐵
7. Draw the electrical equivalent circuits of the 2- inputs NAND and 2- inputs NOR gates
using only switches and lamps.
A B A
B
Conclusion:
In conclusion, a NAND gate is an inverted AND gate, and a NOR gate is an inverted OR gate.
The output of a two input NOR gate is low, when either one or both inputs are “High”. In
Comparison, The output of a two input NAND gate is high, when either one or both inputs are
“LOW”.
EXPERIMENT 3: BOOLEAN ALGEBRA
EXPERIMENT 4: Decoding counters and digital display
Objectives
1. To test a seven-segment LED display
2. To connect and operate a decoder with a seven-segment LED display.
Materials Required
1. Digital Logic Trainer
2. Solid-state devices: IC 7447 and common-anode seven-segment display
Procedure
0 0 0 0 1 1 1 1 1 1 0 0
0 0 0 1 0 1 1 0 0 0 0 1
0 0 1 0 1 1 0 1 1 0 1 2
0 0 1 1 1 1 1 1 0 0 1 3
0 1 0 0 0 1 1 0 0 1 1 4
0 1 0 1 1 0 1 1 0 1 1 5
0 1 1 0 0 0 1 1 1 1 1 6
0 1 1 1 1 1 1 0 0 0 0 7
1 0 0 0 1 1 1 1 1 1 1 8
1 0 0 1 1 1 1 0 0 1 1 9
1 0 1 0 0 0 0 1 1 0 1 10
1 0 1 1 0 0 1 1 0 0 1 11
1 1 0 0 0 1 0 0 0 1 1 12
1 1 0 1 1 0 0 1 0 1 1 13
1 1 1 0 0 0 0 1 1 1 1 14
1 1 1 1 0 0 0 0 0 0 0 15
Binary ‘0’
Binary ‘1’
Binary ‘2’
Binary ‘3’
Binary ‘4’
Binary ‘5’
Binary ‘6’
Binary ‘7’
Binary ‘8’
Binary ‘9’
Binary ‘10’
Binary ‘11’
Binary ‘12’
Binary ‘13’
Binary ‘14’
Binary ‘15’
Discussion
In the experiment, all the 16 digit were shown in the seven-segment display. To
obtain the result a truth table was constructed to get the input and output of the seven-
segment display. IC 7447 was used in the experiment. We should be careful while
conducting this experiment as any mistakes in wiring this circuit will lead to short
circuit. Make sure do not connect any pin of the common anode display directly to
ground as it may cause short circuit.
Conclusion
Based on the experiment, the seven-segment LED display was tested based on
the truth table conducted. As the IC 7447 was connected to the seven-segment LED
display, the output value show the same value as the theoretical value. The objectives
of this experiment is achieved.
EXPERIMENT 5: CLOCKED-R-FLIP-FLOP AND TYPE OF FLIP FLOP
References
1. A.Saha, N.Manna, Digital Principles & Logic Design (2007), David F.Pallai, Infinity
Science Press LLC.
2. https://www.scribd.com/doc/307528448/Lab-Report-On-Basics-Logic-Gate
3. https://www.electronics-tutorials.ws/logic/logic_2.html
4. https://www.electronics-tutorials.ws/boolean/bool_7.html
5. https://www.academia.edu/27945254/Lab_Report_2_Digital_Logic_Gates
6. http://www.academia.edu/12632060/Seven_Segment_Display_Decoder
7. http://cecas.clemson.edu/~breid/ECE201Lab/ECE201Lab2(Encoding-
Decoding).html
8. http://electrofriends.com/articles/electronics/microcontroller-electronics-
articles/8051-8951/interfacing-7-segment-display-using-7447-decoder/