Edit Lab 1 - Logic Gates and Combinational Logic
Edit Lab 1 - Logic Gates and Combinational Logic
Lab 1
Date: ....................................................................
Student’s Name: ..................................................
ID: .......................................................................
HCMC UNIVERSITY OF TECHNOLOGY AND EDUCATION
FACULTY FOR HIGH QUALITY TRAINING
INDUSTRIAL ELECTRONICS - BIOMEDICAL ENGINEERING DEPARTMENT
PART 1
INTRODUCTION
I. OBJECTIVES
- Lab policies and some regulations.
- To be familiar with Digital Logic Systems kit.
- Learn how to use some equipments in the electronic lab.
II. INTRODUCTION
In this lab you’ll use a Digital Logic Systems (DLS) kit to implement some simple digital
circuits. DLS kit provides you with a general wiring fabric in which to make connections
among circuit components. Learning how to use this kit effectively takes time and, more vital,
practice. Introduction to Digital Logic Systems kit shows you the basic layout of the KIT
which you’ll be using in DIGITAL SYSTEM IN PRACTICE.
b. Student partnerships, each lab is done in groups of two. The team approach encourages
interaction and helps with the debugging and data collection. However, lab report has to
be handed in individually.
c. Collaboration, Students are working in groups of two in the laboratory. This encourages
team work and makes the conduction of the experiments more efficient. You can
collaborate on the pre-lab and on interpretation of the measured data. However, each
student is responsible for writing the pre-lab and recording the data in his or her pre-lab
sheet. Copying of data from other groups or altered information will result in a zero grade
for the course. The lab report is a joined effort and each student should contribute equally
to writing the report.
d. Instruments and supplies, the major instruments you will need are permanently installed
in the stations. Small parts (resistors, capacitors, transistors, ICs) will be available in the
box in the lab area. Capacitors, transistors and integrated circuits (ICs) can be reused and
should be left on the table in the same manner as they were obtained.
e. Leave your workplace at least as clean and tidy as you found it. Put everything back in
its proper place. If the workplace is not tidy after you finish it will cause to lose some
marks.
f. Precautions Electronic test equipment can be damaged if incorrectly used. The function
generator will be damaged if a large DC or AC voltage is applied to the outputs. The
oscilloscope also has input limitations. Do not exceed 300V on any oscilloscope input.
Power supplies can also be damaged if an external voltage in excess of the supply output
voltage is fed back into the supply. The most common ways multi-meters are damaged are
by trying to measure voltage when the meter is set to measure current or resistance or by
exceeding the maximum voltage when in the voltage measurement mode. Think twice
before connecting a meter. In particular, check the position of the function switch and
ensure the test leads are connected to the proper inputs on the meter. If you make a
mistake you could blow the meter’s internal fuse or damage the converter chip.
No foods or drinks are allowed inside the lab for any reason.
PART 2
LOGIC GATES
AND COMBINATIONAL LOGIC
I. OBJECTIVES
Upon completion of this lab, you will able to:
- Understand the operation of logic gates.
- Build a combination circuit that implement a Boolean expression.
III. INTRODUCTION
1. Logic gates: IC 74LS02, IC 74LS32, IC 74LS00, IC 74LS08, IC 74LS86, IC 74LS04.
2. Alternate logic gates
a. Use NAND gate for other logic gates
b. Use NOR gate for other logic gates
c. Verify De-Morgan’s theorems
3. Design combinatorial logic circuits using logic gates
a. Using IC 7400 for designing circuit which is satisfied the below truth table
b. Implement the comparator two one-bit binary from logic gates.
c. Design the circuit that detect BCD number.
d. Design the full adder two one-bit binary by IC74LS86, IC 74LS02 and IC 74LS08.
2. Drawing the symbol – Writing the Boolean function – Writing truth-table of AND gate?
3. Drawing the symbol – Writing the Boolean function – Writing truth-table of NOT gate?
4. Drawing the symbol – Writing the Boolean function – Writing truth-table of OR gate?
5. Drawing the symbol – Writing the Boolean function – Writing truth-table of NOR gate?
6. Drawing the symbol – Writing the Boolean function – Writing truth-table of EX-OR gate?
7. Drawing the symbol – Writing the Boolean function – Writing truth-table of EX-NOR gate?
V. LABORATORY
1. LOGIC GATES
a. NAND GATE - 74LS00
- Two inputs of NAND gate wire up to switch.
- Output wire up to led-display
- Toggle switch to change input logic level.
- Look up the datasheet for the full pin diagram, status table, IC functions and parameters,
here is the schematic summary, logic diagram and IC status table as shown in Figure 2-1.
Figure 1.2. Pin configuration. logic diagram and function table of the 74LS00
Figure 1.6. Pin configuration. logic diagram and function table of the 74LS08
- Get the results and write down the checking truth table of AND gate.
Tick “×” if the logic gate is damage, tick “√” if the logic gate is good.
Table 1.4: Determine the status of 74LS08
c. OR GATE 74LS32
- Two inputs of OR gate wire up to switch.
- Connect output’s pin to led-display.
- Toggle switch to change input logic level.
Figure 1.8. Pin configuration. logic diagram and function table of the 74LS32
- Get the results and write down the checking truth table of OR gate.
Tick “×” if the logic gate is damage, tick “√” if the logic gate is good.
Table 1.6: Determine the status of 74LS32
Figure 1.11. Pin configuration. logic diagram and function table of the 7486
- Get the results and write down the checking truth table of OR gate.
Tick “×” if the logic gate is damage, tick “√” if the logic gate is good.
Table 1.8. Determine the status of 7486
e. NOT-GATE 74HC14
- Two inputs of NOT gate wire up to switch.
- Output wire up to led-display
- Toggle switch to change input logic level.
- Get the results and write down the checking truth table of NOT gate.
NOT gate
A B C D E F
A Y A Y A Y A Y A Y A Y
0 1 0 0 0 0 0
1 0 1 1 1 1 1
Tick “×” if the logic gate is damage, tick “√” if the logic gate is good.
Table 1.10. Determine the status of 74HC14
Figure 1.18. The schematic of NAND gate with three input on DLS kit
- Get the results and write down the checking truth table of NAND gate.
Tick “×” if the logic gate is damage, tick “√” if the logic gate is good.
Table 1.12. Determine the status of 74LS10
74LS00
NOT Figure 1.20a
74LS00 74LS00
AND Figure 1.20b
74LS00
74LS00
74LS00
OR
Figure 1.20c
74LS00
74LS00 74LS00
74LS00 Figure 1.20d NOR
Figure 1.20
- Which do these circuits in figure 1.20a, 1.20b, 1.20c, 1.20d correspond with logic gates?
74LS02
NOT Figure 1.21a
74LS02 74LS02
OR Figure 1.21b
74LS02
74LS02
74LS02
AND
Figure 1.21c
74LS02
74LS02 74LS02
NAND
74LS02 Figure 1.21d
Figure 1.21
- Which do these circuits in figure 1.21a, 1.21b, 1.21c, 1.21d correspond with logic gates?
c. Construct the circuit for the expression f (C , B, A) CBA (0,1,2,3,4) in two cases:
Case 1: Just only using NAND gates (74LS00).
Case 2: Just only using NOR gates (74LS02).
- Simplify f expression.
- Based on part 2a, sketch the circuit diagram for the case 1 and the part 2b for the
case 2.
Case 1:
Case 2:
- Build the circuit. The inputs C, B, A are driven by three switches. The output wires
up to led-display.
- Change the state of three inputs and observe the output to finish the truth table.
- Make comment on the results.
Input Output
A B C Y
Low Low Low High
Low Low High High
Low High Low Low
Low High High Low
High Low Low Low
High Low High High
High High Low Low
High High High High
- Just only using NAND gates with 2 inputs, implement the circuit that satisfies the
truth table above.
Hint:
- Build the circuit. The inputs C, B, A are driven by three switches.
- Output f wire up to led-display.
Lab 1 - LOGIC GATES AND COMBINATIONAL LOGIC.doc Page | 15
HCMC UNIVERSITY OF TECHNOLOGY AND EDUCATION
FACULTY FOR HIGH QUALITY TRAINING
INDUSTRIAL ELECTRONICS - BIOMEDICAL ENGINEERING DEPARTMENT
- Change the state of three inputs and observe the output values and compare these
with the truth table.
Input Output
A B A=B A<B A>B
0 0 1 0 0
0 1 0 1 0
1 0 0 0 1
1 1 1 0 0
Questions:
- Implement the one-bit comparator (2 inputs, 3 outputs) which are shown above
with condition: just only using NAND and NOR logic gates.
- Design the circuit.
d. Design the full adder two one-bit binary by IC74LS86, IC 74LS02 and IC 74LS08.
- Three inputs are Cin, A, B. Two outputs are S and Cout.
- Build the truth table