Professional Documents
Culture Documents
A B Carry Sum
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
Based on the truth table above, the sum or total is the output from the EXCLUSIVE-OR
get and carry is the output from the AND get. The actual process of adding two binary
numbers can be implemented by the half adder circuit as in Figure 1.
Figure 1
A full adder circuit can be designed using a combination of basic gates or even with
particular universal gates NAND or NOR only.
Figure 2
Apparatus:
Circuit evaluator IDL-800 Digital Lab
Integrated circuit (7400 and 7402)
Bread board
Connecting wire
Method:
1. Construct a half adder circuit by using only NAND gates, as shown in Figure 4. Then
verify and complete the truth table shown in Table 3.
Figure 4
2. Design the half adder circuit by using only NOR gates, and confirm the truth table.
3. Design the full adder circuit by using any suitable logic gates, and verify its truth table.
Table 4 - Truth table of a Full Adder Circuit
Input Output
A B Cin Carry, Cout Voltage Sum Voltage
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
The R-S latch is the R-S flip-flop without clock signal. R-S flip-flop with the clock signal
is also known as clocked-R-S flip-flop. In the absence of clock signal, the output of the
clocked-R-S flip-flop does not change despite the input R or S has varied. This output will
only change when the clock pulse arrives. The other types of flip-flops are D flip-flop,
toggle (T) flip-flop and J-K flip-flop. Each flip-flop has its strengths; J-K flip-flop may be
more suitable in the counter circuit and the D flip-flop in the register circuit.
Revised & translated by Ong LH (2012) 4
SET (S) and RESET (R) are the inputs of the R-S latch; and the changes in output depend
on the inputs in R and S. (see Figure 1). In a R-S latch, the two gates are connected by
cross-coupling output of the first gate to the input of the second gate, and the output of the
second gate returns to the input of the first. So when one of the gates is conducting, the
other will not be conducting. This means that the output is complementary and is denoted
by Q and Q . The reference set and reset logic is used to express the logic condition. Set is
Q = 1 and Q = 0. , while RESET is the opposite, which is Q = 0 and Q = 1.
Objective
To construct the R-S latch and R-S flip-flop using either NAND or NOR gates, and to
investigate the functions and operations of the R-S latch and R-S flip flops from the
circuits constructed.
Apparatus
Circuit evaluator IDL-800 Digital Lab
Integrated circuit (7400 and 7402)
Bread board
Connecting wire
Resistor 470 Ω
Methods
A. R-S latch
1. Construct the R-S latch circuit using NOR gates (7402), as shown in Figure 5.
2. Turn on the power supply. Connect Q and Q to the LED 1 to LED 2, respectively.
Logic 0 was put on inputs R and S. What happens to the LED 1 and LED 2? Record the
results in the R-S latch truth table.
0 0 Q Q Hold state
0 1 1 0 Set
1 0 0 1 Reset
1 1 * * Racing
3. Apply logic 0 and 1 at inputs R & S respectively and observe the output to see whether
the results agree with Table 5. Then, draw the truth table of the latch from your
observation of this experiment.
B. R-S Flip-flop
1. Construct the RS latch using NAND gates (7400) as shown in Figure 6.
Figure 6
4. Next, set the output Q =0 and Q =1, when the clock is off, and set the inputs S =0 and
R =0. Switch on the clock and record the output, after the clock signal is on, into the truth
table.
5. Return to the output Q =1 and Q =0 and repeat steps 4 for S-R: 0-1, 1-0 and 1-1.
6. Construct the flip-flop circuit using AND (7408) and NOR (7402) gates as shown in
Figure 7.
CLK
Figure 7
7. Repeat the procedure from step 2 to step 5 and build a truth table label as Table 7.
Table 7- Truth table of a clocked RS flip-flop (AND/NOR gates)
Input Output before clock signal Output after clock signal
R S Q Q Q Q
0 0 1 0
0 1 1 0
1 0 1 0
1 1 1 0
0 0 0 1
0 1 0 1
1 0 0 1
1 1 0 1
Appendix
Record the family of logic gates (IC family) used:______________________
With reference to the data sheet of TTL (Transistor-Transistor Logic), specify the values
of the proposed voltage range suitable and safe for the chip function. Fill in the table
below:
− −
A+ A =1 A .A = 0