Skip to content

Electronics · Ch 10 — Digital Electronics

Counters

10.7

Counters

A counter is a logic circuit that counts pulses. It is a set of flip-flops whose combined state advances through a fixed sequence as pulses arrive at its input. Counters divide broadly into two families:

  • Asynchronous (serial / ripple) counters, in which the flip-flops are not clocked together — each stage is triggered by the previous one, so the individual propagation delays add up. They use simple circuitry but are slower and more prone to decoding problems, where states may be momentarily skipped.
  • Synchronous (parallel) counters, in which every flip-flop is clocked at the same instant, so the delays do not accumulate. They need more complex circuitry but are faster and count more accurately.

The full comparison is given in the table below.

Four-bit synchronous up-counter

A four-bit synchronous up-counter built from JK flip-flops counts upward in binary 0000, 0001, 0010, …, 1111, then rolls over to 0000, 0001, … (the complete sequence for pulses 0–15 is listed in the Counting Sequence table). All four flip-flops share the same clock line (Figure 10.7.1). The connections follow directly from how often each bit changes:

  • Q1Q_1 changes on every clock pulse, so FF1 is kept in toggle mode with J1=K1=1J_1 = K_1 = 1.
  • Q2Q_2 must change whenever Q1=1Q_1 = 1, so Q1Q_1 is connected to J2J_2 and K2K_2.
  • Q3Q_3 must change whenever Q1Q2=1Q_1 Q_2 = 1, so the AND of Q1Q_1 and Q2Q_2 drives J3J_3 and K3K_3. …
Definition 1Counter

A counter is a logic circuit used for counting pulses — a set of flip-flops whose state changes in response to the pulses applied to their inputs. Counters are broadly classified as asynchronous …

Table 2Comparison of asynchronous and synchronous counters.
Asynchronous countersSynchronous counters
All the flip-flops are not triggered simultaneously.All the flip-flops are clocked simultaneously.
They are serial or ripple counters.They are parallel counters.
The propagation delays of individual flip-flops accumulate.The propagation delays of individual flip-flops do not add together.
Lesser in speed to count.Has a high speed.
Simple circuitry.More complex circuitry.
Table 3Counting sequence of the four-bit synchronous up-counter, binary 0000 to 1111.
After clock pulseQ4Q_4Q3Q_3Q2Q_2Q1Q_1
00000
10001
20010
30011
40100
50101
60110
70111
81000
91001
101010
111011
121100
Figure 4Logic diagram of a four-bit synchronous up-counter built from JK flip-flops with a common clock.
Fig. 4 — Logic diagram of a four-bit synchronous up-counter built from JK flip-flops with a common clock.

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

Figure 10.7.1 shows a four-bit synchronous up-counter: FF1 is wired in toggle mode (J1=K1=1J_1=K_1=1), and AND gates feed Q1Q_1 to FF2, Q1Q2Q_1 Q_2 to FF3 and Q1Q2Q3Q_1 Q_2 Q_3 to FF4, with the same clock applied …

Figure 5Timing diagram of the four-bit synchronous up-counter, showing each output toggling at half the rate of the previous stage.
Fig. 5 — Timing diagram of the four-bit synchronous up-counter, showing each output toggling at half the rate of the previous stage.

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

This timing diagram (drawn above the logic diagram of Figure 10.7.1) plots CLK and Q1Q_1–Q4Q_4 over the count 0–15, with Q1Q_1 toggling every pulse, Q2Q_2 at half that rate, Q3Q_3 at a quarter and $Q_4 …