Presentation is loading. Please wait.

Presentation is loading. Please wait.

ECE 331 – Digital System Design Counters (Lecture #18)

Similar presentations


Presentation on theme: "ECE 331 – Digital System Design Counters (Lecture #18)"— Presentation transcript:

1 ECE 331 – Digital System Design Counters (Lecture #18)

2 ECE 331 - Digital System Design2 3-bit Counter: State Diagram 000 001 010 011 100 101 110 111

3 ECE 331 - Digital System Design3 Asynchronous Counters (aka. Ripple Counters) Counters

4 ECE 331 - Digital System Design4 3-bit (up) Counter Let each bit in the counter be represented by the output of a flip-flop. CountQ2Q2 Q1Q1 Q0Q0 0000 1001 2010 3011 4100 5101 6110 7111 0000

5 ECE 331 - Digital System Design5 3-bit (up) Counter: T Flip-Flops T Q Q Clock T Q Q T Q Q 1 Q 0 Q 1 Q 2 Q 0 Q 1 Q 2 Count012345670 Asynchronous Counter Counter does not use a common clock.

6 ECE 331 - Digital System Design6 Synchronous Counters Counters

7 ECE 331 - Digital System Design7 4-bit (up) Counter As before, let each bit in the counter be represented by the output of a flip-flop. CountQ3Q3 Q2Q2 Q1Q1 Q0Q0 00000 10001 20010 30011 40100 50101 60110 70111 Q3Q3 Q2Q2 Q1Q1 Q0Q0 81000 91001 101010 111011 121100 131101 141110 151111 00000

8 ECE 331 - Digital System Design8 4-bit (up) Counter: T Flip-Flops

9 ECE 331 - Digital System Design9 4-bit (up) Counter: JK Flip-Flops Synchronous Counter Counter uses a common clock.

10 ECE 331 - Digital System Design10 4-bit Counter: D Flip-Flops Clock Enable D Q Q D Q Q D Q Q D Q Q Q 0 Q 1 Q 2 Q 3 Output carry How does the XOR gate function when the Enable signal is a logic-1?

11 ECE 331 - Digital System Design11 Synchronous Counters 4-bit (up) Counter with Enable and Clear

12 ECE 331 - Digital System Design12 T Q Q Clock T Q Q Enable Clear T Q Q T Q Q 4-bit Counter with Enable and Clear asynchronous control signals

13 ECE 331 - Digital System Design13 Synchronous Counters 4-bit (up) Counter with Parallel Load

14 ECE 331 - Digital System Design14 4-bit Counter with Parallel Load Is the Load signal active-high or active-low?

15 ECE 331 - Digital System Design15 4-bit Counter with Parallel Load

16 ECE 331 - Digital System Design16 Synchronous Counters Modulo-6 Counter

17 ECE 331 - Digital System Design17 Modulo-6 Counter: D Flip-Flops 01234501 Clock Count Q 0 Q 1 Q 2 Enable Q 0 Q 1 Q 2 D 0 D 1 D 2 Load Clock 1 0 0 0 3-bit counter with Parallel Load Counter resets to zero when count reaches six.

18 ECE 331 - Digital System Design18 Modulo-6 Counter: T Flip-Flops T Q Q Clock T Q Q T Q Q 1 Q 0 Q 1 Q 2 Q 0 Q 1 Q 2 Count012345012 asynchronous clear signal Counter cleared when count reaches six.

19 ECE 331 - Digital System Design19 Counters BCD (Decimal) Counter (aka. Modulo-10 Counter)

20 ECE 331 - Digital System Design20 BCD Counter: State Diagram

21 ECE 331 - Digital System Design21 BCD Counter: JK Flip-Flops Asynchronous Counter

22 ECE 331 - Digital System Design22 BCD Counter: D Flip-Flops Synchronous Counter

23 ECE 331 - Digital System Design23 Up / Down Counter Synchronous Counters

24 ECE 331 - Digital System Design24 4-bit Up / Down Counter

25 ECE 331 - Digital System Design25 Acknowledgments The slides used in this lecture were taken, with permission, from those provided by McGraw-Hill for Fundamentals of Digital Logic with VHDL Design (3 rd Edition). They are the property of and are copyrighted by McGraw-Hill Higher Education.


Download ppt "ECE 331 – Digital System Design Counters (Lecture #18)"

Similar presentations


Ads by Google