Tut 7
Tut 7
Tut 7
ELCT201
Spring 2024
Tutorial 7
Sequential circuits: Latches and Flip Flops
1
Combinational vs. Sequential
i/p
Combinational Circuit
o/p
Memory
Elements
2
Latches
• SR Latch
– S’R’ Latch
– SR Latch with Control
• D Latch (Transparent Latch)
• Other Latches
– JK
– T
3
SR Latch:
for RESET • It consists of two cross coupled NOR gates
for SET
SR Ch./c table:
SS R RQ(t+1)
Q(t+1)
Q’(t+1)
Operation
Operation
00
0 1 1
1 0 0 1 Reset Reset
Reset Q
11
1 0 0
0 1 1 0 Set
SetSet
1 1 Undefined
11 1 1 - - - Undefined
Undefined
Q’
R Q
S Q’
SR Latch
Q
0 010 11 00
Q’
1 0 00 00 11
5
S’R’ Latch
• It consists of two cross coupled NAND gates
S’R’ Ch./c table:
S’ R’ Q(t+1)
0 0 - undefined
0 1 1 Set
1 0 0 Rest
1 1 Q(t) No change
S’ Q
R’ Q’
6
SR Latch with a control
1 0 0 Q(t) No change 1
1 0 1 0 Reset
1 1 0 1 Set
1 1 1 - Undefined
0
1
7
D Latch (The transparent Latch)
D - Ch./c eq.:
Q(t+1) = D 1
8
JK Latch
K Q’
9
T Latch
T Q
Q
T D Q
Q’
C Q’
Latch Timing Problem
Example:
0 1 2 3 4 5
CLK
D
N.B.:
• The Clock Pulses
problem with latches is that it responds to a change in the
level of a clock pulse+ve
LATCH
pulse TIMING PROBLEM
-ve pulse
Flip Flops
-ve edge
D Latch-Q FF-Q
D-Latch D-Latch
(Master) (Slave)
CLK
Flip Flops Solving The Latch Timing Problem
D Ch./c table:
D Latch-Q FF-Q
C D Q(t+1)
D-Latch D-Latch
(Master) (Slave)
0 x Q(t)
1 0 0
CLK 1 1 1
Example Cont’d:
0 1 2 3 4 5
CLK
Latch-Q
D(slave latch)
CLK’
CLK(slave latch)
FF-Q
D Latch-Q FF-Q
D-Latch D-Latch
D (Master) (Slave)
CLK
CLK
0 1 2 3 4 5
CLK
D
Latch-Q
CLK’
FF-Q
Flip Flops
– FF that triggers only during a signal transition and is disabled
during the rest of the clock pulse duration
• (-ve) edge triggered FF
• (+ve) edge triggered FF
D
D
CLK
CLK
D D
D-Latch D-Latch D-Latch D-Latch
(Master) (Slave) (Master) (Slave)
CLK CLK
Sheet 7
• Problem 2:
• Show how a JK-FF is constructed from 2 JK-Latches in such a
way to make them operate properly when they are part of a
sequential circuit equivalent to triggering the change at signal
positive transition
J JK-Latch JK-Latch
(Master) (Slave)
K
CLK
Sheet 7
• Problem 3:
• A PN Flip flop has four operations: clear to 0, no change, complement, and set to 1,
when inputs P and N are 00, 01, 10 and 11, respectively:
a) Tabulate the characteristic table
NQ N
b) Derive the characteristic equation P
m m m m
c) Tabulate the excitation table o 1
13 2
CLK
How to implement any flip flop using another
T J Q
K Q’
Clk