Digital Logic Design
Digital Logic Design
Lab Manual
CPE-122
Instructor
Saleh M Alghamdi
2024 - 1445
Contents
3 Appendix 16
3.1 Figure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1
Experiment 1
1.1 Introduction
The SR latch, also known as the Set-Reset latch, is a fundamental component
in digital electronics. It is a simple bistable circuit that can store one bit of
information. In this lab tutorial, we will delve into the working principles of
an SR latch and learn how to implement it using basic logic gates.
2
NAND gates, but for the purpose of this explanation, we will focus on the
NOR gate implementation.
In an SR latch, there are two NOR gates connected in a cross-coupled
configuration. One NOR gate’s output is connected to one of the inputs of
the other NOR gate, and vice versa. This forms a positive feedback loop,
which is crucial for the latch’s behavior.
Let’s examine the latch’s behavior in different scenarios:
No Input Activation:
When neither the Set (S) nor the Reset (R) inputs are activated (S = R = 0),
no changes occur in the latch’s state. The outputs of the NOR gates remain
in their previous states, maintaining the latch’s stability.
3
It’s essential to note that the indeterminate state (S = R = 1) is to be
avoided, as mentioned earlier. In this state, both outputs of the NOR gates
become logic low (0), which creates a feedback loop that can cause oscillation
and unpredictable behavior.
S R Q Q′
0 0 Q Q′
0 1 0 1
1 0 1 0
1 1 X X
Step 2: Connect the Set (S) input to one of the inputs of the first NOR gate.
Step 3: Connect the Reset (R) input to one of the inputs of the second NOR
gate.
Step 4: Connect the output of the second NOR gate to the other input of the
first NOR gate.
Step 5: The output of the first NOR gate is the Q output, and the output of
the second NOR gate is the Q’ output.
4
Figure 1.1: SR Latch using NOR Gates
LAB TASK 1
• Simulate the SR latch using the NOR gate in the Electronic Workbench
Simulation software. (See Appendix A).
• Implement the SR latch using the NOR gate. Use IC 7402 and the KL
300 Digital Logic trainer. (Follow the steps in Appendix A).
• Reflect your findings including the truth table and any other observations
on your lab report.
• Step 1: Connect the output of one NAND gate to one of the inputs of
the other NAND gate.
• Step 2: Connect the Set (S) input to one of the inputs of the second
NAND gate.
• Step 3: Connect the Reset (R) input to one of the inputs of the first
NAND gate.
5
• Step 4: Connect the output of the first NAND gate to the other input
of the second NAND gate.
• Step 5: The output of the second NAND gate is the Q output, and the
output of the first NAND gate is the Q’ output.
LAB TASK 2
• Simulate the SR latch using the NAND gate in the Electronic Workbench
Simulation software. (See Appendix A).
• Implement the SR latch using the NAND gate. Use IC 7400 and the
KL 300 Digital Logic trainer. (Follow the steps in Appendix A).
• Reflect your findings including the truth table and any other observations
on your lab report.
6
1.5 Applications of SR Latch
SR latches are widely used in digital systems and have various applications,
including:
LAB TASK 3
• Examine the indeterminate state and write down your observations in
your Lab report.
1.7 Summary
In this lab tutorial, we explored the SR latch, a fundamental circuit in digital
electronics. We discussed its working principles, truth table, and two common
implementations using NOR and NAND gates. We also examined the timing
diagram and highlighted some applications of SR latches. Understanding the
SR latch is crucial for building more complex digital circuits and systems.
7
Remember to exercise caution when working with digital circuits, and always
follow proper circuit design and safety guidelines.I hope this tutorial on the
SR latch was helpful! If you have any further questions, feel free to ask.
8
Experiment 3
Appendix
3.1 Figure
16
Stage 1:
• Connect Pin 1 to the LED.
• Connect Pin 4 to the LED.
Stage 2:
• Connect Switch 1 (Set) to Pin 2
• Connect Switch 2 (Reset) to Pin 5
17
Stage 3:
• Connect Pin 14 to the VCC.
• Connect pin 7 to the GND.
Stage 4:
• Connect pin 6 to 1
• Connect pin 3 to 4
18