Asynchronous (ripple) and synchronous counters, up/down and mod-N counters, ring and Johnson counters, counter design with excitation tables, maximum clock frequency and frequency division.
In a ripple counter only the first flip-flop gets the external clock. Each later flip-flop is clocked by the output of the one before it. Every flip-flop is wired to toggle (, or ).
With flip-flops the counter has states, so it is a mod- counter. Flip-flop toggles at half the rate of flip-flop , so the output of the last stage has frequency .
Up or down? It depends on the edge and on which output drives the next clock:
Flip-flops trigger on
Next clock taken from Q
Next clock taken from
Falling edge
up counter
down counter
Rising edge
down counter
up counter
Delay. The clock ripples through the chain, so after an edge the last output settles only after . All outputs must settle before the next edge, which gives
(if a decoding gate reads the outputs, add its delay too). While the outputs ripple, the counter passes through short wrong states, for example 011 → 010 → 000 → 100 on the way from 3 to 4. A decoder on the outputs can produce glitches during these.
3-bit ripple up counter with falling-edge T flip-flops: CLK drives FF0, and each Q drives the next clock input.
2. Reading the waveforms and mod-N ripple counters
In a falling-edge ripple up counter, toggles at every clock falling edge, toggles whenever falls, and toggles whenever falls. Reading after each edge gives 0, 1, 2, …, 7, 0. After clock pulses an -bit up counter from 0 shows .
Mod-N by reset. To count 0 to , use flip-flops and clear them all when the count reaches . Feed the outputs that are 1 in the binary of into a NAND gate whose output drives the active-low CLR inputs.
Mod-10 (decade): , NAND of and .
Mod-6: , NAND of and .
Mod-12: , NAND of and .
Only the 1 bits are needed, because is the first count at which all of them are 1. State lasts only for the clear delay, so it is a transient state, not one of the counted states.
Waveforms of the 3-bit ripple up counter. Dashed lines mark clock falling edges; the count Q2 Q1 Q0 after each edge is shown below (ripple delays ignored).
3. Synchronous counters
In a synchronous counter every flip-flop receives the same clock, so all outputs change together, one flip-flop delay after the edge. There are no ripple wrong states.
Binary up counter with T flip-flops: a bit toggles when all lower bits are 1.
For a down counter use the complements: . An up/down counter selects between the two with a control input .
Maximum clock frequency. In one period the signal must leave a flip-flop, pass the gating logic and meet the setup time of the next flip-flop:
With parallel AND gates (one gate per stage) is one gate delay, so does not depend on . That is the main advantage over the ripple counter.
Ripple
Synchronous
Clock
first flip-flop only
all flip-flops
Settling delay
(plus logic)
Decoding glitches
yes
no
Hardware
least
extra gates
4. Designing a synchronous counter for any sequence
A synchronous counter can step through any chosen sequence. The method:
Number of flip-flops with number of states.
Write the state table: present state → next state.
For each flip-flop, read the needed input from its excitation table (D: ; T: ; JK: is , is , is , is ).
Put unused states as don't-cares and minimise each input with a K-map.
Check the unused states. Find where each one goes with the final equations. If every unused state reaches the main cycle in a few clocks, the counter is self-starting. If an unused state loops among unused states, the counter can get stuck there (lock-out).
Analysis is the reverse: given the flip-flop input equations, start from the initial state, compute all inputs from the present outputs, apply one edge to all flip-flops at once, and repeat until a state repeats. The number of distinct states in the loop is the modulus.
5. Ring and Johnson counters
Both are shift registers with feedback from the last stage to the first.
Ring counter: . It is loaded with a single 1 (say 1000) and that 1 circulates: 1000, 0100, 0010, 0001, 1000. So flip-flops give only states (mod-). Each state has a single 1, so no decoding gate is needed.
Johnson (twisted ring, switch-tail) counter: . From all zeros it fills with 1s and then with 0s, giving states (mod-). Any state can be decoded with one 2-input AND gate.
Counter
States with flip-flops
Unused states
Output frequency of each flip-flop
Binary
0
Ring
Johnson
(square wave)
Neither ring nor Johnson counters are self-starting in general; extra logic is added to correct an unused state.
Cascading. A mod- counter whose output clocks a mod- counter forms a mod- counter, and the final output frequency is . Minimum flip-flops for mod- in binary: .
4-bit Johnson counter: four D flip-flops on a common clock, with the complement of the last output fed back to the first input. It has 8 states.
Formulas to remember
States of an n-bit binary counterFinal output frequency
Minimum flip-flops for mod-N
Ripple counter maximum clockAdd decoding gate delay if the outputs are decoded
Synchronous counter maximum clock
Ring and Johnson counters
Synchronous binary up counter (T flip-flops)
Cascaded counters
Common mistakes
Using the wrong up/down rule for ripple counters; with falling-edge flip-flops Q to the next clock gives up counting, but with rising-edge flip-flops it gives down counting.
Counting the transient reset state as a valid state; in a mod-N ripple counter the state N lasts only a few nanoseconds.
Taking the ripple counter delay as one flip-flop delay; the last output settles only after n times the flip-flop delay.
Confusing ring and Johnson counters; ring has n states, Johnson has 2n states for n flip-flops.
Updating flip-flops one at a time in a synchronous circuit; all inputs are computed from the present state before the edge.
Forgetting to check unused states; a designed counter may lock out if an unused state never returns to the main cycle.
Worked examples
Try each step yourself, then reveal the working.
Example 1: Speed of a ripple counter
numerical
A 4-bit ripple counter uses flip-flops with propagation delay each. Find the maximum clock frequency, and the frequency at when it is clocked at .
Step 1: How long does the last output take to settle after a clock edge?
Try it on paper first.
Example 2: A 2-bit Gray-code counter with D flip-flops
numerical
Design a synchronous counter with D flip-flops that goes : 00 → 01 → 11 → 10 → 00.
Step 1: Write the state table.
Try it on paper first.
Example 3: Analysing a JK counter
numerical
Two JK flip-flops A and B share a clock. , , , . Starting from , find the sequence and the modulus. Is it self-starting?
Step 1: Apply the first edge from 00.
Try it on paper first.
Example 4: Decade ripple counter
conceptual
A 4-bit falling-edge ripple up counter has active-low CLR inputs. Which outputs should feed the NAND gate that drives CLR to make it a decade counter, and what does a fast logic analyser see at the tenth clock edge?
Step 1: Write 10 in binary.
Try it on paper first.
Previous year questions
1 official GATE EC question on this topic, newest first.
9 questions: up to 1 official PYQs and original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.
Mark as mastered
Loading your progress…
My revision notes
Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-28. Spotted a mistake? Use Report an issue on any question, or contact us.