Fork me on GitHub

Project Notes

#186 DigitalLogic/AsyncJKCounter

An asynchronous 4-bit counter built with JK Flip-Flops.

Here’s a quick video of the circuit in action:

AsyncJKCounter

Notes

This circuit uses 4 JK flip-flops set up for the “toggle” mode to implement an asynchronous 4-bit binary counter.

I’m using two 74LS73 chips for the flip-flops (each has two flip-flops). These also support a “clear” input, but since I’m not using that, all the CLR inputs are pulled high.

The “toggle” mode corresponds to the state where both J and K inputs are high. In this situation, the output will invert on the clock pulse (falling edge for the 74LS73).

A low-frequency 555 Timer astable oscillator provides a clock pulse of around 1.226 Hz, and so it is possible to follow the counter with the human eye.

Performance

Here’s a logic trace captured with the clock souped up to 470Hz.

  • Logic channel D0 is the clock signal, also traced on CH1
  • Logic channels D1, D2, D3, and D4 are the outputs from LSB to MSB

Scope

How Asynchronous is it?

The “asynchronous” description of the counter reflects the fact that the output transitions are not all synchronised to the same clock signal.

  • only the first flip-flop is directly triggered by the input clock signal
  • subsequent flip-flops are clocked by the output of the previous stage

For display purposes (like this circuit), this is not an issue. But if the counter is in turn an input to subsequent digital logic stages, the lack of synchronisation may raise havoc due to the rippling changes.

There is a “synchronous” version of this circuit (that I haven’t built yet); for more information see Sequential Circuits - Synchronous Counters.

Here’s a trace of 4 digit signals captured in analog with the clock souped up to 470Hz:

  • CH1 is digit D3 (per the schematic) (MSB) - used for triggering on the falling edge, so we see all digit transitions together
  • CH2 is digit D2 (per the schematic)
  • CH2 is digit D1 (per the schematic)
  • CH2 is digit D0 (per the schematic) (LSB)

The ripples are clear, taking place over about 42ns:

Sync

Construction

Breadboard

The Schematic

The Build

Credits and References

About LEAP#186 CMOS/TTLDigital Logic
Project Source on GitHub Return to the LEAP Catalog

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

LEAP is my personal collection of electronics projects, usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting (IMHO!).

The projects are usually inspired by things found wild on the net, or ideas from the sources such as:

Feel free to borrow liberally, and if you spot any issues do let me know. See the individual projects for credits where due. There are even now a few projects contributed by others - send your own over in a pull request if you would also like to add to this collection.