Question: P 2 . Design a circuit based on JK flip - flops that will step through the 3 - bit Gray code cycle. ( What
P Design a circuit based on JK flipflops that will step through the bit Gray code cycle.
Whats Gray code? See below. Each of the JKs will hold one bit, together they make the
bit value of the code.
a First remind yourself of the output transitions of a JK flip
flop by writing down a chart such as this one recall that it is
possible to have "don't care" inputs use to show these
b Make a table showing the flipflop outputs of the bit Gray code cycle. Add
six columns for and fill in these columns with the values necessary to
generate the cycle.
c Pick your favorite two columns from the six and determine the logic gates
necessary to generate those columns from the outputs.
Gray Code: How does a machine know when it is in the right location? This problem is often solved using
some version of "optical encoder": a set of photodiodes reads the lightdark pattern on a moving part and
determines where the part is For example, to determine the rotational position of a disc, three photodiodes
could be used at three different radii to sense lightdark marks, these can be converted into
possible locations. You might think it would be a good idea to mark the pattern using binary counting,
but that can lead to serious problems if either the marks or the light sensors are slightly misaligned. In
the 'binary counting' example below, going from sector involves all three bits changing. If the
markings aren't quite lined up it is possible that the state briefly goes through some other value such as
in which case the machine might malfunction for example, if it were trying to move to
the sector actually marked But if you look carefully at the eight positions using Gray code below, you
will see that for each transition only one bit ever changes this means there is no danger of accidentally
passing through a false position state.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
