Fork me on GitHub

Project Notes

#186 Asynchronous JK Counter

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 - see LEAP#320 for this circuit.

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

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

Project Source on GitHub Return to the LEAP Catalog
About LEAP

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.

Projects are often inspired by things found wild on the net, or ideas from the many great electronics podcasts and YouTube channels. Feel free to borrow liberally, and if you spot any issues do let me know or send a pull-request.

NOTE: For a while I included various scale modelling projects here too, but I've now split them off into a new repository: check out LittleModelArt if you are looking for these projects.

Project Gallery view the projects as an image gallery Notebook reference materials and other notes Follow the Blog follow projects and notes as they are published in your favourite feed reader