Professional Documents
Culture Documents
Chapter 9
Upper
2009 Pearson
Education
2009 Pearson Education,
Saddle River,
NJ 07458. All Rights Reserved
Summary
Latches (biestables)
A latch is a temporary storage device that has two stable
states (bistable). It is a basic form of memory.
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.
S
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Summary
Funcionamiento S-R
The active-HIGH S-R latch is in a stable (latched) condition
when both inputs are LOW.
Assume the latch is initially RESET
(Q = 0) and the inputs are at their
inactive level (0). To SET the latch
(Q = 1), a momentary HIGH signal
is applied to the S input while the R
remains LOW.
To RESET the latch (Q = 0), a
momentary HIGH signal is
applied to the R input while the S
remains LOW.
0 R
10
01
0 S
0 R
01
01
0 S
Latch
initially
RESET
Q
Latch
initially
SET
Q
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Summary
Funcionamiento S-R
The active-LOW S-R latch is in a stable (latched) condition
when both inputs are HIGH.
Assume the latch is initially RESET
(Q = 0) and the inputs are at their
inactive level (1). To SET the latch
(Q = 1), a momentary LOW signal
is applied to the S input while the R
remains HIGH.
1 S
1 S
01
01
1 R
01
Latch
initially
RESET
Q
Latch
initially
01 SET
1R
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Smbolos lgicos
Funcionamiento de un S-R
Tabla de verdad
Latch D
Memoriza el bit en la entrada D: Q ser igual a D cuando
la entrada EN est activa.
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Funcionamiento en el tiempo
Summary
Flip-flops
A flip-flop differs from a latch in the manner it changes
states. A flip-flop is a clocked (sincronizado) device,
in which only the clock edge determines when a new
bit is entered.
The active edge can be positive or negative.
D
Dynamic
input
indicator
C
Q
Q
(b) Negative edge-triggered
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Summary
Flip-flops
The J-K flip-flop is more versatile than the D flip flop. In
addition to the clock input, it has two inputs, labeled J and
K. When both J and K = 1, the output changes states
(toggles) on the active clock edge (in this case, the rising
edge).
Inputs
0
0
1
1
Outputs
CLK
Comments
0
1
0
Q0
0
1
Q0
1
0
Q0
Q0
No change
RESET
SET
Toggle
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Funcionamiento
J
Q
CLK
Notice that the outputs change on the leading edge of the clock.
Set
Toggle
Set
Latch
CLK
J
K
Q
Floyd, Digital Fundamentals, 10th ed
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Summary
Entradas asncronas
Synchronous inputs are transferred in the triggering edge
of the clock (for example the D or J-K inputs). Most flipflops have other inputs that are asynchronous, meaning
they affect the output independent of the clock.
PRE
J
CLK
CLR
Floyd, Digital Fundamentals, 10th ed
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
PRE
Funcionamiento
J
CLK
CLR
Set
Toggle
Set
Reset
Toggle
Latch
CLK
J
K
PRE
Set
Reset
CLR
Q
Floyd, Digital Fundamentals, 10th ed
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Summary
Flip-flop Characteristics
The propagation delay time is the time required for an
input to cause a change in the output. It is measured from the
50% levels.
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Figure 8--36 Propagation delays, preset input to output and clear input to output.
Summary
Flip-flop Characteristics
Set-up time and hold time are times required before and
after the clock transition that data must be present to be
reliably clocked into the flip-flop.
Setup time is the minimum
time for the data to be present
before the clock.
D
CLK
Set-up time, ts
D
CLK
Hold time, tH
Floyd, Digital Fundamentals, 10th ed
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Set-up time
Figure 8--37 Set-up time (ts). The logic level must be present on the D input for a time
equal to or greater than ts before the triggering edge of the clock pulse for reliable data entry.
Hold time
Figure 8--38 Hold time (th). The logic level must remain on the D input for a time equal to
or greater than th after the triggering edge of the clock pulse for reliable data entry.
Summary
Output
lines
Q0
Flip-flop Applications
D
Q1
D
C
Q2
D
C
Parallel data
input lines
Q3
Clock
Clear
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Summary
Flip-flop Applications
For frequency division, it is simple to use a flip-flop in
the toggle mode or to chain a series of toggle flip flops to
continue to divide by two.
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.
2009 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved
Figure 8--40 The J-K flip-flop as a divide-by-2 device. Q is one-half the frequency of
CLK.
Figure 8--41 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.
Figure 8--44 Flip-flops used to generate a binary count sequence. Two repetitions (00, 01,
10, 11) are shown.
2009 Pearson Education
2009
Pearson
Education
2009
Pearson
Education
CLK
CLK
2009
Pearson
Education
2009
Pearson
Education
a. 1
b. 2
c. 3
CLK
d. 4
CLR
2009
Pearson
Education
2009
Pearson
Education
CLK
J
K
2009
Pearson
Education
2009
Pearson
Education
CLK
c. set-up time
d. hold time
2009
Pearson
Education
2009
Pearson
Education
D
CLK
2009
Pearson
Education
2009
Pearson
Education
HIGH
HIGH
c. frequency multiplier
fin
QB
CLK
fout
CLK
d. frequency divider
K
2009
Pearson
Education
2009
Pearson
Education
Output
lines
Q0
a. astable multivibrator
Q1
c. frequency multiplier
Q2
d. frequency divider
Parallel data
input lines
Q3
Clock
Clear
2009
Pearson
Education
2009
Pearson
Education
2009
Pearson
Education
2009
Pearson
Education
Answers:
1. b
6. d
2. d
7. d
3. b
8. b
4. c
9. d
5. b
10. a