Module2 - FF - ADE - 21EEE135 - AK - LE
Module2 - FF - ADE - 21EEE135 - AK - LE
There are two types of sequential circuits. A synchronous sequential network is one in which
its behavior is determined by the values of the signals at only discrete instances of time,
provided by clock signal. An asynchronous sequential network the behavior of the network
is immediately affected by the input signal changes. The difference between synchronous and
asynchronous sequential circuit is shown in table below:
Flip flop are simple sequential circuits. It is the building block for sequential circuits. A flip-
flop has two stable conditions, either a ‘1’ or ‘0’.
2. Latches
Latches are one class of flip-flops. In a latch the output changes are not controlled.
The output responds immediately to changes on the input lines. It uses a special control
signal called Enable, The differences between latches and flip-flops are given below:
3. SR Latch
Figure Fig 3.2a shows the circuit of SR latch using and logic diagram of SR(Set-
Reset) Latch. The logic diagram is shown in fig 3.2b
0 0 Qn Qn No Change (NC)
0 1 0 0 Reset
1 0 1 1 Set
X
X
[Qn=0 and 𝑄̅ 𝑛 = 0 Invalid/ Forbidden/
1 1 [Qn=0 and 𝑄̅ 𝑛 = 0 which is
which is against Boolean Indeterminate
against Boolean algebra]
algebra]
OR
X
X
[Qn=1 and 𝑄̅ 𝑛 = 1 Invalid/ Forbidden/
0 0 [Qn=1 and 𝑄̅ 𝑛 = 1 which is
which is against Boolean Indeterminate
against Boolean algebra]
algebra]
0 1 1 1 Set
1 0 0 0 Reset
1 1 Qn Qn No Change (NC)
To have consistency in using NAND for SR latch the circuit diagram of fig B is used which
connects the S and R input with an inversion to maintain the same truth table as SR
implementation using NOR gate.
1
3
Working: When enable signal (E or C) = 0, then one of the input to NAND gate (1) and
(2) is 0. Therefore the output of NAND gate (1) and (2) will be ‘1’, irrespective of the
value of S and R. Then based on value of Q and Q’ the output of Gate 1 and Gate 2 will
remain in the same state without change. i.e.
E S R Qn+1 State
0 X X Qn NC
1 0 0 Qn NC
1 0 1 0 Reset
1 1 0 1 Set
1 1 1 X Invalid
a. Gated D-latch:
D-latch or Data-latch is used as a binary data storage. The two conditions of SR wherein
the output has a well-defined state is used.
i.e. S=0, R=1 then Q=0
S=1, R=0 then Q=1
i.e. it can be seen that when S & R are complimentary Q follows S.
Therefore the modifications to convert Gated SR latch as Gated D-latch is shown below
in fig 3.7a and the symbol of gated D-latch is shown in fig 3.7b
From the above circuit it can be seen that when circuit is enabled, Q follows value of D
and hence the name D-latch or Data – Latch. The functional table is shown below.
E D Qn+1 State
0 X Qn NC
1 0 0 Reset
1 1 1 Set
7. JK Flip Flop
JK flip flop removes the invalid condition of SR flip flop / latch. It works similar to SR
for the conditions of S=0, R=0 ; S=0, R=1; S=1, R=0. It introduces a new state called
TOOGLE state.
8. T Flip-flop: It is a special case of JK flip flop. It uses the Toggle state of JK flip flop. It
has one input called as T or Toggle. The flip flop is designed to provide toggle state and
hence is called T-flip flop or Toggle flip-flop.
It can be observed that to realize TOGGLE condition the value of J and K has to be ‘1’.
Hence figure 3.18 shows the implementation of T-Flip-flop using JK-Flip flop. The
functional truth table and symbol of T-flip flop is shown in figure below.
a) SR Latch / Flip Flop: Consider a SR flip flop shown below in figure below
The circuit is similar to SR latch except enable signal is replaced by clock pulse (CP). On the
positive edge of the clock pulse, the circuit responds to the S & R inputs. The expanded functional
truth table for SR latch / Flip-flop is shown below:
CP S R Qn Qn+1 Status
0 0 0 0 NC
0 0 1 1 NC
0 1 0 0 Reset
0 1 1 0 Reset
1 0 0 1 Set
1 0 1 1 Set
1 1 0 X Invalid
1 1 1 X Invalid
R Qn R Qn R Qn R Qn
S 1
0 0
0
S 1
1 X x
[
CP J K Qn Qn+1 Status
0 0 0 0 NC
0 0 1 1 NC
0 1 0 0 Reset
0 1 1 0 Reset
1 0 0 1 Set
1 0 1 1 Set
1 1 0 1 Toggle
1 1 1 0 Toggle
K-map for Qn+1
K Qn K Qn K Qn K Qn
1
J 0 0 0
J 1 1
1 0
̅̅̅̅ + 𝑲
Characteristic equation of a JK Flip-flop is 𝑸𝒏 + 𝟏 = 𝑱𝑸𝒏 ̅ 𝑸𝒏
c) D Flip-flop: Consider a D flip flop and its representation as shown in fig below
D Flip-flop is obtained by connecting an inverter between two inputs of SR flip-flop. The expanded
functional table of D flip flop is shown below:
CP Qn D Qn+1 Status
0 0 0 Reset
0 1 1 Qn+1=D
1 0 0 Reset
1 1 1 Qn+1=D
K-map for Qn+1 of D Flip-flop
̅̅̅̅ + 𝑻
Characteristic equation of T Flip-flop 𝑸𝒏 + 𝟏 = 𝑻𝑸𝒏 ̅ 𝑸𝒏= TQn
Steps to be followed:
1. Identify the required flip flop and the available flip flop as per the problem statement.
2. Write the functional truth table for the required flip flop with clear mention of inputs,
current state (Qn), next state (Qn+1).
3. Consider each row in the functional table written in previous step and identify Qn to Qn+1
requirement.
4. Based on excitation table of available flip flop, identify the input of available flip flops for
the change from Qn to Qn+1.
5. Solve for the excitation value identified with inputs and Qn as input variables and build the
circuit.
Write the functional truth table of required flip flop JK and for the change in Qn to Qn+1
identify the D input required based on excitation table of D-flip flop
K Qn K Qn K Qn K Qn
J 1
0 0 0
J 1 1
1 0
Therefore we get, D = J Qn + K Qn
The functional truth table of JK edge triggered flip flop and its symbol is shown in
Fig a and Fig b
Write the functional truth table of required flip flop D and for the change in Qn to Qn+1
identify the JK input required based on excitation table of JK-flip flop
State D Qn Qn+1 J K
0 0 0 0 X
Reset
0 1 0 X 1
1 0 1 1 X
Set
1 1 1 X 0
Solve using k-map to find expression for J and K input with D and Qn as input variables
J Qn Qn
K
Qn Qn
D 0
X D X 1
D 1 X D X 0
Thus the circuit of a positive edge triggered D flip flop is shown in figure below
Write the functional truth table of required flip flop T and for the change in Qn to Qn+1
identify the JK input required based on excitation table of JK-flip flop
State T Qn Qn+1 J K
0 0 0 0 X
NC
0 1 1 X 0
1 0 1 1 X
Toggle
1 1 0 X 1
Solve using k-map to find expression for J and K input with D and Qn as input variables
J Qn Qn Qn Qn
K
T 0
X T X 0
T 1 X T X 1
Thus the circuit of a positive edge triggered T flip flop is shown in figure below
Write the functional truth table of required flip flop T and for the change in Qn to Qn+1
identify the JK input required based on excitation table of D-flip flop
State T Qn Qn+1 D
0 0 0 0
NC
0 1 1 1
1 0 1 1
Toggle
1 1 0 0
Solve using k-map to find expression for J and K input with D and Qn as input variables
D Qn Qn
1 Therefore from the table we can see that the
T 0
expression for D = T’ Qn + T Qn’ = T Qn
T 1 0