Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Help needed to draw a State Diagram for scale of 10 Gray code counter

  1. May 17, 2007 #1
    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
     
  2. jcsd
  3. May 17, 2007 #2

    berkeman

    User Avatar

    Staff: Mentor

    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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Help needed to draw a State Diagram for scale of 10 Gray code counter
  1. State diagrams (Replies: 4)

Loading...