0% found this document useful (0 votes)
175 views20 pages

De 311 Sequential Logic D FlipFlop JK FlipFlop

Uploaded by

Jo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
175 views20 pages

De 311 Sequential Logic D FlipFlop JK FlipFlop

Uploaded by

Jo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 20

Flip-Flops and Latches

PLTW Engineering

Digital Electronics
Activity 3.1.1 Sequential Logic D Flip-Flop and JK Flip-Flop

1 Copyright 2021. Project Lead The Way, Inc.


Flip-Flops and Latches
Presentation topics:
Review sequential logic and the flip-flop
Introduce the D flip-flop and provide an excitation table
and a sample timing analysis
Introduce the J/K flip-flop and provide an excitation table
and a sample timing analysis
Review flip-flop clock parameters
Introduce the transparent D-latch
Discuss flip-flop asynchronous inputs

2 Copyright 2021. Project Lead The Way, Inc.


Sequential Logic & The Flip-Flop

Inputs . . Outputs
. Combinational .
Logic Gates

Memory Elements
(Flip-Flops)
Clock

3 Copyright 2021. Project Lead The Way, Inc.


D Flip-Flop: Excitation Table

D CLK Q Q
D Q
0  0 1
1  1 0
CLK Q
 : Rising Edge of Clock

4 Copyright 2021. Project Lead The Way, Inc.


D Flip-Flop: Example Timing

Q=D=1 Q=D=0 Q=D=0 Q=D=1 Q=D=1 Q=D=0 Q=D=0


No Change No Change No Change

CL
K

5 Copyright 2021. Project Lead The Way, Inc.


J/K Flip-Flop: Excitation Table

J K CLK Q
J Q
0 0  Q0 No Change
CLK
0 1  0 Clear
K Q
1 0  1 Set

1 1  Q0 Toggle

 : Rising Edge of Clock


Q : Complement of Q

6 Copyright 2021. Project Lead The Way, Inc.


J/K Flip-Flop: Example Timing

NO NO
SET TOGGLE TOGGLE CLEAR CHANGE SET CHANGE
Q

CL
K

7 Copyright 2021. Project Lead The Way, Inc.


Clock Edges

Rising Edge
Positive Edge Transition

Falling Edge
Negative Edge Transition

8 Copyright 2021. Project Lead The Way, Inc.


POS & NEG Edge Triggered D
Positive Edge Trigger
D CLK Q Q
D Q
0  0 1
1  1 0
CLK Q
 : Rising Edge of Clock

Negative Edge Trigger


D CLK Q Q
D Q
0  0 1
1  1 0
CLK Q
 : Falling Edge of Clock

9 Copyright 2021. Project Lead The Way, Inc.


POS & NEG Edge Triggered J/K
Positive Edge Trigger
J K CLK Q
J Q 0 0  Q0

CLK
0 1  0
1 0  1
K Q
1 1  Q0
 : Rising Edge of Clock
Negative Edge Trigger
J K CLK Q
J Q 0 0  Q0

CLK
0 1  0
1 0  1
K Q
1 1  Q0
 : Falling Edge of Clock

10 Copyright 2021. Project Lead The Way, Inc.


Flip-Flop Timing
1
Data Input
(D,J, or K)
0

tS tH
Setup Time Hold Time
Positive 1
Edge
Clock 0

Setup Time (tS): The time interval before the active transition of the clock signal
during which the data input (D, J, or K) must be maintained.

Hold Time (tH): The time interval after the active transition of the clock signal
during which the data input (D, J, or K) must be maintained.

11 Copyright 2021. Project Lead The Way, Inc.


Asynchronous Inputs
Asynchronous inputs (Preset & Clear) are used to
override the clock/data inputs and force the outputs to a
predefined state. PR

The Preset (PR) input forces the output to: D Q

Q 1 & Q  0
The Clear (CLR) input forces the output to: CLK Q
CLR
Q  0 & Q 1
PR CLR CLK D Q Q
PRESET CLEAR CLOCK DATA

1 1  0 0 1
1 1  1 1 0
0 1 X X 1 0 Asynchronous Preset
1 0 X X 0 1 Asynchronous Clear
0 0 X X 1 1 ILLEGAL CONDITION

12 Copyright 2021. Project Lead The Way, Inc.


D Flip-Flop: PR & CLR Timing

Q=D=1 Q=D=0 Q=D=0 Q=D=1 Q=D=1 Q=D=0


Clocked Clocked Clocked Clocked Clocked Clocked

Q
Q=1 Q=1
Preset Preset

PR Q=0
Clear

CLR

CLK

13 Copyright 2021. Project Lead The Way, Inc.


Transparent D-Latch

EN D Q Q
D Q Q0
0 X Q0

1 0 0 1
EN Q 1 1 1 0

EN: Enable

14 Copyright 2021. Project Lead The Way, Inc.


Transparent D-Latch: Example

“Latched” “Transparent” “Latched” “Transparent” “Latched” “Transparent”


Q=0 Q=D Q=1 Q=D Q=0 Q=D

EN

15 Copyright 2021. Project Lead The Way, Inc.


Flip-Flop Vs. Latch
The primary difference between a D flip-flop and D latch is
the EN/CLOCK input
The flip-flop’s CLOCK input is edge sensitive, meaning the
flip-flop’s output changes on the edge (rising or falling) of the
CLOCK input
The latch’s EN input is level sensitive, meaning the latch’s
output changes on the level (high or low) of the EN input

16 Copyright 2021. Project Lead The Way, Inc.


Flip-Flops and Latches

74LS74
Dual Positive-Edge-Triggered D Flip-Flops with
Preset, Clear, and Complementary Outputs

74LS76
Dual Negative-Edge-Triggered J-K Flip-Flops with
Preset, Clear, and Complementary Outputs

74LS75
Quad Latch

17 Copyright 2021. Project Lead The Way, Inc.


74LS74: D Flip-Flop

18 Copyright 2021. Project Lead The Way, Inc.


74LS76: J/K Flip-Flop

19 Copyright 2021. Project Lead The Way, Inc.


74LS75: D Latch

20 Copyright 2021. Project Lead The Way, Inc.

You might also like