Professional Documents
Culture Documents
Flip Flops
Flip Flops
com
FLIP-FLOP
The most important memory element is the flip-flop, which is made up of an assembly of logic
gates. Even though a logic gate by itself has no storage capability, several logic gates can be
connected together in ways that permit information to be stored. Flip-flops are the basic building
blocks of most sequential circuits.
A flip-flop (FF), known more formally as bistable multivibrator, has two stable states. It can
remain in either of the states indefinitely. Its state can be changed by applying the proper
triggering signal. It is also called a 1-bit memory.
The flip-flop has two outputs, labeled Q and . The Q output is the normal output of the FF and
is the inverted output. The state of the FF always refers to the normal output Q.
A FF is said to be HIGH state or logic 1 state or SET state when Q = 1, and in LOW state or
logic 0 state or RESET state or CLEAR state when Q =0.
Latch
The term latch is used for certain flip-flops. It refers to non-clocked flip-flops because these
flip-flops latch on to a 1 or a 0 immediately upon receiving the input pulse called SET or
RESET. They are not dependent on the clock signal for their operation.
1
OLatus Systems Pvt Ltd
www.olatus.com
Types of Flip-Flops
S-R Flip-Flop
D Flip-Flop
J-K Flip-Flop
T Flip-Flop
S-R Flip-Flop
S R Q(t+1)
0 0 Q(t)
0 1 0
1 0 1
1 1 Invalid
2
OLatus Systems Pvt Ltd
www.olatus.com
S = 0, R = 0
It has no effect on the output state. Q and will remain in whatever state they were prior to the
occurrence of this input condition.
S = 0, R = 1
This will always reset Q = 0, where it will remain even after RESET returns to zero.
S = 1, R = 0
This will set Q = 1, where it will remain even after SET returns to 0.
S = 1, R = 1
S R Q(t) Q(t+1)
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 X
1 1 1 X
3
OLatus Systems Pvt Ltd
www.olatus.com
D Flip-Flop
D flip-flop is constructed from S-R flip-flop. In S-R flip-flop, when S and R are connected
inversely then we get D flip-flop. It is having only one input.
4
OLatus Systems Pvt Ltd
www.olatus.com
D Q(t+1)
0 0
1 1
D Q(t) Q(t+1)
0 0 0
0 1 0
1 0 1
1 1 1
5
OLatus Systems Pvt Ltd
www.olatus.com
J-K Flip-Flop
J K Q(t+1)
0 0 Q(t)
0 1 0
1 0 1
1 1
J = 0, K = 0
It has no effect on the output state. Q and will remain in whatever state they were prior to the
occurrence of this input condition.
J = 0, K = 1
This will always reset Q = 0, where it will remain even after RESET returns to zero.
6
OLatus Systems Pvt Ltd
www.olatus.com
J = 1, K = 0
This will set Q = 1, where it will remain even after SET returns to 0.
J = 1, K = 1
In this mode, the flip-flop toggles.
J K Q(t) Q(t+1)
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
7
OLatus Systems Pvt Ltd
www.olatus.com
T Flip-Flop
T flip-flop is constructed from J-K flip-flop. In J-K flip-flop, when J and K are connected
directly, then we get T flip-flop.
T Q(t+1)
0 Q(t)
1
T Q(t) Q(t+1)
0 0 0
0 1 1
1 0 1
1 1 0
8
OLatus Systems Pvt Ltd
www.olatus.com
For the J-K flip-flop with J = K = 1, if the width of the clock pulse tp is too long, the state of
the flip-flop will keep on changing from 0 to 1, 1 to 0, 0 to 1 and so on, and at the end of the
clock pulse, its state will be uncertain. This phenomenon is called the race around condition.
The outputs Q and will change on their own if the clock pulse width tp is too long
compared with the propagation delay of each NAND gate.
9
OLatus Systems Pvt Ltd
www.olatus.com
Conversion of Flip-Flops
The flip-flops can be converted from one to another by following some steps as
To understand the above steps we will solve one example. Rest can be solved by following the
same steps.
SR-FF to JK-FF
Here, required FF = JK
Given FF = SR
J K Qn Qn+1 S R
0 0 0 0 0 X
0 0 1 1 X 0
0 1 0 0 0 X
0 1 1 0 0 1
1 0 0 1 1 0
1 0 1 1 X 0
1 1 0 1 1 0
1 1 1 0 0 1
10
OLatus Systems Pvt Ltd
www.olatus.com
SR-FF to D-FF
SR-FF to T-FF
11
OLatus Systems Pvt Ltd
www.olatus.com
JK-FF to SR-FF
JK-FF to D-FF
JK-FF to T-FF
D-FF to SR-FF
D-FF to JK-FF
D-FF to T-FF
12
OLatus Systems Pvt Ltd
www.olatus.com
T-FF to SR-FF
T-FF to JK-FF
T-FF to JK-FF
Applications of Flip-Flops
13
OLatus Systems Pvt Ltd