State diagram for a mod-10 Gray code counter with 2-4-2-1 weighting

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 6K views
undomielestel
Messages
1
Reaction score
0
Hey,

How do u arrive at the state diagram for a scale of 10 gray code counter?

I know how to draw all the used states, but the problem comes when the unused states are considered.

The unused states namely are:1100
0100
1101
0101
0111

The gray code adapts a 2-4-2-1 code.

If anyone knows how to draw this i would appreciate ur help.

Thanks
 
Engineering news on Phys.org
Normally you will just have your unused states vector into your initial state. That way, even if the counter gets into a bad state somehow, it does not hang there. It just goes back and starts over. Making sure that unused states vector to some initial state is VERY important in state machine design. Always account for ALL of your states, and make sure that none of them is a dead end.