75
Counter Circuit

Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Counter Circuit

Page 2: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--1 A 2-bit asynchronous binary counter.

Asynchronous Counter Operation

Page 3: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 4: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 5: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 6: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 7: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--4 Propagation delays in a 3-bit asynchronous

(ripple-clocked) binary counter.

Page 8: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 9: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 10: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 11: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 12: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 13: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 14: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--11 A 2-bit synchronous binary counter.

Synchronous Counter Operation

Page 15: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--12 Timing details for the 2-bit synchronous counter operation (the propagation delays of both flip-flops are assumed to be

equal).

Page 16: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--13 Timing diagram for the counter of Figure 9-11.

Page 17: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--14 A 3-bit synchronous binary counter.

Page 18: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--15 Timing diagram for the counter of Figure 9-14.

Page 19: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 20: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--16 A 4-bit synchronous binary counter and timing

diagram. Points where the AND gate outputs are HIGH

are indicated by the shaded areas.

Page 21: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--17 A synchronous BCD decade counter.

Page 22: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--18 Timing diagram for the BCD

decade counter (Q0 is the LSB).

Page 23: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 24: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Up/Down Synchronous

Counter

Page 25: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--23 A basic 3-bit up/down synchronous counter.

Page 26: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 27: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 28: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--27 General clocked sequential circuit.

Design of Synchronous Counters

Page 29: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--28 State diagram for a 3-bit Gray code counter.

Step 1: State Diagram

Page 30: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Step 2: Next-State Table

Page 31: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Step 3: Flip-Flop Transition Table

Page 32: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--29 Examples of

the mapping procedure for

the counter sequence

represented in Table

9-7 and Table 9-8.

Step 4: Karnaugh Maps

Page 33: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--30 Karnaugh maps for present-state J and K inputs.

Step 5: Logic Expressions for Flip-Flop Inputs

Page 34: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--31 Three-bit Gray code counter.

Step 6: Counter Implementation

Page 35: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 36: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 37: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 38: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 39: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 40: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--35 Example 9-6 - State diagram for a 3-bit

up/down Gray code counter.

Page 41: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 42: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 43: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

www.themegallery.com

Page 44: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 45: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--38 Two cascaded counters

(all J and K inputs are HIGH).

Cascaded Counters

Page 46: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--39 Timing diagram for the cascaded counter

configuration of Figure 9-38.

Page 47: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 48: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 49: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 50: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--43 A divide-by-100 counter using two

74LS160 decade counters.

Page 51: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 52: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--45 Decoding of state 6 (110).

Counter Decoding

Page 53: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 54: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 55: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 56: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 57: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 58: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--51 Simplified logic diagram for a 12-hour digital clock.

Logic details using specific devices are shown in Figures 9-52

and 9-53.

Counter Applications : Digital Clock

Page 59: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 60: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--53 Logic diagram for hours counter and

decoders. Note that on the counter inputs and outputs,

the right-most bit is the LSB.

Page 61: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--54 Functional block diagram

for parking garage control.

Counter Applications :

Automobile Parking Control

Page 62: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--55 Logic diagram for modulus-100 up/down

counter for automobile parking control.

Page 63: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--56 Parallel-to-serial data conversion logic.

Counter Applications : Parallel-to-Serial

Data Conversion (Multiplexing)

Page 64: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 65: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--66 Traffic light control system block diagram and light sequence.

Application

Page 66: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--67 Block diagram of the sequential logic.

Page 67: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 68: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--69 Sequential logic.

Page 69: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 70: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 71: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)
Page 72: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--70

Page 73: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--71

Page 74: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)

Figure 9--72

Page 75: Counter Circuit - Nathee Yongyut · Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter. . Figure 9--38 Two cascaded counters (all J and K inputs are HIGH)