Need help with a mod-6 counter using JK flip flops w/ control bit

  • #1

Homework Statement


[/B]
I am currently working on an assignment in which I create a six-state up/down counter. The purpose is to understand the functionality of flip-flops within a circuit among other things.

There are 3 input bits (Q2,Q1, Q0), and a 4th control bit (C) which determines the direction that the counter runs. Naturally I derived a design from 3 next-state function 4x4 k-maps, and I created a design utilizing D flip flops, which runs perfectly forwards and backwards.

The second part asks me to convert from a D-ff design to using JK flip flops. I mostly understand the logic of how a JK flip flop works, but I can't for the life of me figure out how to fit that extra control bit into the translation.

Homework Equations




The Attempt at a Solution


[/B]
My trouble comes in keeping the circuit bi-directional. I am very confused about what to do with the control bit. I created an excitation table for the next states, which I believe is correct, and conversions for the six JK k-maps (K2, K1, K0, J2, J1, and J0). However, I now have two sets of J & K values, one for C=0 and one for C=1.

In trying to work it out, I populated the 6 k-maps with the proper data (only C=0) and constructed a function/circuit, but of course it only clocks in one direction whether C is set to 0 or 1. What am I supposed to do with the control bit when I translate to the new k-maps for K2, K1 etc... which each only take the three Q input bits?

What am I missing in the logic of utilizing JK flip flops for 3 input bits when there is the control bit as well?

Hopefully that's clear, I'm sure it is just a conceptual problem I am having trouble figuring out. If anyone wants me to upload my excitation table or any other part I've done so far, let me know. Any help is greatly appreciated!
 

Answers and Replies

  • #2
berkeman
Mentor
64,466
15,840
Welcome to the PF. :smile:

Yes, please upload your work for the D-FF version and your work so far for the JK-FF version. That will help a lot in our efforts to help you out. :smile:
 

Suggested for: Need help with a mod-6 counter using JK flip flops w/ control bit

  • Last Post
Replies
5
Views
649
  • Last Post
Replies
6
Views
523
  • Last Post
Replies
14
Views
657
Replies
0
Views
302
  • Last Post
Replies
9
Views
702
Replies
42
Views
688
Replies
30
Views
201
  • Last Post
Replies
9
Views
962
  • Last Post
Replies
8
Views
480
  • Last Post
Replies
4
Views
607
Top