






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







1 2
§ Counters are circuits that cycle through a specified number of states.
§ Also known as ripple counter. Ripple counters are the simplest type of binary counters because they require the fewest components to produce a given counting operation.
§ Each FF output drives the CLK input of the next FF.
§ The flip-flops do not change states at exactly the same time as they do not have a common clock pulse.
§ There is delay between the responses of successive FFs.
§ It is also often referred to as a ripple counter as the input clock pulse āripplesā through the counter.
Asynchronous Binary Counter
§ CLK is only connected to 1st^ FF0, LSB FF § The 2nd^ FF clock is driven by Q 0 of 1st^ FF § Both FF inputs are always HIGH § Q 0 changes state at the positive-edge clock § Q 1 change at the positive-edge of the Q (^0) § The two FFs do not triggered at the same time because clock and Q 0 transitions do not occur at the same time
A 2-bit Asynchronous Binary Counter
§ Four clock pulses are applied, assume initially all LOW
§ Q 0 (LSB) is always toggle at positive-edge clock
§ Q 1 (MSB) is toggle at positive-edge of Q (^0)
§ At 4th clock pulse, the counter is recycle to its original state (both FF are LOW)
A 2-bit Asynchronous Counter
5
Recycles back to 0 (^) § The counter is in up sequence (Q 1 is MSB, Q 0 is LSB)
§ Count from 0 to 3 in binary sequence § The term ārecycleā refers to the transition from final state to original state § Therefore, 2-bit asynchronous counter has four state and consists of two FF
A 2-bit Asynchronous Binary Counter
6
A 3-bit asynchronous binary counter is shown in the figure. The basic operation is the same as that of the 2- bit counter except that the 3-bit counter has eight states, due to its three flip-flops.
Three bit Asynchronous Counter Three bit Asynchronous Counter
CLK Q 0
Q 1
Q 2
1 2 3 4 5 6 7 8
0 1 0 1 0 1 0 1 0
0 0 1 1 0 0 1 1 0
0 0 0 0 1 1 1 1 0
counter.
Modulus
§ The modulus (MOD number) of a counter is the number of unique states through which the counter will sequence.
§ The maximum modulus of a counter is 2 n^ , where n is the number of flip-flops.
§ Counters can be designed to have a number of states less than the maximum of 2n
§ This type of sequence is called a truncated sequence.
§ To obtain a truncated sequence, it is necessary to force the counter to recycle before going through all of its possible states.
13
Counters with Truncated Sequences
§ One common modulus for counters with truncated sequences is ten (called MOD10). § Counters with ten states in their sequence are called decade counters. § A decade counter with a count sequence of zero (0000) through nine (1001) is a BCD decade counter because its ten-state sequence produces the BCD code. § This type of counter is useful in display applications in which BCD is required for conversion to a decimal readout. § The BCD decade counter must recycle back to the 0000 state after the 1001 state
14
Asynchronous Decade Counter
This counter uses partial decoding (two unique states, Q 1 = 1 and Q 3 = 1 are sufficient to decode the count of ten) to recycle the count sequence to zero after the 1001 state. Other truncated sequences can be obtained using a similar technique.
Waveforms are on the following slideā¦
CLK K (^0)
J 0 Q^0 C C C
J 1 J 2
K 1 K (^2)
Q 1 Q (^2)
HIGH
C
J 3
K (^3)
Q 3
CLR
Asynchronous Decade Counter
1 2 3 4 5 6 7 8 9 10
Glitch
Glitch
CLK Q (^0) Q (^1)
Q (^2) Q (^3)
CLR
Glitch
Glitch
Example
Solution
17 18
BCD Decoder/Driver
A special-purpose decoder is the 7447. This is a BCD-to- seven segment display with active LOW outputs. The a-g outputs are designed for much higher current than most devices (hence the word driver in the name).
1 2 4 8
(16) (4) (13) (12) (11) (10) (9) (15) (14)
(1) (2) (6)
(7)
(3) (5) (8)
BCD inputs Outputsto seven segment device
GND
VCC
BCD/7-seg BI/RBO BI/RBO
LT RBI
LT RBI 74LS
BCD Decoder/Driver
Here the 7447 is an connected to an LED seven segment display. Notice the current-limiting resistors, required to prevent overdriving the LED display.
CC
GND
+5.0 V
+5.0 V
= 330 W
74LS47 MAN LT BI/RBO RBI
1.0 kW
1
1 2
2
3 3, 9, 14 4 5 6 7 7
8
8
9
10 10
11
11
12 13
13
14
15
16 BCD/7-seg
BCDinput
Asynchronous Down Counters
CLK 1 2 3 4
Q 0
Q (^1)
1 1
1 0
0
0 1
0 0
0
5 6 7 8
1 0 1 0
1 1 0 0
Q (^2 0 1 1 11 0 0 )
29
Up Counter and Down Counter (Negative Edge)
30
Up Counter and Down Counter (Positive Edge) Synchronous Counters
A 2-Bit Synchronous Binary Counter
FF1 will toggle when both the J and K inputs are a 1 (Q 0 ). The transition at clock pulse 2 works because of propagation delay effects. Q 0 is still high on the input of Q 1 at the instant clock 2 hits so FF1 changes state
33
A 2-Bit Synchronous Binary Counter
Outputs J-K Inputs Q 1 Q 0 J 1 ļ½ Q 0 K 1 ļ½ Q 0 J 0 ļ½ 1 K 0 ļ½ 1 0 0
Tabular Analysis
0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1
0 1 1 0 1 1
34
A 3-Bit Synchronous Binary Counter
This 3-bit binary synchronous counter has the same count sequence as the 3-bit asynchronous counter shown previously.
The next slide shows how to analyze this counter by writing the logic equations for each input. Notice the inputs to each flip-flopā¦
Analysis of Synchronous Counters
A tabular technique for analysis is illustrated for the counter on the previous slide. Start by setting up the outputs as shown, then write the logic equation for each input. This has been done for the counter.
Q 2 Q 1 Q 0 J 2 =Q 0 Q 1 K 2 =Q 0 Q 1 J 1 =Q 0 K 1 =Q 0 J 0 = 1 K 0 = 1
Outputs Logic for inputs
0 0 0 0 0 0 0 1 1
0 0 1 0 0 1 1 1 1
Continue like this, to complete the table. The next slide shows the completed tableā¦
(^0 1 0) 4.Q 2 will latch again but bothQ 1 andQ 0 will toggle.
CLK
J (^0)
K (^0)
C
HIGH FF0 FF1^ FF2 FF
Q 3
Q 0
Q 0
J 1
K 1
C
Q 1
Q 1
J (^2)
K (^2)
C
Q (^2)
Q (^2)
J 3
K 3
C
Q 3
Q 3
Q 1 toggle on the next clock pulse only if Q 0 = 1 and Q 3 = 0.
Q 0
Q 3
BCD Synchronous Decade Counter
41
Waveforms for the decade counter:
1 2 3 4 5 6 7 8 0 1 0 1 0 1 0 1 0 0 0 1 1 0 0 1 1 0 0 0 0 0 1 1 1 1 0
9 10
(^0 0000 001 )
1 0 0
0
0 0 0
0
These same waveforms can be obtained with an asynchronous counter in IC form ā the 74LS90. It is available in a dual version ā the 74LS390, which can be cascaded. It is slower than synchronous counters (max count frequency is 35 MHz), but is simpler.
CLK Q (^0) Q (^1)
Q (^2)
Q (^3)
BCD Synchronous Decade Counter
42
Up/Down Synchronous Counters
Up/Down Synchronous Counters
An up/down counter is capable of progressing in either direction depending on a control input.
CLK
Q 0 Q (^1)
Q (^2)
K 0
J (^0) C C C
J 1 J (^2)
K 1 K 2
HIGH
UP/DOWN
UP
DOWN
FF0 FF1 FF
Q 0.^ UP
Q 0. DOWN
Q 0 Q 1 Q (^2)
Example waveforms from Multisim are on the next slideā¦