Professional Documents
Culture Documents
Lecture 17-20
Sequential Circuits
(Part-I)
Race-around Condition
In J-K flip-flop which are level
triggered clock pulse, if J=K=1, and if
CLK=1 for a long period of time,
then Q output will toggle as long as
CLK is high, which makes the output
of the flip-flop unstable or
uncertain. This problem is called
race around condition in J-K flip-
flop. This problem can be avoided
by ensuring that the clock input is at
logic “1” only for a very short time.
This introduced the concept
of Master Slave flip flop and Edge
triggered Flip-flop.
1
24-08-2023
Master-slave Configuration
• Master-slave flip flop is designed
using two separate latches. Out of
these, one acts as the master and
the other as a slave.
• The master-slave flip flop is designed
in such a way that the output of the
"master" latch is passed to both the
inputs of the "slave“ latch. The
output of the "slave" latch is passed
to inputs of the master latch.
2
24-08-2023
Master-slave JK FF
J-K Flip-flop races when clock high and J=K=1. Master-slave arrangement suppresses racing
3
24-08-2023
S-R Flip-Flops
• Fig. (a) shows the logic symbol for a clocked S-R flip-flop
that is triggered by the positive-going edge of the clock
signal.
• This means that the FF can change states only when a
signal applied to its clock input makes a transition from 0
to 1.
• The S and R inputs control the state of the FF in the same
manner as described earlier for the NOR gate latch, but
the FF does not respond to these inputs until the
occurrence of the PGT of the clock signal.
J-K Flip-Flops
• Clocked (Edge triggered) J-K flip-flop is
triggered by the positive going edge of the clock
signal. The J and K inputs control the state of
the FF in the same ways as the S and R inputs
do for the clocked S-R flip-flop except for one
major difference: the J=K=1 condition does not
result in an ambiguous output. For this 1, 1
condition, the FF will always go to its opposite
state upon the positive transition of the clock
signal. This is called the toggle mode of
operation. In this mode, if both J and K are left
HIGH, the FF will change states (toggle) for
each PGT of the clock.
4
24-08-2023
D Flip-Flops
• Fig.(a) shows the symbol and the function table
for a clocked D flip-flop that triggers on a PGT.
Unlike the S-R and J-K flip-flops, this flip-flop has
only one synchronous control input, D, which
stands for data.
• The operation of the D flip-flop is very simple: Q
will go to the same state that is present on the D
input when a PGT occurs at CLK.
• In other words, the level present at D will be
stored in the flip-flop at the instant the PGT
occurs. The waveforms in Fig. (b) illustrate this
operation.
0 0 0 0 0 0
0 1 1
0 1 1
1 0 0
1 0 1
1 1 1
1 1 0
5
24-08-2023
0 0 Q(t) 0 0 Q(t)
No change No change 0 0 0 Q(t)
0 1 0 0 1 0 Reset No change
Reset Reset
1 1 1 Q’(t)
1 0 1 1 0 1
Set Set Set Toggle
1 1 ? 1 1 Q’(t)
Toggle
D Flip Flop
T Flip Flop
6
24-08-2023
FF Characteristic Equation
S-R Flip Flop J-K Flip Flop
Qn+1 = S+ R ’ Q n Qn+1 = J Q n’ + K ’ Q n
D Flip Flop
T Flip Flop
D 0 1 T
Qn Qn 0 1
0 0 1 0 0 1
1 0 1 1 1 0
Q n+1 = D Q n+1 = T Q n’ + T’ Q n
7
24-08-2023
8
24-08-2023