Chapter 7 Flipflops
Chapter 7 Flipflops
Chapter 7 Flipflops
10/9/2012 RA/Sept2013-Jan2014 2
• Two categories of logic circuits:
Combinational Logic Circuit
10/9/2012 RA/Sept2012-Jan2013 3
• In sequential logic circuit, the output depends not
only on the present input but also on the history of
the input.
Input Combinational Ouput
Logic Gates
Memory
10/9/2012 RA/Sept2012-Jan2013 4
• Two memory elements that have been used as data storage are
latch and flip-flops.
• Two types of latch are:
SR Latch D Latch
SR Flip-flop D Flip-flop
10/9/2012 RA/Sept2012-Jan2013 5
Block Diagram Truth table Input Output
S R Q Mode
S Q
SR Hold
Latch 0 0 Q
R Q
0 1 0 Reset
Reset Reset
10/9/2012 RA/Sept2012-Jan2013 6
Block Diagram Truth table Input Output
CLOCK S R Q Mode
S SET
Q Hold
0 0 Q
0 1 0 Reset
R CLR Q
1 0 1 Set
TimingDiagram S
Based on the following figure, draw the Q waveform for the D latch.
Assume that Q starts LOW. 1 2 3 4
TimingDiagram E
Input Output
D SET
Q
CLOCK D Q Mode
0 0 Hold
CLR Q
1 1 Reset
Based on the following figure, draw the Q waveform for the D flip-
flop. Assume that Q starts LOW.
CLK 1 2 3 4
TimingDiagram
D
10/9/2012 RA/Sept2012-Jan2013 9
10/9/2012 RA/Sept2012-Jan2013 10
10/9/2012 RA/Sept2012-Jan2013 11
Block Diagram Truth table Input Output
CLOCK J K Q Mode
J SET Q Hold
0 0 Q
0 1 0 Reset
K CLR Q
1 0 1 Set
1 1 Q Toggle
K
Q
Hold Set Hold Reset Toggle Toggle Hold Toggle
10/9/2012 RA/Sept2012-Jan2013 12
10/9/2012 RA/Sept2012-Jan2013 13