0% found this document useful (0 votes)
7 views6 pages

Binary Counter

The document explains the functioning of binary counters, which use D-type flip flops to count clock pulses in binary format. It details 1-bit, 2-bit, and 3-bit counters, including how to reset and load values for specific counting ranges. Additionally, it mentions the availability of binary counter ICs and the conventions used for output representation.

Uploaded by

Zander Struwig
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views6 pages

Binary Counter

The document explains the functioning of binary counters, which use D-type flip flops to count clock pulses in binary format. It details 1-bit, 2-bit, and 3-bit counters, including how to reset and load values for specific counting ranges. Additionally, it mentions the availability of binary counter ICs and the conventions used for output representation.

Uploaded by

Zander Struwig
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Binary Counter

Introduction
A binary counter counts clock pulses and the output is in binary.

A binary counter is made from D-type flip flops configured as divide by 2 counters because
each output is worth twice as much as the previous one and therefore should require twice
as many clock pulses to make it go HIGH. The outputs from the binary counter represent 0
when they are LOW and 1 when they are HIGH.

Note: When a binary number, such as 0111, is written down the LSB (Least Significant Bit) is
on the right and the MSB (Most Significant bit) is on the left. Due to circuit building
conventions, the output of a binary counter circuit has the LSB output on the left and the
MSB output on the right hand side.

1 Bit Counter
This counter can only count from 0 to 1
i.e. one clock pulse.

After the circuit has been reset the


output will be LOW.

When 1 clock pulse has been received


the output will be HIGH.

The next clock pulse makes the output


go LOW again.

The output of the 1 Bit counter is 𝑄0.

2 Bit Counter
Important: The second divide by 2 counter must receive a rising edge clock pulse when the
output of the previous counter goes from HIGH to LOW ... therefore the CLOCK of the
second divide by 2 counter must come from the 𝑄0 of the previous counter. If 𝑄0 goes from
HIGH to LOW, 𝑄0 will go from LOW to HIGH which is the required rising edge.
Initially 𝑄0 and 𝑄1 are LOW representing binary 0 0

On the 1st rising edge of the CLOCK:

𝑄0 goes HIGH and 𝑄1 remains LOW representing binary 0 1

On the 2nd rising edge of the CLOCK:

𝑄0 goes LOW and 𝑄1 goes HIGH representing binary 1 0

On the 3rd rising edge of the CLOCK:

𝑄0 goes HIGH and 𝑄1 remains HIGH representing binary 1 1

On the 4th rising edge of the CLOCK:

𝑄0 goes LOW and 𝑄1 goes LOW representing binary 0 0 and the count starts again.
3 Bit Counter
Extra Bits are added by adding extra divide by 2 counters with each counter being driven by
the 𝑄 output of the previous counter.

The timing diagram shows the state of the three outputs 𝑄0, 𝑄1 and 𝑄2

Each output stays HIGH or LOW for twice as long as the previous output.

With all the outputs starting LOW (as shown) it takes 8 (23) clock pulses to return back to the
same state.

A 3 Bit counter can count 8 clock pulses with the outputs representing binary 0 to binary 7.
RESET - counting to a certain value
A 3 Bit counter will count 8 counts (from 0 to 7). To make the counter count to a smaller
maximum value, use logic to RESET the counter at a particular value.

The circuit shown starts from 0 and counts to 5. On the next clock pulse the counter
advances to binary 6 (1 1 0) such that 𝑄0 is LOW, 𝑄1 is HIGH and 𝑄2 is HIGH.
The output from the AND gate goes HIGH and immediately resets all the D-Type flip flops.
The binary output 6 exists only as long as it takes the flip flops to reset.

The timing diagram shows 𝑄1 go momentarily HIGH which causes RESET go momentarily
HIGH on the 6th rising edge of the clock.

All outputs go LOW and the count resumes from 0 on the next clock pulse.
LOAD - starting from any value
The 3 input AND gate will give a HIGH output when the counter reaches binary 7 because
𝑄0 is HIGH, 𝑄1 is HIGH and 𝑄2 is HIGH.

The output from the AND gate is connected to the RESET of the 2nd and 3rd counters but
connected to the SET of the 1st counter.

When the output of the AND gate goes HIGH, 𝑄0 immediately becomes HIGH and 𝑄1 and 𝑄2
are immediately made LOW. The count restarts at binary 1.

In this example, logic gates are used to LOAD binary 1 into the counter which then counts to
binary 6 before re-loading binary 1 on the next clock pulse. The counter repeatedly counts
from 1 to 6 which is useful for making a dice.

Binary Counter ICs


Binary counters are available as an
all-in-one IC such as the generic counter
shown in the diagram.

The outputs 𝑄0 - 𝑄3 are sometimes


labeled A, B, C and D.

Making the LOAD momentarily HIGH


loads the 4-Bit binary word on 𝐿0 - 𝐿3 onto
the outputs 𝑄0 - 𝑄3.

RESET returns the all the outputs to LOW.

EN (Enable) or CI (Clock Inhibit) stops the counter from responding to clock pulses but does
not reset the outputs.
Footnote
On the diagrams and in the text the outputs are represented as 𝑄0, 𝑄1, 𝑄2 and 𝑄3 etc.

Other web pages and textbooks have the outputs are represented as 𝑄1, 𝑄2, 𝑄4 and 𝑄8 etc.

The two conventions are equivalent:

𝑄0 → 𝑄1 representing 1 (20)

𝑄1 → 𝑄2 representing 2 (21)

𝑄2 → 𝑄4 representing 4 (22)

𝑄3 → 𝑄8 representing 8 (23)

Website
[Link]

© Paul Nicholls

April 2022

Electronics Resources by Paul Nicholls is licensed under a Creative Commons Attribution


4.0 International License.

You might also like