logic design - chapter 8: counters

19
1 CHAPTER 8 Counter Circuits

Upload: gouda-mando

Post on 03-Dec-2014

763 views

Category:

Education


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Logic Design - Chapter 8: counters

1

CHAPTER 8

Counter Circuits

Page 2: Logic Design - Chapter 8: counters

2

CLASSIFICATION OF COUNTERS Asynchronous (ripple)

They use the O/P of one FF to generate the clock transition on another FF (s)

Synchronous clock inputs on each FF are connected

together

Page 3: Logic Design - Chapter 8: counters

3

CLASSIFICATION OF COUNTERS Binary

0,1,2, ….,2n –1 i- 0,1,2,3 22 states ii- 0,1,…,15 24 states

Decimal 0,1,2, …, 10n ‑ 1

i- 0,1, …. 9 10 states ii- 0,1, …99 100 states

Octal 0,1,2, .. , 8n-1

Special Any specified sequence sf states

Page 4: Logic Design - Chapter 8: counters

4

CLASSIFICATION OF COUNTERS up down up/down

Page 5: Logic Design - Chapter 8: counters

5

3-bit Asynchronous Binary counter : (Mod-8)

Page 6: Logic Design - Chapter 8: counters

6

Count sequenceQ2 Q1 Q0

0 0 0

0 0 1

0 1 0

0 1 1

1 0 0

1 0 1

1 1 0

1 1 1

Q0 toggles at each negative edge of the clock input.Q1 toggles at each negative edge of Q0

Q2 toggles at each negative edge of Q1

Page 7: Logic Design - Chapter 8: counters

7

Timing diagram of up counters

Page 8: Logic Design - Chapter 8: counters

8

DOWN COUNTERS

•To form a down – counter simply take the binary outputs from the Q’ outputs instead of the Q outputs

Page 9: Logic Design - Chapter 8: counters

9

Timing diagram of down counters

• We can alternatively get count-down counter by connecting Q’ of each stage to the negative edge triggered clock pulse of the next stage and get the output from Q output of the flip-flops

Page 10: Logic Design - Chapter 8: counters

10

DESIGN OF DIVIDE – BY – N COUNTERS

the frequency of the 22 output line is one-eighth the frequency of the input clock.

So, a MOD-8 counter can be used as a divide–by–8 frequency divider

Page 11: Logic Design - Chapter 8: counters

11

A MOD-5 Ripple Binary Counter

the number 5 will appear at the outputs for a short duration, just long enough to Reset the flip-flops. The resulting short pulse on the 20 line is called a glitch.

Page 12: Logic Design - Chapter 8: counters

12

Timing Diagram of MOD-5 Ripple Binary Counter

Any modulus counter (divide – by – N counter) can be formed by using external gating to Reset at a predetermined number.

Page 13: Logic Design - Chapter 8: counters

13

BCD RIPPLE (DECADE) COUNTER Counter with ten states in their sequence

(modulus –10) are called decade counters.

Page 14: Logic Design - Chapter 8: counters

14

3-decade decimal BCD counter

Page 15: Logic Design - Chapter 8: counters

15

SYNCHRONOUS COUNTERS

COUNT SEQUENCE FLIP-FLOPS INPUTS A3 A2 A1 A0 TA3 TA2 TA1 TA0 0 0 0 0 0 0 0 0 1 1 . . 1

0 0 0 0 1 1 1 1 0 0 . . 1

0 0 1 1 0 0 1 1 0 0 . . 1

0 1 0 1 0 1 0 1 0 1 . . 1

0 0 0 0 0 0 0 1 0 0 . . 1

0 0 0 1 0 0 0 1 0 0 . . 1

0 1 0 1 0 1 0 1 0 1 . . 1

1 1 1 1 1 1 1 1 1 1 . . 1

TA0 = 1

TA1 = A0

TA2 = A0 A1

TA3 = A0 A1 A2

Page 16: Logic Design - Chapter 8: counters

16

SYNCHRONOUS COUNTERS We can conclude from the excitation table (using

a Karnauph map or by inspection that TA0 = 1 TA1 = A0 TA2 = A0 A1 TA3 = A0 A1 A2

Page 17: Logic Design - Chapter 8: counters

17

Synchronous Counter Using J-K

Page 18: Logic Design - Chapter 8: counters

18

SYNCHRONOUS BINARY DOWN-COUNTER The only change is that the Q outputs are used as inputs to

the T (or J–K) input of the next flip-flop.

Page 19: Logic Design - Chapter 8: counters

19

UP/DOWN SYNCHRONOUS COUNTERS