Professional Documents
Culture Documents
Experiment 5
Monsoon, 2008
Latches and Flip-flops
In this experiment, the two basic modules required for the design of sequential circuits LATCH
for asynchronous circuits, and FLIP-FLOP for synchronous circuits will be studied. Latches
using NAND and NOR gates will be separately assembled and tested. The basic operation of
master-slave R-S and J-K flip-flops will then be studied by combining two latches to make a flipflop. All ICs used in this experiment belong to the CMOS CD40xx family.
13
12
11
10
8
R
VDD
CD4001
Q
Gnd
S
1
Fig. 5.1 NOR Latch using CD4001 Quad 2- input NOR Gate
2. Repeat the experiment with a NAND latch assembled using two gates in the CD4011 chip,
applying the following sequence of inputs through two Input switches:
S R = 10, 11, 01, 11, 10, 01, 10, 11, 00, 11, 01, 00, 11, 10, 00, 11.
14
13
12
11
10
8
S
VDD
CD4011
Gnd
Q
R
Fig. 5.2 NAND Latch using CD4011 Quad 2- input NAND Gate
B. Master-Slave Flip-flop
1. The two latches tested in part A have now to be combined to make a master-slave flip-flop,
which consists of two interconnected latches the Master latch and the Slave latch. The R-S
inputs and the Q-Q outputs of the two latches are indicated by the subscripts M and S. The
interconnection logic of the latches has to ensure the following actions:
(i) Master latch stores the finally required output when the Clock input CK = 1.
(ii) Slave latch output Q QM when the Clock input CK = 0.
RS
SM
QM
CK
CK
Q
R
SS
QM
RM
SM
QM
CK
CK
K
SS
QM
RM
13
12
11
10
8
J-K FLIP-FLOP TRUTH TABLE
VDD
CD4012
Gnd
ACTION
Qn+1
HOLD
CLEAR
SET
TOGGLE