1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches...

55
1 Chapter 8 Flip-Flops and Related Devices

Transcript of 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches...

Page 1: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

1

Chapter 8

Flip-Flops and Related Devices

Page 2: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

2

Figure 8--1 Two versions of SET-RESET (S-R) latches

S-R (Set-Reset) Latch

Page 3: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

3

Figure 8--2 Negative-OR equivalent of the NAND gate S-R latch in Figure 8-1(b).

Page 4: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

4

Figure 8--3 The three modes of basic S-R latch operation (SET, RESET, no-change) and the invalid condition.

Page 5: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

5

Page 6: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

6

Page 7: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

7

Page 8: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

8

Figure 8--4 Logic symbols for the S-R and S-R latch.

Page 9: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

9

Figure 8-5 : Example 8-1

Page 10: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

10

Figure 8--6 The S-R latch used to eliminate switch contact bounce.

Application Example

Page 11: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

11

Figure 8--7 The 74LS279 quad S-R latch.

Page 12: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

12

Figure 8--8 A gated S-R latch.

Gated S-R Latch

Page 13: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

13

Figure 8--9 : Example 8-2

Page 14: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

14

Figure 8--10 A gated D latch.

Gated D Latch

Page 15: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

15

Figure 8—11 : Example 8-3

Page 16: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

16

Figure 8--12 The 74LS75 quad gated D latches.

Page 17: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

17Figure 8--13 Edge-triggered flip-flop logic symbols (top: positive edge-triggered; bottom: negative

edge-triggered).

Edge-Triggered Flip-Flops

Page 18: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

18Figure 8--14 Operation of a positive edge-triggered S-R flip-flop.

Page 19: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

19

Page 20: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

20

Figure 8--15 : Example 8-4 Determine output waveform

Page 21: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

21

Figure 8--16

Page 22: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

22Figure 8--17 Edge triggering.

Page 23: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

23

Figure 8--18 Flip-flop making a transition from the RESET state to the SET state on the positive-going edge of the clock pulse.

Page 24: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

24

Figure 8--19 Flip-flop making a transition from the SET state to the RESET state on the positive-going edge of the clock pulse.

Page 25: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

25

Figure 8--20 A positive edge-triggered D flip-flop formed with an S-R flip-flop and an inverter.

Page 26: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

26

Page 27: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

27

Figure 8--21 : Example 8-5

Page 28: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

28

Figure 8--22 A simplified logic diagram for a positive edge-triggered J-K flip-flop.

Page 29: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

29

Figure 8--23 Transitions illustrating the toggle operation when J =1 and K = 1.

Page 30: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

30

Page 31: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

31

Figure 8--24 : Example 8-6

Page 32: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

32

Figure 8--25 : Example 8-7

Page 33: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

33

Figure 8--26 Logic symbol for a J-K flip-flop with active-LOW preset and clear inputs.

Page 34: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

34

Figure 8--27 Logic diagram for a basic J-K flip-flop with active-LOW preset and clear inputs.

Page 35: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

35

Figure 8--28 Example 8-8

Page 36: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

36

Figure 8--29 Logic symbols for the 74AHC74 dual positive edge-triggered D flip-flops.

Page 37: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

37

Figure 8--30 Logic symbols for the 74HC112 dual negative edge-triggered J-K flip-flops.

Page 38: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

38

Figure 8—31 : Example 8-9

Page 39: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

39

Figure 8--32 Basic logic diagram for a master-slave J-K flip-flop.

Master-Slave Flip-Flops

Page 40: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

40

Page 41: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

41

Figure 8--33 Pulse-triggered (master-slave) J-K flip-flop logic symbols.

Page 42: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

42

Figure 8--34 : Example 8-10

Page 43: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

43

Figure 8--35 Propagation delays, clock to output.

Flip-Flop Operating Characteristics

Page 44: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

44

Figure 8--36 Propagation delays, preset input to output and clear input to output.

Page 45: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

45

Figure 8--37 Set-up time (ts). The logic level must be present on the D input for a time equal to or greater than ts before the triggering edge of the clock pulse for reliable data entry.

Page 46: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

46

Figure 8--38 Hold time (th). The logic level must remain on the D input for a time equal to or greater than th after the triggering edge of the clock pulse for reliable data entry.

Page 47: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

47

Page 48: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

48

Figure 8--39 Example of flip-flops used in a basic register for parallel

data storage.

Flip-Flop Application

Parallel Data Storage

Page 49: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

49

Figure 8--40 The J-K flip-flop as a divide-by-2 device. Q is one-half the frequency of CLK.

Application: Frequency Division

Page 50: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

50

Figure 8--41 Example of two J-K flip-flops used to divide the clock frequency by 4. QA is one-half and QB is one-fourth the frequency of CLK.

Page 51: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

51

Figure 8--42 : Example 8-11

Page 52: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

52

Figure 8--43

Page 53: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

53Figure 8--44 Flip-flops used to generate a binary count sequence. Two repetitions (00, 01,

10, 11) are shown.

Application: Counting

Page 54: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

54

Figure 8--45 : Example 8-12

Page 55: 1 Chapter 8 Flip-Flops and Related Devices. 2 Figure 8--1 Two versions of SET-RESET (S-R) latches S-R (Set-Reset) Latch.

55

Figure 8--46