Вы находитесь на странице: 1из 15

Registers & Counters

Two ways to achieve a BCD counter using a counter with parallel


load
 Unused states
 states that are not used in specifying the FSM
 may be treated as don’t-care conditions or
may be assigned specific next states
 Self-correcting counter
 Ensure that when a circuit enter one of its unused
states, it eventually goes into one of the valid
states after one or more clock pulses so it can
resume normal operation.
 Analyze the circuit to determine the next state
from an unused state after it is designed
Two unused states: 011 & 111
The simplified flip-flop input equations:
JA = B, KA = B
JB = C, KB = 1
JC = B, KC = 1
The simplified flip-flop
input
equations:
JA = B, KA = B
JB = C, KB = 1
JC = B, KC = 1
 Application of counters
 Counters may be used to generate timing signals to
control the sequence of operations in a digital system.

 Approaches for generation of 2n timing signals


1.a shift register w/ 2n flip-flops
2.an n-bit binary counter together w/ an n-to-2n-line
decoder
A 4-bit ring counter

A3 A2 A1 A0
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
1 0 0 0
 The circuit above is a divide by 4 counter.
Comparing the clock input to any one of the
outputs, shows a frequency ratio of 4:1.

 The disadvantage to this counter is that it must


be preloaded with the desired pattern (usually a
single 0 or 1) and it has even fewer states than a
Johnson counter.
 Switch-tail ring counter
 is a circular shift register w/ the complement
output of the last flip-flop connected to the
input of the first flip-flop

 a k-bit switch-tail ring counter will go


through a sequence of 2k distinguishable
states.
 This "reversed" feedback connection has a
profound effect upon the behavior of the circuit.

 Re-circulating a single 1 around a ring counter


divides the input clock by a factor equal to the
number of stages.

 Whereas, a Johnson counter divides by a factor


equal to twice the number of stages. For
example, a 4-stage ring counter divides by 4. A
4-stage Johnson counter divides by 8.

Вам также может понравиться