Binary, BCD, and Johnson Counters Revision Notes | A Level AQA Physics
A binary counter with n flip-flops has 2ⁿ states, a Johnson counter has 2n, and a BCD counter cycles through ten states. Free notes and 15 questions answered.
Binary, BCD, and Johnson Counters is part of Digital signal processing (A-level only) in A Level AQA Physics.
9 min
Reading time
34
Lessons in this topic
A Level AQA
Pathway
Reviewed by Revise Right
Content review
What this lesson covers
A binary counter with n flip-flops has 2ⁿ states, a Johnson counter has 2n, and a BCD counter cycles through ten states. Free notes and 15 questions answered.
Describe the operation of a binary counter and explain how it counts in binary using flip-flops
Explain how a BCD counter differs from a binary counter and justify why BCD counting is useful
Describe the operation of a Johnson counter and compare its sequence length with a binary counter of the same stage count
Analyse the state sequences of binary, BCD, and Johnson counters from timing diagrams or state tables
Key ideas to keep in view
Use this lesson to stay inside Digital signal processing (A-level only) while connecting the detail back to the wider Electronics (A-level only) topic.
Binary counter: A sequential logic circuit that cycles through binary states in ascending order, incrementing by one on each clock pulse. Used when counting events or generating binary sequences.
BCD counter: A counter that cycles through the ten states 0000 to 1001 (decimal 0 to 9) before resetting to 0000. Used when the output must represent decimal digits directly.
Johnson counter: A shift-register-based counter where the inverted output of the last stage feeds back to the input of the first stage, producing a sequence of 2n states for n flip-flops. Used when a longer, non-binary sequence is needed from fewer stages.
Revision notes
Read the core explanations from Binary, BCD, and Johnson Counters before testing yourself from memory.
1. Why Counters Matter in Digital Electronics
Every digital system that tracks time, counts events, or steps through a sequence relies on a counter circuit. From the clock in a microprocessor to the display on a digital stopwatch, counters are the heartbeat of digital electronics.
At A Level, you need to understand three specific counter types: the binary counter, the BCD counter, and the Johnson counter. Each one counts differently, and choosing the right type for a given task is a genuine engineering decision — and a favourite exam topic.
2. The Binary Counter
Picture a row of light switches, each either on (1) or off (0). A binary counter works exactly like that row of switches, but they flip in a precise pattern on every clock pulse. Each switch is one flip-flop — a bistable circuit that stores a single binary digit and toggles its output when triggered.
For a 4-bit binary counter, four flip-flops are connected in series. The least significant bit (LSB) toggles on every clock pulse. The next bit toggles every two pulses, the next every four, and the most significant bit (MSB) toggles every eight pulses. This halving of toggle frequency at each stage is the key mechanism.
A 4-bit binary counter cycles through $2^4 = 16$ states: from 0000 (decimal 0) up to 1111 (decimal 15), then back to 0000. The number of states is always $2^n$ for $n$ flip-flops.
Clock pulse
Bit 3 (MSB)
Bit 2
Bit 1
Bit 0 (LSB)
Decimal value
0
0
0
0
0
0
1
0
0
0
1
1
2
0
0
1
0
2
3
0
0
1
1
3
4
0
1
0
0
4
5
0
1
0
1
5
6
0
1
1
0
6
7
0
1
1
1
7
8
1
0
0
0
8
9
1
0
0
1
9
10
1
0
1
0
10
11
1
0
1
1
11
12
1
1
0
0
12
13
1
1
0
1
13
14
1
1
1
0
14
15
1
1
1
1
15
16 (reset)
0
0
0
0
0
Notice the pattern: Bit 0 alternates every pulse, Bit 1 alternates every 2 pulses, Bit 2 every 4 pulses, and Bit 3 every 8 pulses. Each stage divides the clock frequency by 2, which is why binary counters are also called divide-by-2 chains.
The binary counter is the foundation for the other two counter types you need to know. Keep that 16-state sequence in mind — the BCD and Johnson counters are both modifications of this basic idea.
3. The BCD Counter
Here is the problem with a pure binary counter in a real-world display: humans read in decimal, not binary. If you want to drive a seven-segment display showing the digits 0 through 9, you need a counter that resets after state 9 (1001), not after state 15 (1111). That is precisely what a BCD counter does.
A BCD counter is built from the same four flip-flops as a binary counter, but with additional reset logic. When the counter reaches 1010 (decimal 10), a feedback circuit forces all flip-flops back to 0000 immediately. The counter never actually displays state 10 — the reset happens so fast it is invisible to the output.
The reset logic typically uses a NAND gate connected to the outputs that go high at state 1010. Specifically, Bit 3 and Bit 1 are both high at 1010 (and at no earlier state), so the NAND gate output drives the asynchronous clear inputs of all flip-flops back to zero.
Clock pulse
Bit 3 (MSB)
Bit 2
Bit 1
Bit 0 (LSB)
Decimal value
Status
0
0
0
0
0
0
Valid
1
0
0
0
1
1
Valid
2
0
0
1
0
2
Valid
3
0
0
1
1
3
Valid
4
0
1
0
0
4
Valid
5
0
1
0
1
5
Valid
6
0
1
1
0
6
Valid
7
0
1
1
1
7
Valid
8
1
0
0
0
8
Valid
9
1
0
0
1
9
Valid
10 (reset)
0
0
0
0
0
Reset to 0
The BCD counter is the building block of decimal counting systems. Chain two BCD counters together — one for units, one for tens — and you can count from 00 to 99. This is how digital clocks and frequency counters display decimal readings.
Now that you can contrast binary and BCD counters, there is a third type that works on a completely different principle — one that does not count in binary at all.
4. The Johnson Counter
Think of a shift register — a chain of flip-flops where each one passes its output to the next on every clock pulse. A Johnson counter is a shift register with a twist: the inverted output ($\overline{Q}$) of the last flip-flop feeds back to the data input (D) of the first flip-flop. This single modification creates a self-recycling sequence with a very useful property.
For a 4-stage Johnson counter, the sequence length is $2 \times 4 = 8$ states. Compare that with a 4-bit binary counter, which gives $2^4 = 16$ states, or a 4-bit ring counter (non-inverted feedback), which gives only 4 states. The Johnson counter sits between these extremes and offers a clean, glitch-free sequence.
Starting from the all-zeros state 0000, a 4-stage Johnson counter steps through the following sequence. At each clock pulse, every bit shifts one position to the right, and the new input bit is the complement of the previous last-stage output.
Clock pulse
Q3 (MSB)
Q2
Q1
Q0 (LSB)
New input bit (= NOT Q0 previous)
0 (start)
0
0
0
0
—
1
1
0
0
0
1 (NOT 0)
2
1
1
0
0
1 (NOT 0)
3
1
1
1
0
1 (NOT 0)
4
1
1
1
1
1 (NOT 0)
5
0
1
1
1
0 (NOT 1)
6
0
0
1
1
0 (NOT 1)
7
0
0
0
1
0 (NOT 1)
8 (repeat)
0
0
0
0
0 (NOT 1)
Notice the elegant pattern: the sequence fills with 1s from the left, then empties with 0s from the left. Each state differs from the previous state by exactly one bit changing, which means there are no glitches or transient invalid states during transitions — a significant practical advantage in hardware design.
The Johnson counter is not counting in binary. Its output states are not binary representations of 0, 1, 2, 3... — they are a unique cyclic code. This means you cannot read the output directly as a decimal or binary number without a decoder, but the clean single-bit transitions make it ideal for generating timing signals and control sequences.
5. Comparing the Three Counter Types
You have now seen all three counter types in action. Before the exam, you need to be able to compare them fluently — not just recall facts, but analyse trade-offs and justify choices for a given application.
Feature
Binary counter
BCD counter
Johnson counter
Number of stages (n)
n flip-flops
4 flip-flops (fixed)
n flip-flops
Number of states
$2^n$
10 (fixed)
$2n$
Counting sequence
0 to $2^n - 1$ in binary
0 to 9 in binary
Cyclic shift code
Reset mechanism
Natural overflow
External NAND reset at 1010
Natural overflow
Output readable as decimal?
No (needs decoder)
Yes (direct BCD-to-decimal)
No (needs decoder)
Glitch-free transitions?
No (multiple bits can change simultaneously)
No
Yes (only one bit changes per clock)
Typical use
General counting, frequency division
Decimal displays, clocks
Timing/control sequences, stepper motor drives
The glitch issue with binary counters is worth understanding at A Level depth. When a binary counter transitions from 0111 to 1000, all four bits change simultaneously. In practice, flip-flops do not switch at exactly the same instant, so the output briefly passes through invalid intermediate states. The Johnson counter avoids this entirely because only one bit changes per clock pulse.
6. Worked Analysis: Tracing a Johnson Counter Sequence
Exam questions often give you a partial state table or timing diagram and ask you to complete it, or to identify which type of counter is shown. Here is how to work through that systematically.
Worked example: Completing a Johnson Counter State Table
A 3-stage Johnson counter starts in state Q2 Q1 Q0 = 000. Complete the full state sequence and state how many unique states the counter passes through before repeating.
New input to Q2 = $\overline{Q0}$ (complement of last stage output) — In a Johnson counter, the inverted output of the final flip-flop (Q0 here) feeds back to the input of the first flip-flop (Q2). This is the defining feature — confirm it before proceeding.
Current state: Q2=0, Q1=0, Q0=0. New input = NOT Q0 = NOT 0 = 1. After shift: Q2=1, Q1=0, Q0=0 → State: 100 — Each flip-flop takes the value of the one to its left. Q2 receives the new input bit (1), Q1 takes the old Q2 (0), Q0 takes the old Q1 (0).
Current state: 100. New input = NOT Q0 = NOT 0 = 1. After shift: Q2=1, Q1=1, Q0=0 → State: 110 — Q0 is still 0, so the new input is still 1. The 1s continue to fill from the left.
Current state: 110. New input = NOT Q0 = NOT 0 = 1. After shift: Q2=1, Q1=1, Q0=1 → State: 111 — All three stages are now 1. On the next pulse, Q0 = 1, so the new input flips to 0.
Current state: 111. New input = NOT Q0 = NOT 1 = 0. After shift: Q2=0, Q1=1, Q0=1 → State: 011 — The 0s now begin to fill from the left, mirroring the earlier fill of 1s.
State 011 → new input = NOT 1 = 0 → 001
State 001 → new input = NOT 1 = 0 → 000 (back to start) — The full sequence is: 000 → 100 → 110 → 111 → 011 → 001 → 000. That is 6 unique states, confirming $2n = 2 \times 3 = 6$.
Answer: The 3-stage Johnson counter passes through 6 unique states: 000, 100, 110, 111, 011, 001, then repeats. This confirms the formula: number of states = $2n = 2 \times 3 = 6$.
7. Exam Technique and Common Mistakes
Counter questions at A Level test three skills: recall of definitions, analysis of state sequences, and evaluation of counter choice. Each skill requires a slightly different approach, and examiners are very specific about what earns marks.
When a question asks you to describe a counter, give the sequence of states in order — do not just say it counts up. When asked to explain the operation, link each state change to the clock pulse and the feedback mechanism. When asked to compare two counter types, you must address both similarities and differences; a one-sided answer will not score full marks.
These three counter types — binary, BCD, and Johnson — cover the full AQA specification requirement for digital counters. The binary counter establishes the foundational $2^n$ counting principle; the BCD counter modifies it for decimal display applications by resetting at state 1010; and the Johnson counter replaces binary counting entirely with a shift-register feedback mechanism that produces $2n$ glitch-free states.
Sources and content standards
Published by Revise Right. Use the official specification reference to check the requirements for your course.
A binary counter is a sequential logic circuit of cascaded flip-flops that counts upward through binary states on successive clock pulses, resetting to 0000 after its maximum count. A 4-bit binary counter has 2⁴ = 16 states, from 0000 to 1111, and each stage divides the clock frequency by 2.
What is a Johnson counter?
A Johnson counter, or twisted ring counter, is a shift register in which the inverted output of the final flip-flop feeds back to the input of the first. With n flip-flops it produces 2n unique states, so a 4-stage Johnson counter has 8 states and a 3-stage one has 6.
What is a BCD counter?
A BCD (binary coded decimal) counter is a 4-bit counter that cycles through only the ten states 0000 to 1001, decimal 0 to 9, then resets to 0000. A NAND gate resets the counter at 1010, when Bit 3 and Bit 1 are both high, so the counter can drive a decimal display.
What is the difference between a ring counter and a Johnson counter?
A ring counter feeds the last flip-flop's output back to the first as it is (non-inverted feedback), while a Johnson, or twisted ring, counter feeds back the complemented output. As a result, a 4-stage ring counter gives only 4 states but a 4-stage Johnson counter gives 8.
What is the difference between binary, BCD and Johnson counters?
With n flip-flops, a binary counter has 2ⁿ states and a Johnson counter has 2n states, while a BCD counter uses 4 flip-flops for 10 states. Only the Johnson counter changes one bit per clock pulse, giving glitch-free transitions, and only the BCD output can be read directly as a decimal digit.
Why is a Johnson counter glitch-free?
A Johnson counter is glitch-free because only one bit changes on each clock pulse. In a binary counter, going from 0111 to 1000 changes all four bits at once, and because flip-flops do not switch at exactly the same instant, the output briefly passes through invalid intermediate states.
What is a flip-flop in a counter?
A flip-flop in a counter is a bistable circuit that stores a single binary digit and toggles its output when triggered. A binary counter uses one flip-flop per bit, cascaded in series, so a 4-bit counter needs four flip-flops.
Why is a binary counter called a divide-by-2 chain?
A binary counter is called a divide-by-2 chain because each stage toggles at half the rate of the one before: the least significant bit toggles every clock pulse, the next every 2 pulses, then every 4, and the most significant bit every 8 pulses. Each stage divides the clock frequency by 2.
How does a BCD counter reset after 9?
A BCD counter resets after 9 using a NAND gate connected to Bit 3 and Bit 1, which are both high at 1010 (decimal 10) and at no earlier state. The NAND output drives the asynchronous clear inputs of all flip-flops back to 0000 so fast that state 10 is never seen at the output.
How do you count from 00 to 99 with counters?
Counting from 00 to 99 uses two BCD counters chained together, one for units and one for tens. Each BCD counter cycles through 0000 to 1001, decimal 0 to 9, which is how digital clocks and frequency counters display decimal readings.
How many states does a Johnson counter have?
A Johnson counter with n flip-flops has 2n unique states before repeating. A 4-stage Johnson counter has 2 × 4 = 8 states, compared with 2⁴ = 16 for a 4-bit binary counter and only 4 for a 4-bit ring counter.
What is the sequence of a 3-stage Johnson counter?
A 3-stage Johnson counter starting at 000 steps through 000, 100, 110, 111, 011, 001, then repeats: 6 unique states, confirming 2n = 2 × 3. The new input to the first stage is always NOT Q0, so 1s fill from the left, then 0s fill from the left.
Why can a binary counter glitch?
A binary counter can glitch because several bits can change at once; going from 0111 to 1000, all four bits change. Flip-flops do not switch at exactly the same instant, so the output briefly passes through invalid intermediate states, whereas a Johnson counter changes only one bit per clock pulse.
How many states does a binary counter have?
A binary counter with n flip-flops has 2ⁿ states. A 4-bit binary counter cycles through 2⁴ = 16 states, from 0000 (decimal 0) up to 1111 (decimal 15), then resets to 0000 on the next clock pulse.
What are counters used for?
Binary counters are used for general counting and frequency division; BCD counters drive decimal displays and clocks, since each represents a decimal digit; and Johnson counters produce timing and control sequences, such as stepper motor drives, because their single-bit transitions are glitch-free.