Digital Principles and Computer Organization: Unit II (d): Counters

Synchronous Counters

Counters - Digital Principles and Computer Organization

When counter is clocked such that each flip-flop in the counter is triggered at the same time, the counter is called as synchronous counter.

Synchronous Counters

AU: Dec.-06, May-08

• When counter is clocked such that each flip-flop in the counter is triggered at the same time, the counter is called as synchronous counter.

2-bit Synchronous Binary Up Counter

• Clock signal is connected in parallel to clock inputs of both the flip-flops.

• The Qoutput of first stage is used to drive the J and K inputs of the second stage.

• Initially, we assume that the QA= QB = 0.

• When positive edge of the first clock pulse is applied, flip-flop A will toggle

because JA = KA= 1,where as flip-flop B output will remain zero because

JB = KB = 0.

• After first clock pulse QA= 1 and QB= 0.

• At negative going edge of the second clock pulse both flip-flops will toggle because they both have a toggle condition on their J and K inputs (JA = KA= JB = KB= 1). Thus after second clock pulse, QA = 0 and QB= 1.

• At negative going edge of the third clock pulse flip-flop A toggles making QA= 1, but flip-flop B remains set i.e.QB = 1.

• Finally, at the leading edge of the fourth clock pulse both flip-flops toggle as their JK inputs are at logic 1. This results QA =QB = 0 and counter recycled back to its original state.

• The timing details of above operation is shown in Fig. 5.4.2.

3-bit Synchronous Binary Up Counter

• Fig. 5.4.3 (a) shows 3-bit synchronous binary counter and its timing diagram.

• The state sequence for this counter is shown in Table 5.4.1.

• Looking at Fig. 5.4.3 (b), we can see that Qchanges on each clock pulse as we progress from its original state to its final state and then back to its original state.

• Flip-flop A is held in the toggle mode by connecting J and K inputs to HIGH.

• Flip-flop B toggles, when Qis 1.

• When Qis 0, flip-flop B is in the no-change mode and remains in its present state.

• Looking at the Table 5.4.1 we can notice that flip-flop C has to change its state only when QB and    Qboth are at logic 1. This condition is detected by AND gate and applied to the J and K inputs of flip-flop C. Whenever both Qand Qare HIGH, the output of the AND gate makes the J and K inputs of flip-flop C HIGH and flip-flop C toggles on the following clock pulse. At all other times, the J and K inputs of flip-flop C are held LOW by the AND gate output and flip-flop does not change state.

4-bit Synchronous Binary Up Counter

• Fig. 5.4.4 (a) shows logic diagram and timing diagram for 4-bit synchronous binary counter.

• As counter is implemented with negative edge triggered flip-flops, the transitions occur at the negative edge of the clock pulse.

• In this circuit, first three flip-flops work same as 3-bit counter discussed previously.

• For the fourth stage, flip-flop has to change the state when QA= QB=QC = 1.This condition is decoded by 3-input AND gate G2. Therefore, when QA= Q= Q= 1, flip-flop D toggles and for all other times it is in no change condition.

Example 5.4.1 Determine fmax  for the 4-bit synchronous counter if tpd for each flip-flop is 50 ns and tpd for each AND gate is 20 ns. Compare this with fmax for a MOD-16 ripple counter.

Solution: For a synchronous counter the total delay that must be allowed between input clock pulses is equal to flip-flop tpd + AND gate tpd. Thus Tclock ≥ 50 + 20 = 70 ns and so the counter has

fmax = 1/70ns = 14.3 MHz 

We know that MOD-16 ripple counter used four flip-flops. With flip-flop tpd = 50 ns, the fmax for ripple counter can be given as,

fmax(ripple) as 1/4 × 50ns = 5 MHz 

Synchronous Down and Up/Down Counters

• A parallel/synchronous down counter can be constructed by using the inverted FF outputs to drive the following JK inputs.

• For example, the parallel up counter of Fig. 5.4.4 (a) can be converted to a down counter by connecting the A, QB, Qand QD outputs in place of QA, QB, Qand QD respectively.


•The counter will then proceed through the following sequence as input pulses are applied :

To form a parallel up/down counter the control input (UP/pppppppppppp ) is used to control whether the normal flip-flopoutputs or the inverted flip-flop outputs are fed to the J and K inputs of the following flip-flops.

•A logic 1 on the Up/ppppppppppppp enables AND gates 1 and 2 and disables AND gates 3 and 4. This allows the QAand QBoutputs through to the J and K inputs of the next flip-flops so that the counter will count up as pulses are applied.

•When Up /pppppppppppp line is logic 0, AND gates 1 and 2 are disables and AND gates 3 and 4 are enabled. This allows the ppppppppppppppp outputs through to the J and K inputs of the next flip-flops so that the counter will count down as pulses are applied.

pppppppppppppppppp

•Fig. 5.4.7 shows the timing diagram for 3-bit up-down counter.

pppppppppppppppppp

pppppppppppppppppp

Review Questions

1. Define synchronous counter.AU: Dec.-06, Marks 2

2. Explain the working of 3-bit synchronous binary up counter.

AU May-08, Marks 8

3. Explain the working of synchronous up/down counter.

Digital Principles and Computer Organization: Unit II (d): Counters : Tag: : Counters - Digital Principles and Computer Organization - Synchronous Counters