Transcript
Page 1: Logic Design - Chapter 6: Flip Flops

Sequential Logic and Flip-Flops

Page 2: Logic Design - Chapter 6: Flip Flops

SEQUENTIAL CIRCUITS AND FEEDBACK

Page 3: Logic Design - Chapter 6: Flip Flops

SET- RESET (S-R) LATCHES : Cross- NOR S-R latch ( active high ) Cross- NAND S-R latch ( active low )

Page 4: Logic Design - Chapter 6: Flip Flops

Cross-NOR S-R latch ( active high )

Page 5: Logic Design - Chapter 6: Flip Flops

truth table of the NOR gate AB(A + B)’

001

010

100

110

if any of the inputs of the NOR gate is high (logic 1), the output is low (logic 0)

Page 6: Logic Design - Chapter 6: Flip Flops

No-Change condition in S-R latch

Page 7: Logic Design - Chapter 6: Flip Flops

Forbidden condition in S-R latch

Page 8: Logic Design - Chapter 6: Flip Flops

function table of the NOR S-R latch

RSQQ’Comments

00QQ’No change ( hold ) condition

0110Set

1001Reset

1100Forbidden, Not used , race

Page 9: Logic Design - Chapter 6: Flip Flops

the race situation If we go from SR = 11 to SR = 00, then we may have two

cases. Case 1: R changes first: SR = 10 then SR = 00 Case 2: S changes first: SR = 01 then SR = 00

1

1

0

Page 10: Logic Design - Chapter 6: Flip Flops

Cross- NAND S-R latch ( active low ) – S’-R’ The truth table of NAND gate

Page 11: Logic Design - Chapter 6: Flip Flops
Page 12: Logic Design - Chapter 6: Flip Flops

Functions table of the NAND latch .

Page 13: Logic Design - Chapter 6: Flip Flops

S – R Timing Analysis

Page 14: Logic Design - Chapter 6: Flip Flops

EXAMPLE If the S and R waveforms shown in Fig (11.a) are applied to

the inputs of the NOR latch, determine the waveform that will be applied on the Q output. Assume that Q is initially low.

Page 15: Logic Design - Chapter 6: Flip Flops

Switch Debouncing Circuits Switch bounce occurs as a mechanical switch lever snaps to a

new position. After reaching the new contact point, the pole bounces on a micrometer scale of millisecond duration (Fig (12)). Bounce can cause problems in circuits that are expecting an input to stabilize without oscillating, such as counters.

Page 16: Logic Design - Chapter 6: Flip Flops

Debouncing using S’-R’ latch

When the switch is neither connected to the lower pin nor to the upper pin, both S’ and R’ equal + 5v ( Logic 1 ) and the latch is in the no change state .

Page 17: Logic Design - Chapter 6: Flip Flops

Debouncing using S’-R’ latch (cont.)

Page 18: Logic Design - Chapter 6: Flip Flops

Clocked SR latches ( flip – flops )

Page 19: Logic Design - Chapter 6: Flip Flops

clocked (gated) latch using cross – NAND gates

Page 20: Logic Design - Chapter 6: Flip Flops

Function table of gated S-R flip – flop

Page 21: Logic Design - Chapter 6: Flip Flops

EXAMPLE Determine the Q output waveform if the inputs

shown in Fig (17-a) are applied to a clocked (gated) S-R latch that is initially RESET.

Page 22: Logic Design - Chapter 6: Flip Flops

GATED D- latch

Page 23: Logic Design - Chapter 6: Flip Flops

EXAMPLE Sketch the output waveform at Q for the inputs at

D and G of the gated D latch in Fig (20).

Page 24: Logic Design - Chapter 6: Flip Flops

EXAMPLE Construct a D flip-flop using NOR and AND

gates.

Page 25: Logic Design - Chapter 6: Flip Flops

J–K FLIP – FLOPS

Page 26: Logic Design - Chapter 6: Flip Flops

J–K FLIP – FLOPS

Page 27: Logic Design - Chapter 6: Flip Flops
Page 28: Logic Design - Chapter 6: Flip Flops

T. (TOGGLE) FLIP–FLOP

Page 29: Logic Design - Chapter 6: Flip Flops

Race problem in level-clocked J-K flip-flop

Page 30: Logic Design - Chapter 6: Flip Flops

Clock edge and level edge – triggered FFs Master – slave FFs .

Page 31: Logic Design - Chapter 6: Flip Flops

MASTER – SLAVE FLIP-FLOPS

Page 32: Logic Design - Chapter 6: Flip Flops

Timing diagram of a master-slave FF

Page 33: Logic Design - Chapter 6: Flip Flops

EDGE – TRIGGERED J K FFS

+ve edge triggered -ve edge triggered

Page 34: Logic Design - Chapter 6: Flip Flops

EXAMPLE Determine the Q

output waveform if the inputs shown in Fig (32) are applied to a clocked S-R flip-flop that is initially RESET. The flip-flop is triggered at the positive edge.

Page 35: Logic Design - Chapter 6: Flip Flops

MASTER-SLAVE FLIP-FLOP AND 1S CATCHING

Page 36: Logic Design - Chapter 6: Flip Flops

DIRECT ( ASYNCHRONOUS ) INPUTS

Page 37: Logic Design - Chapter 6: Flip Flops

FLIP- FLOP OPERATING CHARACTERISTICS Propagation Delay times:

SET-UP TIME HOLD TIME

Page 38: Logic Design - Chapter 6: Flip Flops

Propagation Delay times:

Page 39: Logic Design - Chapter 6: Flip Flops

Propagation Delay times:

Page 40: Logic Design - Chapter 6: Flip Flops

SET-UP TIME

Page 41: Logic Design - Chapter 6: Flip Flops

HOLD TIME


Recommended