Chapter 5
Transcript of Chapter 5
CHAPTER 5Sequential Circuits & Flip-Flops
1. Objectives
Upon completion of this chapter, student should be able to:
Describe the operation and use of latch and flip-flops (S R, D, J K)
Draw the flip-flops logic symbol.Draw timing diagram based on flip-flop
operation.Recognize the difference between a
latch and a flip-flop.Understand the flip-flops operating
characteristicsApply flip-flops in basic applications.
2. Sequential Circuits
Combinational – output depends only on the input.
Do not have memoryCannot store state
1
Sequential – output depends on input and past behavior.
Require use of storage elements.Contents of storage elements are
called state.Circuit goes through sequence of
states as a result of changes in inputs.
Figure 1
2.1 Sequential Circuits Types
a) Synchronous State changes synchronized by one
or more clocks Easier to analyze because can
factor out gate delays Set clock so changes allowed to
occur before next clock pulse
2
b)Asynchronous Changes occur independently Potentially faster Harder to analyze
3. Simple Memory Elements
Figure 2
A simple memory element: feedback will hold value
3
Figure 3
A memory element with NOR gates:Use Set/Reset to change stored value
4. Latch Used in computer system for
multiplexing data Latch is a type of temporary storage
device that has two states.
4.1 SR Latch
Two versions of SET-RESET (S-R) latches.a) Active HIGH input S-R latch
(NOR gate latch)
4
Logic diagram:
Truth table
Graphical symbol
Set
Reset
Output
Function
0 0 Qo No change0 1 0 Reset1 0 1 Set1 1 ? Not
allowed
5
b) Active LOW input latch (NAND gate latch)
Graphical symbol and logic diagram
Truth table
6
Example 1:
5. a) Gated SR Latch Gated latch requires an enable
input, EN.Logic diagram and graphical symbol for a gated S-R latch
7
Example 2
b) Gated D Latch
It differs from the S-R latch because it has only one input in addition to EN.
No illegal state. This input is called the D (Data)
input
8
Logic diagram, graphical symbol and timing diagram for gated D latch.
6. Edge-Triggered Flip-Flops
Synchronous input Change state either at positive edge
or negative edge of a clock pulse.
3 types of edge triggered flip-flops S-R flip flop
9
D flip-flop J-K flip-flop
Symbols – Edge-Triggered
6.1 Edge triggered S-R flip-flop
Graphical diagram for +ve edge triggered S-R ff
10
Truth table for a +ve edge triggered S-R ff
Timing diagram
11
Edge-triggering-pulse transition detector, produces a very short-duration spike during the transition of the clock pulse.
12
6.2.Edge triggered D Flip-Flop
Graphical diagram and truth table
Timing diagram
13
6.3 Edge triggered JK Flip-Flop
Graphical symbol
14
Truth table
Timing diagram
15
7. Asynchronous Inputs
Most IC ff also has asynchronous inputs.
State of the flip-flop change independent of the clock
They are normally labeled preset (PRE) and clear (CLR)
8. Flip-Flop Operating Characteristics • Propagation delay times• Set-up time• Hold time• Maximum clock frequency• Pulse widths• Power dissipation
16
9. Flip-Flop Applications
Parallel data storage
17
Frequency division•
18
Counting
19