Chapter 7-Latches Flip Flop
Chapter 7-Latches Flip Flop
Chapter 7-Latches Flip Flop
Logic Circuits
• Here Q and Q’ feed back into the circuit. They’re not only outputs,
they’re also inputs.
• To figure out how Q and Q’ change, we have to look at not only the
inputs S and R, but also the current values of Q and Q’:
Qnext = (R + Q’current)’
Q’next = (S + Qcurrent)’
Active-High SR Latch:
Storing a Value: SR = 00
• What if S = 0 and R = 0?
• The equations on the right reduce to:
Qnext = (0 + Q’current)’ = Qcurrent
Q’next = (0 + Qcurrent)’ = Q’current
Qnext = (R + Q’current)’
Q’next = (S + Qcurrent)’ When S = 0 and R = 1, the latch is RESET (Q = 0)
When S = 1 and R = 0, the latch is SET (Q = 1)
When S = 0 and R = 0, Q and Q’ maintains the
previous value
When S = 1 and R = 1, both Q and Q’ are 0, which is
invalid
C D Qnext
0 x No change
1 0 0
1 1 1
• Also, this latch has no “bad” input combinations to avoid. Any of the
four possible assignments to C and D are valid.
Latches:
Gated D Latch
• Draw the output Q for the gated D latch.
Latches:
Gated JK Latch
• Gated JK latch is another way to improved the gated SR Latch
• The input of J and K performs exactly the same as S and R, with the
exception of the condition of JK = 11.
• When J and K are both high (JK=11), the output toggles (switch
from 0 to 1 or vice versa)
clk
Q (+ve Flip-flop)
Q (-ve Flip-flop)
Flip-Flops:
D Latch vs D Flip-flop
Flip-Flops:
T Flip-flop
• T (toggle) flip-flop has two inputs: a clock input and a T input.
• When T is 0, clock pulses has no effect on the output.
• When T is 1, when a clock pulse arrives, the output toggles.
clk
Q
Flip-Flops:
JK Flip-flop
• JK flip-flop is versatile and is a widely used type of flip-flop.
• It is identical to JK latch where the output is toggled or inverted when
JK = 11. But the input is changes during a clock edge.
0 1 SET asynchronous
1 0 RESET asynchronous
1 1 JK synchronous
Flip-Flops:
Asynchronous Flip-flop
• Example of characteristic table for asynchronous JK flip-flop
Flip-Flops:
Asynchronous Flip-flop
• Draw the output waveform for asynchronous JK flip-flop given an input
timing diagram as below:
Flip-Flops IC:
74x74 (Dual D Flip-flop)
• 74x74contains two identical D flip-flops that are independent of each
other except sharing VCC and ground.
• The flip-flops are positive edge triggered and have active-low
asynchronous preset and clear output.
Flip-Flops IC:
74x76 (Dual JK Flip-flop)
• 74x76 contains two identical JK flip-flops that are independent of
each other except sharing VCC and ground.
• The flip-flops are negative edge triggered and have active-low
asynchronous preset and clear output.
Flip-Flops IC:
74x76 (Dual JK Flip-flop)
• Given a input waveforms are applied to one of the JK flip-flop in
74x76. Determine the 1Q output waveform.