Flip Flop
Flip Flop
x1 y1
x2 y2
Combinational Circuit y3
x3
x4 y4
Sequential Circuits
• Logic circuits whose outputs at instant of time depend not only on the
present inputs but also on the past outputs.
• Here the output signals are fed back to the input side.
Sequential
Circuit
Latches
• The simplest type of Sequential circuit has only 2 states.
• It is a memory cell which is capable of storing 1 bit of information, o
or 1.
• This sequential circuit is called Latch since 1 bit of information can be
locked or latched.
Latches
x1 G1 Q
x2 G2 Q’
• Flip Flops-
Qn Qn+1
S R
(Present State) (Next State)
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 Indeterminate
1 1 1 Indeterminate
The above truth table can be
reduced as
INPUTS OUTPUTS REMARKS
Qn Qn+1
S R States and Conditions
(Present State) (Next State)
Qn Qn+1
J K
(Present State) (Next State)
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0
Reduced Truth table
INPUTS OUTPUTS REMARKS
Qn Qn+1
J K States and Conditions
(Present State) (Next State)
0 X Qn
1 0 0
1 1 1
D Qn Qn+1
0 0 0
1 0 1
0 1 0
1 1 1
T Flip Flop
• T Flip-flop is simplified form of J-K flip flop.
• Because the J and K inputs are coupled, the device is
often referred to as a single input J-K flip flop.
• With the clock pulse to be high the
• input T= 0, output remains in same state.
• If input T= 1, the output toggles.
Truth Table of T Flop Flop
CP T Qn
0 X Qn
1 0 No Change
1 1 Toggle
Qn Qn+1 T
0 0 0
0 1 1
1 0 1
1 1 0
Master Slave Flip Flop
Race Round Condition
• In "JK Flip Flop", when both the inputs and CLK set to 1
for a long time, then Q output toggle until the CLK is 1.
• Thus, the uncertain or unreliable output produces. This
problem is referred to as a race-round condition in JK
flip-flop and avoided by ensuring that the CLK set to 1
only for a very short time.
• When the clock pulse is true, the slave flip flop will be in
the isolated state, and the system's state may be
affected by the J and K inputs. The "slave" remains
isolated until the CP is 1. When the CP set to 0, the
master flip-flop passes the information to the slave flip
flop to obtain the output.
• The master flip flop responds first from the slave
because the master flip flop is the positive level trigger,
and the slave flip flop is the negative level trigger.
• The output Q'=1 of the master flip flop is passed to the
slave flip flop as an input K when the input J set to 0 and
K set to 1. The clock forces the slave flip flop to work as
reset, and then the slave copies the master flip flop.
• When J=1, and K=0, the output Q=1 is passed to the J
input of the slave. The clock's negative transition sets
the slave and copies the master.
• The master flip flop toggles on the clock's positive
transition when the inputs J and K set to 1. At that time,
the slave flip flop toggles on the clock's negative
transition.
• The flip flop will be disabled, and Q remains unchanged
when both the inputs of the JK flip flop set to 0.
• A master-slave flip-flop contains two clocked flip-flops.
• The first is called a master and the second is a slave.
• When the clock is high the master is active. The output of the master is
set or reset according to the state of the input.
• As the slave is in active during this period its output remains in the
previous state. When the clock becomes low the output of the slave
flip-flop changes because it becomes active during the low clock
period.
• The final output of the master-slave flip-flop is the output of the slave
flip-flop.
• So the output of master-slave flip flop is available at the end of a clock
pulse.