1 of 32

Topic 4: Counters

DIGITAL SYSTEM

2 of 32

Objectives

  • Describe the difference between an asynchronous and a synchronous counter
  • Analyze counter timing diagram
  • Analyze counter circuits
  • Determine the sequence of a counter
  • …and more…

3 of 32

Asynchronous Counter Operation

  • Asynchronous binary counter
    • 2-bit asynchronous binary counter
    • 3-bit asynchronous binary counter
    • 4-bit asynchronous binary counter

​

  • Asynchronous decade counter

4 of 32

  • 2-bit asynchronous binary counter

5 of 32

  • 3-bit asynchronous binary counter

6 of 32

  • 4-bit asynchronous binary counter

7 of 32

  • Asynchronous decade counter

8 of 32

9 of 32

Synchronous Counter Operation

  • Synchronous binary counters
    • 2-bit counter
    • 3-bit counter
    • 4-bit counter

​

  • Synchronous BCD decade counter

​

10 of 32

  • 2-bit synchronous binary counter

​

0

0

1

11 of 32

  • 3-bit synchronous binary counter

​

0

0

0

0

1

0

0

0

12 of 32

  • 4-bit synchronous binary counter

​

AND gate outputs is HIGH

13 of 32

Synchronous BCD decade counter

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

1

1

0

0

0

0

14 of 32

Up/Down Synchronous Counters

  • 3-bit up/down synchronous counter
  • Up/down decade synchronous counter

15 of 32

3-Bit Up/Down Synchronous Counter

16 of 32

Steps used in the design of sequential circuit

  1. Specify the counter sequence and draw a state diagram
  2. Derive a next-state table from the state diagram
  3. Develop a transition table showing the flip-flop inputs required for each transition. The transition table is always the same for a given type of flip-flop
  4. Transfer the J and K states from the transition table to Karnaugh maps. There is a Karnaugh map for each input of each flip-flop.
  5. Group the Karnaugh map cells to generate and derive the logic expression for each flip-flop input.
  6. Implement the expressions with combinational logic, and combine with the flip-flops to create the counter.

17 of 32

State diagram for a 3-bit Gray code counter.

18 of 32

Next-state table for a 3-bit Gray code counter.

Present State

Next State

Q2

Q1

Q0

Q2

Q1

Q0

0

0

0

0

0

1

0

0

1

0

1

1

0

1

1

0

1

0

0

1

0

1

1

0

1

1

0

1

1

1

1

1

1

1

0

1

1

0

1

1

0

0

1

0

0

0

0

0

19 of 32

Transition Table for a J-K flip-flop

Output Transitions

Flip-flop Inputs

QN

​

QN+1

J

​

K

0

🡪

0

0

​

X

0

🡪

1

1

​

X

1

🡪

0

X

​

1

1

🡪

1

X

​

0

QN : present state

QN+1: next state

X: Don’t care

20 of 32

21 of 32

22 of 32

Three-bit Gray code counter.

23 of 32

Example: �Design a counter with the irregular binary count sequence as shown in the state diagram. Use J-K flip-flops

24 of 32

Next-state table

Present State

Next State

Q2

Q1

Q0

Q2

Q1

Q0

0

0

1

0

1

0

0

1

0

1

0

1

1

0

1

1

1

1

1

1

1

0

0

1

25 of 32

Next-state table for a 3-bit Gray code counter.

Output Transitions

Flip-flop Inputs

QN

​

QN+1

J

​

K

0

🡪

0

0

​

X

0

🡪

1

1

​

X

1

🡪

0

X

​

1

1

🡪

1

X

​

0

26 of 32

K-MAP

27 of 32

THE COUNTER CIRCUIT

28 of 32

29 of 32

Simplified logic diagram for a 12-hour digital clock.

30 of 32

Functional block diagram for parking garage control.

31 of 32

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

32 of 32

Thank You

“Intan berlian walaupun di atas lumpur dia pasti akan bercahaya, akan tetapi najis ayam walaupun diletakkan di atas meja tetap akan berbau busuk jua” - Cendikiawan