Professional Documents
Culture Documents
Digital Fundamentals CHAPTER 7 Latches F
Digital Fundamentals CHAPTER 7 Latches F
Digital Fundamentals CHAPTER 7 Latches F
CHAPTER 7
Latches, Flip-Flops and Timers
Slide 1
Latches
Slide 2
Latches
• S-R latch Active High
Slide 3
Find the output Q, given the inputs S and R.
Assume Q is low initially.
Slide 5
Find the output Q, given the inputs S and R.
Slide 7
Gated S-R latch
Find output given the inputs.
EN enables the gate.
Output is frozen unless EN is high.
Slide 8
Gated D latch
Find output given the inputs. The D latch is like the S-R latch,
EN enables the gate. but only has one input. Ouput
Output is frozen unless EN is high. follows input D when EN is HIGH.
No invalid state
for D latch.
Slide 10
Edge-Triggered Flip-Flops
Waveforms
Slide 11
Find outputs for given inputs for S-R positive edge-
triggered flip-flop. Assume output is initially LOW.
Slide 12
Edge-Triggered D Flip-Flop
Waveforms
Slide 13
Edge-Triggered D Flip-Flop
Slide 14
Edge-Triggered Flip-Flops
Waveforms
HIGH to LOW
Slide 15
Edge-Triggered J-K Flip-Flop
Note that clock has bubble, so output changes on negative-going edge of clock pulse.
Slide 16
Logic symbol for a J-K flip-flop with active-LOW preset and clear inputs.
Slide 17
Determine Q output given the inputs shown.
Assume Q is initially LOW.
Slide 18
Flip-Flop Operating Characteristics
Slide 19
Propagation delay - time required after an input has changed
for the output to change.
Four categories of propagation delay times for a flip-flop.
(a) Clock to Output – Low to High (b) Clock to Output – High to Low
Power Dissipation
P = VCC x ICC
Slide 21
Frequency Division
• Example of two J-K flip-flops used to divide the clock frequency by 4.
QA is one-half and QB is one-fourth the frequency of CLK.
Slide 22
Counting
• Flip-flops used to generate a binary count sequence.
Two repetitions (00, 01, 10, 11) are shown.
Slide 23
One-Shots
• Nonretriggerable one-shot
– 74121
– Range of 30 ns to 28 s using external components
tW = 0.7 R CEXT
• Retriggerable one-shot
– 74122
– Range of 45 ns to 28 s using external components
tW = 0.32 R CEXT (1 + 0.7 )
R
Slide 24
One-Shots
• Nonretriggerable one-shot
Slide 25
One-Shots
• Nonretriggerable one-shot
Slide 26
Three ways to set the pulse width of a 74121.
Slide 27
One-Shots
• Retriggerable one-shot
Slide 28
One-Shots
• Retriggerable one-shot
Slide 29
Use a 74121 to create nonretriggerable one-shot with a pulse width of 100 ms.
Capacitors are the hardest component to find, since fewer standard sizes.
So start with a standard size like 1 µF to see if R is close to a standard size.
100
105 ms
ms
tW = 0.7 R CEXT
100 ms = 0.7 R (1 µF)
R = 143 kΩ
150 kΩ is a standard resistor.
If we need better accuracy, Find the time with these.
we could put a 120K in
1 EXT
C µF 150
REXTkΩ
series with a 22K to get tW = 0.7 (150 k Ω)(1 µF)
142K. tw = 99.4 ms = 105 ms
Note: There are many different combinations of R and C that can give the
same pulse width. We could also use a 10 µF capacitor and a 15 k Ω resistor.
Slide 30
The 555 Timer
Slide 31
The 555 Timer
tw=1.1R1C1
Slide 32
The 555 Timer
Slide 34
Equations for 555 Timer
• Frequency
1.44
f
( R1 2 R2 )C1
• Duty Cycle
R1 R2
Duty Cycle = 100%
R1 2R2
If R1 = R2 then Duty Cycle = 66%
If R1 = 0 (short) then Duty Cycle = 50%
If R2 = 0 (short) then Duty Cycle = 100%
which is always on.
Slide 35
Troubleshooting
Two-phase clock generator with ideal output
waveforms of CLK A and CLK B
Note that outputs (CLK A and CLK B) change at same time as inputs (CLK, Q, and Q)
Slide 36
Oscilloscope displays for the actual circuit shows there is a problem!
We have glitches or spikes! Caused by propagation delays.
Clock is going high just as Q is going low.
CLK A goes high since CLK is HIGH and Q is HIGH.
Slide 37
We made the J-K flip-flop change on falling edge.
Note the bubble on the CLK input.
Now we won’t have glitches, since Q and Q aren’t changing as our outputs are changing.
Slide 38
Review of Terms
Slide 39