TEAHLAB NEW ADDITION
BUILD. SAVE. SHARE.
The world's first and only Integrated Simulator Community.

4 - Bit Modulo 16 JK Binary Counter

The interactive four Bit Modulo 16 JK Binary Counter digital logic circuit, with Boolean function and truth table.
Play around with the circuit to see that it works
STATE TABLE
Present State Next State
E = 0E = 1
zyxw ZYXW ZYXW
0000 0000 0001
0001 0001 0010
0010 0010 0011
0011 0011 0100
0100 0100 0101
0101 0101 0110
0110 0110 0111
0111 0111 1000
1000 1000 1001
1001 1001 1010
1010 1010 1011
1011 1011 1100
1100 1100 1101
1101 1101 1110
1110 1110 1111
1111 1111 0000

Four-Bit Modulo-16 JK Binary Counter

An integral part of human life is competitions. Whether it is a high school baseball game, the Olympics, or a national presidential election; people compete. Essential to competitions, as it may occur to you, is the ability to keep scores so to know who is leading, who is lagging, and how much a team needs to work to win. As a result, humans are experienced score keepers.


Figure 1: JK Counter with labeled AND gates

For the least significant flipflop, whose output is W, it is clear that unless E = 1 no toggling will occur. And so we say

J0 = K0 = E

For the second least significant flipflop, whose output is X, AND gate #1 is the input of J1 and K1. So since the output signal of the AND gate is 1 only when both E and W are 1, we say

J1 = K1 = E • W.

We follow the same pattern to get the output for J2 and K2. AND gate #2, which feeds into J2 and K2, is the combination of signal X and signal E • W. And so

J2 = K2 = (E • W) • X.

For J3 and K3 we use the output of AND gate #3. Therefore we have

J3 = K3 = (E • W • X) • Y.

The output of AND gate #4 does not feed into any of the flipflops in our circuit. Instead it serves as the output carry of the counter. The importance of the output carry bit is this: if we had two four–bit counters, for example, and we wanted to connect them to create a larger eight–bit counter; then we would connect the output carry of one of the four–bit counters into the Enable input of the other four–bit counter. The two connected four–bit counters would then behave as an eight–bit counter.

J0 = K0 = E
J1 = K1 = E • Q0
J2 = K2 = E • Q0 • Q1
J3 = K3 = E • Q0 • Q1 • Q2.


Figure 2: JK Counter with outputs re-labeled

From this pattern you can extend the counter to any number of stages you need.

Teahlab on LinkedIn     Teahlab on Facebook