Counters

T Flip-Flop Based Counters

See T flip-flop

Table - 3-Bit Up-Counter

Clock Cycle
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
8 0 0 0

Notice how, for example, changes when the lower significant bits (i.e and ) are both 1. This is just because of how binary works.

Asynchronous Counter

Circuit - 3-Bit Asynchronous Up-Counter Using T Flip-Flops

Drawing canvas
Timing Diagram

Drawing canvas

Synchronous Counter

Circuit - 4-Bit Synchronous Up-Counter using T Flip-Flops

Drawing canvas
Timing Diagram

Drawing canvas
Circuit - Synchronous Counter with Clear and Enable

Drawing canvas

D Flip-Flop Based Counters

See D flip-flop

Circuit - 4-Bit Synchronous Up-Counter using D Flip-Flops

D Flip-Flop Counter.png

Intuition

Recall that the implementation of a D Flip-Flop is just a T flip-flop with an XOR gate.

Modulo-n Counter

Circuit - Modulo 6 Counter Modulo 6 Counter with Synchronous Reset

Drawing canvas
Timing Diagram - Modulo 6 Counter with Synchronous Reset

Drawing canvas

Johnson Counter

Info

A 4-bit Johnson counter produces the sequence 0000, 1000, 1100, 1110, 1111, 0111, 0011, 0001, 0000, and so on

Circuit

Drawing canvas

Other Useful Counters

Ring Counter

BCD Counter

todo Reading assignment