Chapter 5

23
CHAPTER 5 Sequential Circuits & Flip-Flops 1. Objectives Upon completion of this chapter, student should be able to: Describe the operation and use of latch and flip-flops (S R, D, J K) Draw the flip-flops logic symbol. Draw timing diagram based on flip-flop operation. Recognize the difference between a latch and a flip- flop. Understand the flip-flops operating characteristics Apply flip-flops in basic applications. 1

Transcript of Chapter 5

Page 1: Chapter 5

CHAPTER 5Sequential Circuits & Flip-Flops

1. Objectives

Upon completion of this chapter, student should be able to:

Describe the operation and use of latch and flip-flops (S R, D, J K)

Draw the flip-flops logic symbol.Draw timing diagram based on flip-flop

operation.Recognize the difference between a

latch and a flip-flop.Understand the flip-flops operating

characteristicsApply flip-flops in basic applications.

2. Sequential Circuits

Combinational – output depends only on the input.

Do not have memoryCannot store state

1

Page 2: Chapter 5

Sequential – output depends on input and past behavior.

Require use of storage elements.Contents of storage elements are

called state.Circuit goes through sequence of

states as a result of changes in inputs.

Figure 1

2.1 Sequential Circuits Types

a) Synchronous State changes synchronized by one

or more clocks Easier to analyze because can

factor out gate delays Set clock so changes allowed to

occur before next clock pulse

2

Page 3: Chapter 5

b)Asynchronous Changes occur independently Potentially faster Harder to analyze

3. Simple Memory Elements

Figure 2

A simple memory element: feedback will hold value

3

Page 4: Chapter 5

Figure 3

A memory element with NOR gates:Use Set/Reset to change stored value

4. Latch Used in computer system for

multiplexing data Latch is a type of temporary storage

device that has two states.

4.1 SR Latch

Two versions of SET-RESET (S-R) latches.a) Active HIGH input S-R latch

(NOR gate latch)

4

Page 5: Chapter 5

Logic diagram:

Truth table

Graphical symbol

Set

Reset

Output

Function

0 0 Qo No change0 1 0 Reset1 0 1 Set1 1 ? Not

allowed

5

Page 6: Chapter 5

b) Active LOW input latch (NAND gate latch)

Graphical symbol and logic diagram

Truth table

6

Page 7: Chapter 5

Example 1:

5. a) Gated SR Latch Gated latch requires an enable

input, EN.Logic diagram and graphical symbol for a gated S-R latch

7

Page 8: Chapter 5

Example 2

b) Gated D Latch

It differs from the S-R latch because it has only one input in addition to EN.

No illegal state. This input is called the D (Data)

input

8

Page 9: Chapter 5

Logic diagram, graphical symbol and timing diagram for gated D latch.

6. Edge-Triggered Flip-Flops

Synchronous input Change state either at positive edge

or negative edge of a clock pulse.

3 types of edge triggered flip-flops S-R flip flop

9

Page 10: Chapter 5

D flip-flop J-K flip-flop

Symbols – Edge-Triggered

6.1 Edge triggered S-R flip-flop

Graphical diagram for +ve edge triggered S-R ff

10

Page 11: Chapter 5

Truth table for a +ve edge triggered S-R ff

Timing diagram

11

Page 12: Chapter 5

Edge-triggering-pulse transition detector, produces a very short-duration spike during the transition of the clock pulse.

12

Page 13: Chapter 5

6.2.Edge triggered D Flip-Flop

Graphical diagram and truth table

Timing diagram

13

Page 14: Chapter 5

6.3 Edge triggered JK Flip-Flop

Graphical symbol

14

Page 15: Chapter 5

Truth table

Timing diagram

15

Page 16: Chapter 5

7. Asynchronous Inputs

Most IC ff also has asynchronous inputs.

State of the flip-flop change independent of the clock

They are normally labeled preset (PRE) and clear (CLR)

8. Flip-Flop Operating Characteristics • Propagation delay times• Set-up time• Hold time• Maximum clock frequency• Pulse widths• Power dissipation

16

Page 17: Chapter 5

9. Flip-Flop Applications

Parallel data storage

17

Page 18: Chapter 5

Frequency division•

18

Page 19: Chapter 5

Counting

19