Digital Logic Design: Latches, Flip-Flops, and Timers
Digital Logic Design: Latches, Flip-Flops, and Timers
Digital Logic Design: Latches, Flip-Flops, and Timers
Digital Logic
Design
Fall-2018
Chapter 7
Latches, Flip-Flops,
and Timers
Figure 7–4
EE-227 Digital Logic Design 5/1/2019 7
EE-227 Digital Logic Design 5/1/2019 8
Latches
The active-LOW S-R latch is available as the 74LS279A IC.
It features four internal latches with (2)
1S1
two having two S inputs. To SET any (3) (4) 1Q
1S2
of the latches, the S line is pulsed low. (1)
1R
It is available in several packages. (6)
2S (7)
S-R latches are frequently used for 2Q
(5)
2R
switch debounce circuits as shown:
VCC (11)
3S1
(12) (9) 3Q
3S2
(10)
3R
(15)
2 S Q 4S (13)
S 4Q
(14)
4R
R R Position Position
1 1 to 2 2 to 1
74LS279A
EN
Q
EE-227 Digital Logic Design 5/1/2019 10
EE-227 Digital Logic Design 5/1/2019 11
Latches
The D latch is a variation of the S-R latch but combines the
S and R inputs into a single D input as shown:
D D Q
Q
EN EN
Q
Q
EN
Determine the Q output for the
Q
D latch, given the inputs shown.
EN
D Q D Q
C C
Dynamic Q Q
input
indicator (a) Positive edge-triggered (b) Negative edge-triggered
When both J and K are LOW, the output does not change from
its prior state. When J and K are both HIGH, the flip-flop
changes state. This is called the toggle mode.
The two control inputs are labeled J and K in honor of Jack Kilby, who
invented the integrated circuit.
EE-227 Digital Logic Design 5/1/2019 24
Flip-flops
J Q
CLK
Determine the Q output for the J-K
flip-flop, given the inputs shown. K Q
Notice that the outputs change on the leading edge of the clock.
CLK
A D-flip-flop does not have a toggle mode like the J-K flip-
flop, but you can hardwire a toggle mode by connecting Q
back to D as shown. This is useful in some counters as you
will see in Chapter 8.
D Q
This figure illustrates basically how these inputs work. As you can see,
they are connected so that they override the effect of the synchronous
input, D and the clock.
FIGURE 7-26
Logic diagram for a
basic D flip-flop
with active-LOW
preset and clear
inputs.
CLR
Flip-flops J Q
CLK
K Set
PRE Reset
CLR
The typical propagation delay time for the 74AHC family (CMOS) is 4 ns.
Even faster logic is available for specialized applications.
EE-227 Digital Logic Design 5/1/2019 36
3. Propagation delay tPLH as measured from the leading edge of
the preset input to the LOW-to-HIGH transition of the output.
This delay is illustrated in Figure 7–32(a) for an active-LOW
preset input.
4. Propagation delay tPHL as measured from the leading edge of
the clear input to the HIGH-to-LOW transition of the output.
This delay is illustrated in Figure 7–32(b) for an active-LOW
clear input. The 74AHC family has specified delay times under 5 ns.
FIGURE 7-32 Propagation delays, preset input to output and clear input to output.
EE-227 Digital Logic Design 5/1/2019 37
Set-up time
The set-up time (ts) is the minimum interval required for
the logic levels to be maintained constantly on the inputs
(J and K, or D) prior to the triggering edge of the clock
pulse in order for the levels to be reliably clocked into the
flip-flop. This interval is illustrated in Figure 7–33 for a D
flip-flop.
Pulse Widths
Minimum pulse widths (tW) for reliable operation are
usually specified by the manufacturer for the clock, preset,
and clear inputs. Typically, the clock is specified by its
minimum HIGH time and its minimum LOW time.
REXT CEXT
For most one-shots, the length of time Q
CX
in the unstable state (tW) is determined RX/CX
by an external RC circuit. Trigger
Q
Trigger
Q
tW
(4) (8)
R1
(7) RESET VCC
DISCH
(6) (3)
The trigger is a THRES OUT
negative-going (2) (5) tW = 1.1R1C1
TRIG CONT
pulse. GND
C1 (1)
(4) (8)
R1
10 kW (7) RESET VCC
DISCH
(6) (3)
THRES OUT
(2) (5) tW = 1.1R1C1
TRIG CONT
C1 GND
(1)
2.2 mF
1.44
f
R1 2R2 C1
(4) (8)
R1
RESET VCC
(7)
DISCH
The frequency and duty cycle R2 (6)
THRES OUT
(3)
10 (4) (8)
R1
RESET VCC
1.0 (7)
DISCH
C1 (mF)
10
1
1M
10
10
kW
0k
MW
kW
W
(6) (3)
W
f (Hz)
EE-227 Digital Logic Design 5/1/2019 55
The 555 timer Applications
c. 3 CLK
d. 4 K Q
CLR
4. Assume the output is initially HIGH on a leading edge
triggered J-K flip flop. For the inputs shown, the output
will go from HIGH to LOW on which clock pulse?
a. 1
CLK
b. 2 J
c. 3 K
d. 4 1 2 3 4
5. The time interval illustrated is called
a. tPHL 50% point on triggering edge
b. tPLH CLK
c. set-up time
Q 50% point on LOW-to-
d. hold time HIGH transition of Q
?
6. The time interval illustrated is called
a. tPHL
b. tPLH D
d. hold time ?
7. The application illustrated is a
a. astable multivibrator HIGH HIGH
a. astable multivibrator R
D Q1
b. data storage device C
c. frequency multiplier D Q2
input lines R
D Q3
Clock C
R
Clear
9. A retriggerable one-shot with an active HIGH output has
a pulse width of 20 ms and is triggered from a 60 Hz line.
The output will be a
a. series of 16.7 ms pulses
b. series of 20 ms pulses
c. constant LOW
d. constant HIGH
10. The circuit illustrated is a +VCC
a. astable multivibrator
(4) (8)
R1
b. monostable multivibrator (7)
RESET VCC
DISCH
c. frequency multiplier R2 (6)
THRES OUT
(3)
(2) (5)
d. frequency divider C1
TRIG CONT
GND
(1)
Answers:
1. b 6. d
2. d 7. d
3. b 8. b
4. c 9. d
5. b 10. a