Академический Документы
Профессиональный Документы
Культура Документы
Overview
Ripple Counter
Synchronous Binary Counters
Design with D Flip-Flops
Design with J-K Flip-Flops
4-Jun-10
Counters
A counter is a register that goes through a
predetermined sequence of states upon the
application of clock pulses.
Counters are categorized as:
Ripple Counters:
The FF output transition serves as a source for
triggering other FFs. No common clock.
Synchronous Counter:
All FFs receive the common clock pulse, and the
change of state is determined from the present state.
4-Jun-10
Less Significant
Bit output is Clock
for Next Significant Bit!
(Clock is active low)
Recall...
4-Jun-10
Example (cont.)
The output of each FF is connected to the C
input of the next FF in sequence.
The FF holding the least significant bit
receives the incoming clock pulses.
The J and K inputs of all FFs are connected to
a permanent logic 1.
The bubble next to the C label indicates that
the FFs respond to the negative-going
transition of the input.
4-Jun-10
Example (cont.)
Operation:
The least significant bit (Q0) is
complemented with each
negative-edge clock pulse input.
Every time that Q0 goes from 1 to
0, Q1 is complemented.
Every time that Q1 goes from 1 to
0, Q2 is complemented.
Every time that Q2 goes from 1 to
0, Q3 is complemented, and so on.
4-Jun-10
A 4-bit Downward
Counting Ripple Counter
Using D Flip-Flops
4-Jun-10
4-Jun-10
10
4-Jun-10
11
4-Jun-10
12
4-Jun-10
13
J
C
Q0
J
C
JQ0 = 1
KQ0 = 1
Q1
JQ1 = Q0
KQ1 = Q0
Q2
JQ2 = Q0 Q1
KQ2 = Q0 Q1
Q3
JQ3 = Q0 Q1 Q2
KQ3 = Q0 Q1 Q2
J
C
K
J
C
K
4-Jun-10
CLK
14
15
DQ0 = Q0 EN
DQ1 = Q1 ( Q0 EN)
DQ2 = Q2 ( Q0 Q1 EN )
DQ3 = Q3 ( Q0 Q1 Q2 EN )
C0 = Q0 Q1 Q2 Q3 EN
JK-FF equations
4-Jun-10
16
4-Jun-10
17
clock
UD
n-bit
Up-Down
Counter
Q0
Q1
Qn-1
UD = 0: count up
UD = 1: count down
4-Jun-10
18
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
Q0
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
UD Q2 Q1
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
Up-Counter
4-Jun-10
0
0
1
1
0
0
1
1
Q0
0
1
0
1
0
1
0
1
1
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
Down-Counter
Chapter 5-ii: Registers (5.4-5.7)
19
00
01
11
10
00
01
11
10
20
4-Jun-10
Load
Count
Operation
Nothing
Count
Load
21
4-Jun-10
22
BCD counter
The binary counter
with parallel load can
be converted into a
synchronous BCD
counter by
connecting an
external AND gate to
it.
4-Jun-10
23
4-Jun-10
24
4-Jun-10
25