Professional Documents
Culture Documents
IE501
Lecture 9
Semester 1, 2020-21
Topics Covered
This presentation will cover:
• Latches
• Flip-flops
• Timers
• Roger Tokheim, Schaum’s Outline of Theory & Problems of Digital Principles, 3 rd Ed.,
McGraw-Hill.
– Read Chapter 9 on Flip-flops & other multivibrators.
The S-R (Set-Reset) latch is the most basic type. It can be constructed
from NOR gates or NAND gates. With NOR gates, the latch responds to
active-HIGH inputs; with NAND gates, it responds to active-LOW inputs.
Semester 1, 2020-21 IE501, Lecture 9 4
Latches – Active HIGH SR Latch
Note: These latch & flip-flop truth tables are also known as
characteristic tables.
EN
Q
Semester 1, 2020-21 IE501, Lecture 9 18
Gated S-R Latch Made From NAND gates
EN
Determine the Q output for the
Q
D latch, given the inputs shown.
Once triggered, the output (Q) equals the last value at the D input
until a new value is triggered in.
CLK
Determine the Q output for the J-K
flip-flop, given the inputs shown. K Q
CLK
Note: The S-R flip-flop behaves the same as the J-K flip-flop,
except that when both S and R = 1 it enters an invalid state,
exactly like the S-R latch.
Semester 1, 2020-21 IE501, Lecture 9 34
Master/Slave Flip-flops
•• These
overcome race hazards by responding to the state of the
inputs shortly before the clock trigger.
• This master-slave J-K flip-flop responds internally to the state of
the inputs when the clock goes high, but only updates the
outputs (Q & ) on the falling clock edge.
Inputs Q
J
CLK
K Set
PRE Reset
CLR
Q
Semester 1, 2020-21 IE501, Lecture 9 41
Flip-Flop Characteristics
Flip-Flop Propagation Delay
Propagation delay time is specified for the rising and falling
outputs. It is measured between the 50% level of the clock to the
50% level of the output transition.
One flip-flop will divide fin by 2, two flip-flops will divide fin by 4 (and so on). A side
benefit of frequency division is that the output has an exact 50% duty cycle.
The D and J-K flip flops on the left are wired as “divide-by-2” circuits.
The J-K flip-flops on the right are cascaded to form a “divide-by-4” circuit.
Semester 1, 2020-21 IE501, Lecture 9 47
Flip-Flop Counters
Flip-flops can be
used to count the
number of clock
signals they receive
as shown here.
Each CLK input triggers
the flip-flops, which are
wired to toggle whenever
triggered.
The QA and QB outputs
indicate the number of
CLK inputs received.
Q
tW
R1
RESET VCC
DISCH
THRESH OUT
The trigger is a
negative-going tW = 1.1R1C1
TRIG CONT
pulse. GND
C1
+VCC
R1
RESET VCC
DISCH
R2 THRESH OUT
TRIG CONT
C1 GND