0% found this document useful (0 votes)
76 views32 pages

DL Unit 6 - Flip-Flops

The document describes different types of flip-flops used in sequential circuits. It discusses RS, D, J-K, and master-slave J-K flip-flops. RS flip-flops can have an indeterminate state when both inputs are high, while D flip-flops avoid this by inverting one input. J-K flip-flops define the indeterminate state as a toggle. Master-slave J-K flip-flops use two flip-flops to avoid race-around conditions by separating the master and slave sections. The document also covers clocking schemes like positive and negative edge triggering.

Uploaded by

yunavdc642
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views32 pages

DL Unit 6 - Flip-Flops

The document describes different types of flip-flops used in sequential circuits. It discusses RS, D, J-K, and master-slave J-K flip-flops. RS flip-flops can have an indeterminate state when both inputs are high, while D flip-flops avoid this by inverting one input. J-K flip-flops define the indeterminate state as a toggle. Master-slave J-K flip-flops use two flip-flops to avoid race-around conditions by separating the master and slave sections. The document also covers clocking schemes like positive and negative edge triggering.

Uploaded by

yunavdc642
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 32

TRIBHUVAN UNIVERSITY

INSTITUTE OF ENGINEERING
THAPATHALI CAMPUS

Logic Circuit-EX-502
Unit 6: Flip-Flops
Presented By
Er. Ganesh Kumal
Department of Electronics & Computer Engineering
IOE ,Thapathali Campus

5 June, 2023
Contents
6.1. RS Flip‐Flops
6.2. Gated Flip‐Flops
6.3. Edge‐Triggered RS Flip‐Flops
6.4. Edge Triggered D Flip‐Flops
6.5. Edge Triggered J K Flip‐Flops
6.6. Flip‐Flop Timing
6.7. J K Mater‐ Slave Flip‐Flops
6.8. Switch Contacts Bounds Circuits
6.9. Various Representation of Flip‐Flops
6.10. Analysis of Sequential Circuits
Sequential circuit
• Combinational circuit with feedback element (memory).
• Outputs depend upon present inputs and previous outputs (present
states).

Memory elements are


devices capable of storing
binary information. The
binary information stored
in the memory elements at
any given time defines the
Figure 6.1: Block diagram of sequential circuit. state of the sequential
circuit.
Prepared By: Er. Ganesh Kumal 3
Basic Flip-Flop (Latch)
• Single bit storage device (memory unit).
• It latches ‘0’ or ‘1’.
• Basic Flip-flop circuit can be constructed from two NAND gates or two
NOR gates.
• The cross-coupled connection from the output of one gate to the
input of the other gate constitutes a feedback path.
• Each latch has two outputs ( Q and Q’ ) and two inputs Set (S) and
Reset (R).
• This type of flip-flop is sometimes called a direct-coupled RS flip-flop,
or RS latch.

Prepared By: Er. Ganesh Kumal 4


Basic Flip-Flop with NOR Gates

When,
S=0, R=0 ; No change state
S=0, R=1 ; Reset
S=1, R=0 ; Set
Figure 6.2: NOR Latch S=1, R=1; Invalid

Prepared By: Er. Ganesh Kumal 5


Basic Flip-Flop with NAND Gates

Figure 6.3: NAND latch

Prepared By: Er. Ganesh Kumal 6


Clock Pulse
• In the latches and flip-flips, we use the additional
signal called clock.
• Digital circuits are invariably controlled by a clock and
events take place at discrete points in time.
• The clock is a circuit that provides a sequence of
pulses to trigger each internal operation.

Figure 6.11: Perfect idealized clock


Prepared By: Er. Ganesh Kumal 7
Positive and Negative Edge Triggering
• Depending on which portion of the clock signal the flip-flop responds
to, we can classify them into two types:
1. Level Triggering
i. Positive level triggering
ii. Negative level triggering
2. Edge triggering
i. Positive (rising) edge triggering
ii. Negative (falling) edge triggering

Prepared By: Er. Ganesh Kumal 8


CONT…

Edge Triggering

Level Triggering
Prepared By: Er. Ganesh Kumal 9
Flip-Flop
• Sequential circuit.
• Single bit memory element (storage device).
• Bi-stable device (either ‘1’ or ‘0’).
• Example: S-R flip-flop, D-flip-flop, J-K flip-flop, Master-Slave Flip-Flop
and T-flip-flop.

Prepared By: Er. Ganesh Kumal 10


Clocked RS Flip-Flop
Inputs Outputs

CP S R Q Q’
CP
X 0 0 No change
1 0 1 0 1
(a) Block diagram
1 1 0 1 0

1 1 1 Invalid

(c) Truth table

(b) Logic diagram


FigurePrepared
6.4: RS Flip-Flop
By: Er. Ganesh Kumal 11
Operation of S-R flip-flop
S R Q(t) Q (t +1)
•When CP=0, flip-flop 0 0 0 0
remains in previous state 0 0 1 1
•When CP=1 and 0 1 0 0
i. S = 0, R = 0 ; flip-flop 0 1 1 0
holds the data (No 1 0 0 1
change). 1 0 1 1
ii. S = 0, R = 1 ; flip-flop 1 1 0 X (Indeterminate)
reset irrespective of 1 1 1 X (Indeterminate)
Q Figure: Characteristic table
iii. S = 1, R = 0; flip-flop
set irrespective of
Q.
iv. S =1, R =1; flip-flop is
invalid state
Characteristic equation
Prepared By: Er. Ganesh Kumal 12
Clocked RS Flip-Flop

Indeterminate

Indeterminate

Figure 6.5: RS flip-flop by NOR latch


Prepared By: Er. Ganesh Kumal 13
Timing diagram of S-R F/F

Figure: Level Triggering

Figure: Edge Triggering


Prepared By: Er. Ganesh Kumal 14
D Flip-Flop
• One way to eliminate the undesired condition of the indeterminate
state in the RS flip-flop is to ensure that input S and R are never equal
to 1 at the same time.
• This is done in the D flip-flop as shown in figure 6.6.
• S input is inverted and given to R input to make D flip-flop from S-R
flip-flop.
• Used in registers, shift registers and some of the counters.

Prepared By: Er. Ganesh Kumal 15


D Flip-Flop
S Operation:
▪As long as CP=0, the output
of gate 3 and 4 are high and
the circuit cannot change the
R state regardless of the value
of D.
▪When CP=1, next state of D
flip-flop is always equal to
data input, D.
Invalid state is removed in D
flip-flop.
Figure 6.6: D Flip-Flop Advantage: Invalid state is
never happened.
Prepared By: Er. Ganesh Kumal 16
Figure: Timing diagram of D flip-flop (positive edge triggering)

Prepared By: Er. Ganesh Kumal 17


Clocked J-K Flip-Flop
•J-K flip-flop is a refinement of the R-S flip-flop.
•The indeterminate state of the R-S flip-flop is defined in the J-K
flip-flop (when S=1 and R= 1).
•We consider the inputs of S-R flip-flop as S = JQ’ and R = KQ.
Inputs Outputs

CP J K Q Q’

X 0 0 No change
CP 1 0 1 0 1

1 1 0 1 0

1 1 1 Toggle
(a) Logic diagram (b) Truth table
Figure 6.7: J- K Flip - Flop
Prepared By: Er. Ganesh Kumal 18
J-K Flip-Flop

Figure 6.8: J-K Flip-Flop


Prepared By: Er. Ganesh Kumal 19
Race around condition

How to avoid race around condition??


i. Using Master-Slave J-K flip-flop.
ii. Using the Edge triggering flip-
flop
iii. T/2 < propagation delay for
level triggering Prepared By: Er. Ganesh Kumal 20
Figure: Time diagram of Edge triggered J-K flip-flop

Prepared By: Er. Ganesh Kumal 21


J-K Master Slave F/F

• Master-Slave J-K flip-flop is constructed from two separate flip-flops.


One circuit serves as a master and the other as a slave and the overall
circuit is referred to as a master slave flip-flop.
• The master section is basically a gated latch and slave is also the same
except that it is clocked an inverted clock pulse and is controlled by
outputs of master section rather than by external J-K inputs.
• Characteristic table is same as J-K Flip-flop.

Prepared By: Er. Ganesh Kumal 22


(a) Block diagram

(b) Logic diagram

Figure 6.9: Master Slave J-K flip-flop.


Prepared By: Er. Ganesh Kumal 23
T Flip-Flop
• It is obtained by connecting J and K inputs
together; so only one input denoted by ‘T’.
•There is only two input conditions
J=K=1
J=K=0
• T flip-flop is used for counter.
Q(t) T Q(t + 1)
0 0 0 (a) Block diagram
0 1 1 K
1 0 1
1 1 0
(C) Characteristic table

(b) Logic diagram


Figure 6.10: T Flip-Flop
Prepared By: Er. Ganesh Kumal 24
Characteristic Table

Prepared By: Er. Ganesh Kumal 25


Excitation Table
A table that lists required inputs for a given change of state
( present to next state) is called an excitation table.

Prepared By: Er. Ganesh Kumal 26


Flip-Flop Conversion
• Steps:
i. Identify desired flip-flop and available (given) flip-flop.
ii. Make the characteristic table of desired flip-flop.
iii. Fill the excitation table of available flip-flop for each combination of
present state and next state.
iv. Get the simplified expression for each excitation input of given flip-flop.
o If necessary use k-map for simplification.
v. Draw the circuit.

Prepared By: Er. Ganesh Kumal 27


S-R Flip-Flop to Other Flip-Flop Conversion
S-R F/F to D F/F S-R Flip-Flop to J-K Flip-Flop
S-R F/F to J-K F/F o Desired flip-flop J-K
S-R F/F to T F/F o Available flip-flop S-R
Conversion Table KQ(t) For S
J 00 01 11 10
J-K Inputs P.S N.S S-R Inputs 0 0 X 0 0
J K Q(t) Q(t+1) S R
1 1 X 0 1
0 0 0 0 0 X
0 0 1 1 X 0
S = JQ(t)
0 1 0 0 0 X
0 1 1 0 0 1 KQ(t) For R
00 01 11 10
1 0 0 1 1 0 J
1 0 1 1 X 0 0 X 0 1 X

1 1 0 1 1 0 1 0 0 1 0
1 1 1 0 0 1
R = KQ(t)
Prepared By: Er. Ganesh Kumal 28
S

Figure: Realization of J-K by S-R flip-flop

Prepared By: Er. Ganesh Kumal 29


J-K Flip-Flop to T Flip-Flop
Given flip-flop = J-K
Desired flip-flop = T For J
Conversion Table Q(t)
T 0 1
T F/F
P.S N.S J-K Inputs 0 0 X
Input
T Q(t) Q(t+1) J K 1 X
1
0 0 0 0 X
0 1 1 X 0 J=T
1 0 1 1 X Q(t)
1 1 0 X 1 T 0 1
0 X 0

X 1
1

K=T

Prepared By:Figure:
Er. GaneshTKumal
flip-flop by J-K flip-flop 30
D Flip-Flop to S-R Flip-Flop
Given flip-flop = D SR
Desired flip-flop = S-R 00 01 11 10
Q(t)
0 0 0 X 1
Conversion Table
S-R Inputs P.S N.S D F/F input 1 1 0 X 1
S R Q(t) Q(t + 1) D
D = S + R’Q(t)
0 0 O 0 0
0 0 1 1 1
0 1 0 0 0
0 1 1 0 0
1 0 0 1 1
1 0 1 1 1
1 1 0 Invalid X
1 1 1 Invalid X

Figure: Conversion of D flip-flop to S-R


Prepared By: Er. Ganesh Kumal 31
Unit 6 End !!
Any Queries ??

Prepared By: Er. Ganesh Kumal 32

You might also like