Electronics/Counters
From Wikibooks, the open-content textbooks collection
Contents |
[edit] Overview
A counter is a device that generates some patterned binary value depending on a clock or some other pulsed input. There are three simple types of counters ripple and synchronous.[[
[edit] Ring Counters
[edit] Ripple Counters
Ripple counters are the simplest type of counters. They are nothing more than toggle flip flops connected in a chain to divide each others output frequency by two. The result is a binary count. They are called ripple counters because the new count ripples through them. The major disadvantage of ripple counters is that because of new count "rippling" through the flip flops all the bits of the count arrive at different times.
[edit] Synchronous Counters
Synchronous counters are simple state machines made out of flip flops and logic gates. They have two parts, a register made out of flip flops and a decoder mad out of logic gates. A register is a simple group of flip flops that are all clocked at the same time. In this way they can hold the counters output value until the next clock cycle. The decoder, decodes the current count and generates the correct value for the next count to the flop flops. For example in a simple up counter the decoder would always output the current count plus one. The major advantage of Synchronous Counters is that all the bits of their output change at the same time.