2-bit counter:
- Let's try to design a bit different 2-bit counter:
- Again, counter outputs will be 00, 01, 10 and 11.
- Now, there is single input, X. When X=0, counter value should increment on each clock cycle. But when X=1, value should decrement on the successive cycles.
- We will need 2 flip-flops again. Here are the 4 possible states:
Present State Inputs Next State
Q1 Q0 X Q1 Q0
0 0 0 0 1
0 0 1 1 1
0 1 0 1 0
0 1 1 0 0
1 0 0 1 1
1 0 1 0 1
1 1 0 0 0
1 1 1 1 0
- If we are using D flip-flops, then D inputs will be the same as in the desirednext states.
- The equations for D flip-flop inputs are shown at the right.
- Does D0 = Q0’ make sense
Present State
Q1 Q0
|
Inputs
X
|
Next State
Q1 Q0
|
0 0
0 0
|
0
1
|
0 1
1 1
|
0 1
0 1
|
0
1
|
1 0
0 0
|
1 0
1 0
|
0
1
|
1 1
0 1
|
1 1
1 1
|
0
1
|
0 0
1 0
|
D1 = Q1⊕Q0⊕X
D0 = Q0'
- If we are using JK flip-flops instead, then we have to calculate the JK inputs for each flip-flop.
- Look at present and desired next state, and use excitation table on the right.
Present State Inputs Next State Flip flop inputs
Q1 Q0 X Q1 Q0 J1 K1 J0 K0
0 0 0 0 1 0 x 1 x
0 0 1 1 1 1 x 1 x
0 1 0 1 0 1 x x 1
0 1 1 0 0 0 x x 1
1 0 0 1 1 x 0 1 x
1 0 1 0 1 x 1 1 x
1 1 0 0 0 x 1 x 1
1 1 1 1 0 x 0 x 1
We can then find the equations for all the 4 flip-flop inputs, in terms of present state and inputs. Now, it turns out J1 = K1 and J0 = K0.
J1 = K1 = Q0’ X + Q0 X’
J0 = K0 = 1
Johnson Counter
Email based Digital Electronics assignment help - homework help at Expertsmind
Are you searching Electronics Engineering assignment help expert for help with 2-bit counter questions? 2-bit counter topic is not easier to learn without any external help? We at www.expertsmind.com offers free lecture notes for Digital Electronics and circuits assignment help and Digital Electronics homework help. Live tutors are available 24x7 hours for helping students in their 2-bit counter related problems. We provide step by step 2-bit counter question's answers with 100% plagiarism free content. We prepare quality content and notes for 2-bit counter topic under Digital electronics theory and study material. These are avail for subscribed users and they can get advantages anytime.
Why Expertsmind for assignment help
- Higher degree holder and experienced experts network
- Punctuality and responsibility of work
- Quality solution with 100% plagiarism free answers
- Time on Delivery
- Privacy of information and details
- Excellence in solving Digital electronics engineering questions in excels and word format.
- Best tutoring assistance 24x7 hours