Home  www.playhookey.com  Sun, 06172018 

Direct Current

Alternating Current

Semiconductors

Digital

Logic Families

Digital Experiments

Computers

 Analog  Analog Experiments  Oscillators  Optics  HTML Test  

 Combinational Logic  Sequential Logic  Alternate FlipFlop Circuits  Counters  Registers  The 555 Timer   
 Basic 4Bit Counter  Synchronous Binary Counter  Synchronous Decimal Counter  Frequency Dividers  Counting in Reverse  The Johnson Counter  
Decimal and Shorter Counts 

States  Count 
To create a decimal counter, we need to find a way to cut the counting sequence short. The Truth Table to the left shows the actual counting sequence we need. Note that the counting sequence is exactly the same as for the binary counter we saw on the previous page, up through a count of 9. At that point, where the binary counter would continue on to a count of 10, the decimal counter must reset itself to a count of 0. In this sequence, flipflops A and C are no problem. Their next states will both be logic 0 whether the next count is 10 or 0. However, flipflop B would normally switch from logic 0 to logic 1, and must be prevented from doing so. At the same time, flipflop D, which is at logic 1, must be made to switch back to logic 0. Hmmmm. Since flipflop D is a logic 1 for only two counts, and only flipflop A will change state going from count 8 to count 9 in any case, perhaps we can use the D and D' outputs, with gates, to force the desired change in sequence. This is in fact the case, as shown in the demonstration below. Note that we have applied different signals to the J and K inputs of flipflop D. This is perfectly acceptable, and allows us to reset this flipflop under the control of a simple twoinput AND gate. 


D  C  B  A  
0  0  0  0  0  
0  0  0  1  1  
0  0  1  0  2  
0  0  1  1  3  
0  1  0  0  4  
0  1  0  1  5  
0  1  1  0  6  
0  1  1  1  7  
1  0  0  0  8  
1  0  0  1  9 


Now that we've seen counting sequences other than binary, new questions arise: Can we generate other counting sequences for special purposes? And are there other uses for counting circuits than numeric counts? We'll explore these questions on the next page.


 
All pages on www.playhookey.com copyright © 1996, 20002015 by
Ken Bigelow Please address queries and suggestions to: webmaster@playhookey.com 