Professional Documents
Culture Documents
WINSEM2022-23 BECE102L TH VL2022230503286 2023-03-27 Reference-Material-III
WINSEM2022-23 BECE102L TH VL2022230503286 2023-03-27 Reference-Material-III
Dr. S.Rajalakshmi
Assistant Professor, ECE, SENSE
Lecture 11: Sequential
Logic Latches & Flip-
flops
Introduction
Memory Elements
Pulse-Triggered Latch
S-R Latch
Gated S-R Latch
Gated D Latch
Edge-Triggered Flip-flops
S-R Flip-flop
D Flip-flop
J-K Flip-flop
T Flip-flop
Asynchronous Inputs
sequential circuit for latches
Introduction
A sequential circuit consists of a feedback path, and
employs some memory elements.
Combinational
outputs Memory outputs
Combinational Memory
logic elements
External inputs
Memory Q
command element stored value
Characteristic table:
Command Q(t) Q(t+1)
(at time t) Q(t): current state
Set X 1
Q(t+1) or Q+: next state
Reset X 0
Memorise / 0 0
No Change 1 1
Memory
Elements
Memory element with clock. Flip-flops are memory
elements that change state on clock signals.
Memory Q
command element stored value
clock
Pulse-triggered
latches
ON = 1, OFF = 0
Edge-triggered
flip-flops
positive edge-triggered (ON = from 0 to 1; OFF = other time)
negative edge-triggered (ON = from 1 to 0; OFF = other time)
S-R
Latch
Complementary outputs: Q and Q'.
When Q is HIGH, the latch is in SET state.
When Q is LOW, the latch is in RESET state.
For active-HIGH input S-R latch (also known as NOR gate
latch),
R=HIGH (and S=LOW) 🢧 RESET
state S=HIGH (and R=LOW) 🢧 SET state
both inputs LOW 🢧 no change
both inputs HIGH 🢧 Q and Q' both LOW
(invalid)!
S-R
Latch
For active-LOW input S'-R' latch (also known as NAND
gate latch),
R'=LOW (and S'=HIGH) 🢧 RESET state
S'=LOW (and R'=HIGH) 🢧 SET state both
inputs HIGH 🢧 no change
both inputs LOW 🢧 Q and Q' both HIGH
(invalid)!
S
Q S Q
EN EN
Q' R Q'
R
Gated S-R
Latch
Outputs change (if necessary) only when EN is HIGH.
Under what condition does the invalid state occur?
Characteristic table:
EN=1
Q(t) S R Q(t+1)
0 0 0 0 S R Q(t+1)
0 0 1 0 0 0 Q(t) No
0 1 0 1 change
0 1 1 indeterminate 0 1 0 Reset
1 0 0 1 1 0 1 Set
1 0 1 0 1 1 indeterminate
1 1 0 1
1 1 1 indeterminate Q(t+1) = S + R'.Q
S.R = 0
Gated D
Latch
Make R' input equal to S' gated D latch.
D latch eliminates the undesirable condition of invalid
state in the S-R latch.
D
Q D Q
EN EN
Q' Q'
Gated D
Latch
When EN is HIGH,
D=HIGH latch is SET
D=LOW latch is RESET
Clock signal
S Q D Q J Q
C C C
R Q' Q' K Q'
S Q D Q J Q
C C C
R Q' Q' K Q'
CLK
Q'
X
Combinational Y D Q Q2 = Y*
logic circuit
Z CLK
Q'
D Q Q3 = Z*
Transfer CLK
Q'
Jk flip flop
J-K Flip-flop
T J Q
CLK C
K Q'
T Flip-
flop Application: Frequency division.
High High
QA QB
High J Q J J
CLK C CLK C C
K K K
CLK CLK
Q QA
QB
J
Q
J Q Pulse
C transition
CLK
detector
K Q' Q'
K
CLR CLR
CLK
PRE
CLR
Q
J = K = HIGH Preset Toggle Clear
S-R Flip-
flopThe pulse transition detector.
S
Q
Pulse
CLK transition
detector
Q'
R
CLK' CLK'
CLK CLK* CLK CLK*
CLK CLK
CLK' CLK'
CLK* CLK*