# Design Counter With Arbitrary Sequence Using Load

I'm trying to design an asynchronous counter with JK flip- flops, with an arbitrary sequence. The sequence is: 0, 1, 2, 3, 4, 5, 2 ?

I know how to solve this kind of problems, but in this case how can one solve this problem with the 6 and 7 ? Because a state can only have one next state ?

Edit: This is what I did so far after doing the K maps. I get J2 = 0, K2 = Q1, J1 = 0, K1 = 0, J0 = 0, K0 = Q2Q1. But when I try to simulate it in multisim, it gets stuck to 0. Did I make a mistake in my k map simplifications or is there an issue my circuit ?

N.B. in this image, Q1 is the LSB, Q2 is the '2' bit, Q3 is '4'

• is this a school assignment? .... how does it get to state 6 or state 7 ? – jsotola Apr 7 '18 at 20:25
• yes, i have no idea how it can get to the state 6 or 7... – Ahhh Physics Apr 7 '18 at 20:50
• Then you also have no idea how it can get to 0. – Chris Stratton Apr 8 '18 at 0:42
• Use a PROM to control the state machine. – analogsystemsrf Apr 8 '18 at 4:27
• Voting to close as the problem behind this question simple isn't answerable until you have a complete specification. With what you have right now there are many approaches that could be taken, but each would rely on unvalidated assumptions as to what behavior is actually desired. Don't guess or ask us to - re-read the requirement, have a discussion with the stakeholders, or examine the application to more carefully determine the need. – Chris Stratton Apr 8 '18 at 17:54