Counters
Counters
1
Classification
• Asynchronous (ripple) counter – changing state bits are used as clocks to subsequent
state flip-flops
• Synchronous counter – all state bits change under control of a single clock (All F/F
change state simultaneously)
• Up/down counter – counts both up and down, under command of a control input
• Modulus counter.
Classifications of Counters
Asynchronous Counters
Synchronous Counters
because they have a set of states and a set of transition rules for
moving between those states after each clocked event.
Asynchronous/Ripple Counter
Only the first FF receive clock pulse from the source ( clock genarator),
others FFs receive clock pulse from either Q or Q’ of prior FF
5
Asynchronous/Ripple Counter
Propagation delays in a 3-bit asynchronous (ripple-clocked) binary
counter.
6
Asynchronous/Ripple Counter
Three-bit asynchronous binary counter and its timing diagram for one
cycle.
Clk Q2 Q1 Q0
pulse
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
8 0 0 0
(REPEAT
)
RIPPLE COUNTER UP – PGT AND ALL NON FIRST CLK RECEIVE CLK PLUSE
FROM Q’
Asynchronous/Ripple Counter
Four-bit asynchronous binary counter and its timing diagram.
CLK Q3 Q2 Q1 Q0
PLUSE
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
16 0 0 0 0
REPEAT
• The Modulus of a counter is the number of unique states that the counter will sequence
through.
• Counter can also be designed to have a number of states in their sequence that is less
than the maximum of 2n.
• Counters with the states in their sequence are called decade counters.
• One way to make the counter recycle after the count of nine (1001) is to decode count
ten (1010) with a NAND gate and connect the output of the NAND gate to the clear
(CLR) inputs of the flip-flops. The inputs the NAND gate are from the Q output from
FF1 and FF3 ( from 1010 -- FF3FF2FF1FF0)
Asynchronous Decade Counter
An asynchronously clocked decade counter with asynchronous recycling.
CLK Q3 Q2 Q1 Q0
PLUSE
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 0 0 0 0
GLITCH
11 0 0 0 1
12 0 0 1 0
13 0 0 1 1
14 0 1 0 0
15 0 1 0 1
16 0 1 1 0
MOD 10 RIPPLE UP COUNTER – NGT AND ALL NON FIRST CLK RECEIVE CLK PLUSE FROM Q
MOD 10 AS RESET / CLITCH AT 1010.
•The inputs the NAND gate are from the Q output from FF1 and FF3 ( from 1010 -- FF3FF2FF1FF0)
Shift Register Counters
Initial status
after clear and
Preset
Q0 Q1 Q2 Q3
0 0 0 1
Ring Counter
• Frequency counters
• Digital clock
• Time measurement
• A to D converter