8
Basic Counters: Part I Section 7-6 (pp. 353-366)

Basic Counters: Part I Section 7-6 (pp. 353-366)

Embed Size (px)

DESCRIPTION

3 Waveforms of a 2 bit Counter Counter CP B A

Citation preview

Page 1: Basic Counters: Part I Section 7-6 (pp. 353-366)

Basic Counters: Part I

Section 7-6 (pp. 353-366)

Page 2: Basic Counters: Part I Section 7-6 (pp. 353-366)

2

Definition• Counter is a register that goes through a

sequence of states as it is clocked• Binary counter ♦ Counts through a binary sequence

•Example: 2 bit “up” counter; a circuit with 2 FFs that goes through the

sequence of states: (00 , 01, 10, 11)2 = (0, 1, 2, 3)10

♦ n bit “up” counter counts from 0 to 2n – 1♦ n bit “down” counter counts from 2n – 1

to 0

Page 3: Basic Counters: Part I Section 7-6 (pp. 353-366)

3

Waveforms of a 2 bit Counter Counter

CP

BA

0 1 2 3 0 1

Page 4: Basic Counters: Part I Section 7-6 (pp. 353-366)

5

Synchronous Counters• Clock inputs of all FFs receive a

common clock pulse

• Change in state is determined from the present state of the counter

Page 5: Basic Counters: Part I Section 7-6 (pp. 353-366)

6

Synchronous Counter

• Count enable, EN = 0♦ counter remains in

the same state• Count enable, EN = 1♦ counter counts up

• Carry output, CO used to expand

counter(e.g. to 8 bits)

Page 6: Basic Counters: Part I Section 7-6 (pp. 353-366)

7

Arbitrary Count• Counter goes through an

arbitrary sequence• Example:

States 3 and 7 are not used

Page 7: Basic Counters: Part I Section 7-6 (pp. 353-366)

8

State Diagram of Example Arbitrary CounterAnalysis of state diagram shows:if circuit ever goes in an unused sate (011 or 111) the next clock transfers it to a valid state ( )AD A B

( )CD B C

BD C

Page 8: Basic Counters: Part I Section 7-6 (pp. 353-366)

9

Circuit of Example Arbitrary Counter

( )AD A B

( )CD B C

BD C