hw5_sol
hw5_sol
Homework 5 Page 1 of 5
(a) Input Waveform.
3. Synchronous Counters.
Determine the sequence of the counter in Figure 5. Show the complete timing diagram
of Q0 , Q1 , and Q2 waveforms for 10 clock pulses. Begin with the counter cleared.
000 → 001 → 011 → 111 → 110 → 100 → 001 → 011 → 111 → 110 → 100 → · · ·
Homework 5 Page 2 of 5
Note that we wrote the number in Q2 Q1 Q0 form.
Q waveforms are described in Figure 6. Interestingly, state 000 never appears again.
1, 4, 3, 5, 7, 6, 2, 1, 4, 3, 5, . . . .
Homework 5 Page 3 of 5
Solution: Design of Synchronous Counters.
The first step is drawing the state diagram. Note that we are using binary numbers
(for example, 001 for 1, 010 for 2, etc). The state diagram is given in Figure 8a.
Then, the step 2 is filling the next-state table. This is given in Table 1.
Table 1: Step 2.
The step 3 is flip-flop transition table. Transition table of J-K flip-flop is given in
Figure 8b.
The step 4 is Karnaugh maps. These are given in Figure 8c.
The step 5 is Logic expressions. According to Karnaugh maps, we have
The final step (step 6) is counter implementation which is given in Figure 8d.
Homework 5 Page 4 of 5
(b) Step 3.
(a) Step 1.
(d) Step 6.
(c) Step 4.
Homework 5 Page 5 of 5