1 chapter 9 counters. 2 figure 9--1 a 2-bit asynchronous binary counter. asynchronous counter...

74
1 Chapter 9 Counters

Upload: aubrie-houston

Post on 23-Dec-2015

326 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

1

Chapter 9

Counters

Page 2: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

2

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

Asynchronous Counter Operation

Page 3: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

3

Figure 9--2 Timing diagram for the counter of Figure 9-1. As in previous chapters, output waveforms are shown in green.

Page 4: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

4

Page 5: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

5

Page 6: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

6

Figure 9--3 Three-bit asynchronous binary counter and its timing diagram for one cycle.

Page 7: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

7

Figure 9--4 Propagation delays in a 3-bit asynchronous (ripple-clocked) binary counter.

Page 8: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

8

Figure 9--5 Four-bit asynchronous binary counter and its timing diagram.

Page 9: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

9

Figure 9--6 An asynchronously clocked decade counter with asynchronous recycling.

Page 10: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

10

Figure 9--7 Asynchronously clocked modulus-12 counter with asynchronous recycling.

Page 11: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

11

Figure 9--8 The 74LS93A 4-bit asynchronous binary counter logic diagram. (Pin numbers are in parentheses, and all J and K inputs are internally connected HIGH.)

Page 12: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

12

Figure 9--9 Two configurations of the 74LS93A asynchronous counter. (The qualifying label, CTR DIV n, indicates a counter with n states.)

Page 13: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

13

Figure 9--10 74LS93A connected as a modulus-12 counter.

Page 14: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

14

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

Synchronous Counter Operation

Page 15: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

15

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: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

16

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

Page 17: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

17

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

Page 18: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

18

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

Page 19: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

19

Page 20: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

20

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: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

21

Figure 9--17 A synchronous BCD decade counter.

Page 22: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

22

Figure 9--18 Timing diagram for the BCD decade counter (Q0 is the LSB).

Page 23: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

23

Page 24: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

24

Up/Down Synchronous Counter

Page 25: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

25

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

Page 26: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

26

Figure 9—24 : Example 9-4 - Timing Diagram

Page 27: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

27

Page 28: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

28

Figure 9--27 General clocked sequential circuit.

Design of Synchronous Counters

Page 29: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

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

Step 1: State Diagram

Page 30: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

30

Step 2: Next-State Table

Page 31: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

31

Step 3: Flip-Flop Transition Table

Page 32: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

32

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: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

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

Step 5: Logic Expressions for Flip-Flop Inputs

Page 34: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

34

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

Step 6: Counter Implementation

Page 35: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

35

Figure 9—32 : Example 9-5

Page 36: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

36

Page 37: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

37

Page 38: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

38

Figure 9--33

Page 39: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

39

Figure 9--34

Page 40: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

40

Figure 9--35 Example 9-6 - State diagram for a 3-bit up/down Gray code counter.

Page 41: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

41

Page 42: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

42

Page 43: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

43

Figure 9--36 J and K maps for Table 9-11. The UP/DOWN control input, Y, is treated as a fourth variable.

Page 44: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

44

Figure 9--37 Three-bit up/down Gray code counter.

Page 45: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

45

Figure 9--38 Two cascaded counters (all J and K inputs are HIGH).

Cascaded Counters

Page 46: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

46

Figure 9--39 Timing diagram for the cascaded counter configuration of Figure 9-38.

Page 47: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

47

Figure 9--40 A modulus-100 counter using two cascaded decade counters.

Page 48: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

48

Figure 9--41 Three cascaded decade counters forming a divide-by-1000 frequency divider with intermediate divide- by-10 and divide-by-100 outputs.

Page 49: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

49

Figure 9—42 : Example 9-7 – Determine the overall modulus

Page 50: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

50

Figure 9--43 A divide-by-100 counter using two 74LS160 decade counters.

Page 51: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

51

Figure 9--44 A divide-by-40,000 counter using 74HC161 4-bit binary counters. Note that each of the parallel data inputs is shown in binary order (the right-most bit D0 is the LSB in each counter).

Page 52: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

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

Counter Decoding

Page 53: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

53

Figure 9--46 : Example 9-9 - A 3-bit counter with active-HIGH decoding of count 2 and count 7.

Page 54: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

54

Figure 9--47 A basic decade (BCD) counter and decoder.

Page 55: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

55

Figure 9--48 Outputs with glitches from the decoder in Figure 9-47. Glitch widths are exaggerated for illustration and are usually only a few nanoseconds wide.

Page 56: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

56

Figure 9--49 The basic decade counter and decoder with strobing to eliminate glitches.

Page 57: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

57

Figure 9--50 Strobed decoder outputs for the circuit of Figure 9-49.

Page 58: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

58Figure 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: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

59

Figure 9--52 Logic diagram of typical divide-by-60 counter using 74LS160A synchronous decade counters. Note that the outputs are in binary order (the right-most bit is the LSB).

Page 60: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

60

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: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

61

Figure 9--54 Functional block diagram for parking garage control.

Counter Applications : Automobile Parking Control

Page 62: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

62

Figure 9--55 Logic diagram for modulus-100 up/down counter for automobile parking control.

Page 63: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

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

Counter Applications : Parallel-to-Serial Data Conversion (Multiplexing)

Page 64: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

64

Figure 9--57 Example of parallel-to-serial conversion timing for the circuit in Figure 9-56.

Page 65: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

65

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

Application

Page 66: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

66

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

Page 67: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

67Figure 9--68 State diagram showing the 2-bit Gray code sequence.

Page 68: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

68

Figure 9--69 Sequential logic.

Page 69: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

69

Page 70: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

70

Page 71: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

71

Page 72: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

72

Figure 9--70

Page 73: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

73

Figure 9--71

Page 74: 1 Chapter 9 Counters. 2 Figure 9--1 A 2-bit asynchronous binary counter. Asynchronous Counter Operation

74

Figure 9--72