16 Latches and Flip Flops
16 Latches and Flip Flops
16 Latches and Flip Flops
R
Q
Q
S
• When the output of first gate becomes the input of second gate
and vice versa, this is called cross-coupling.
• The S-R (Set-Reset) latch can be constructed from NOR gates
or NAND gates.
• With NOR gates, the latch responds to active-HIGH inputs
• With NAND gates, it responds to active-LOW inputs.
R S
Q Q
Q Q
S R
0 10
R
To RESET the latch (Q = 0), a momentary Q
HIGH signal is applied to the R input while Latch
the S remains LOW. initially
SET
01
Q
0 S
Inputs Outputs R
Q
S R Initial Initial Next Next
Q Q’ Q Q’
0 0 0 1 0 1
Q
0 0 1 0 1 0 S
1 0 0 1 1 0
1 0 1 0 1 0 S R Q(t+1) Remarks
0 1 0 1 0 1 No Change
0 0 Q(t)
0 1 1 0 0 1 (HOLD)
1 1 0 1 Invalid Invalid 1 0 1 SET
0 1 0 RESET
1 1 1 0 Invalid Invalid
1 1 -- Invalid
R
D Q
EN
S Q
D Q
EN
Positive Edge
Negative Edge
Q(t+1) = D
Instr: Dr. Awais M. Kamboh. 13
D – Flip Flop
D Q D Q
C C
Notch Q Q
indicates
clock edge (a) Positive edge-triggered (b) Negative edge-triggered
Q(t+1) = D
T CLK Q(t+1)
0 Q(t) No Change
1 Q’(t) Toggle
J K CLK Q(t+1)
0 0 Q(t) No Change
0 1 0 Reset
Characteristic Table of 1 0 1 Set
JK Flip Flop
1 1 Q’(t) Toggle
CLK
CLK
CLK
CLK