• No results found

FlipFlopsLatches.ppt

N/A
N/A
Protected

Academic year: 2020

Share "FlipFlopsLatches.ppt"

Copied!
20
0
0

Loading.... (view fulltext now)

Full text

(1)

Digital Electronics

(2)

Flip-Flops & Latches

2

This presentation will

• 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.

(3)

Sequential Logic & The Flip-Flop

3

Combinational Logic Gates .

.

Inputs Outputs

Memory Elements (Flip-Flops)

. .

(4)

D Flip-Flop: Excitation Table

4

Q CLK

D Q

D CLK

0  0 1

1  1 0

 : Rising Edge of Clock

(5)

D Flip-Flop: Example Timing

5

Q

D

CLK

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

No Change

Q=D=0

No Change

Q=D=0

No Change

(6)

J/K Flip-Flop: Excitation Table

6

J K CLK

0 0  No Change

0 1  0 Clear

1 0  1 Set

1 1  Toggle

 : Rising Edge of Clock

(7)

J/K Flip-Flop: Example Timing

7

Q

J

K

CLK

SET TOGGLE CLEAR

NO CHANGE TOGGLE

(8)

Clock Edges

8

1

0

1

0

Positive Edge Transition

(9)

POS & NEG Edge Triggered D

9 Q CLK D Q D CLK

0  0 1

1  1 0

 : Rising Edge of Clock

Q Q

D CLK

0  0 1

1  1 0

 : Falling Edge of Clock

Q Q

Q CLK

D Q

Positive Edge Trigger

(10)

POS & NEG Edge Triggered J/K

10

Positive Edge Trigger

Negative Edge Trigger

Q K J Q CLK Q K J Q CLK

J K CLK

0 0 

0 1  0

1 0  1

1 1 

 : Rising Edge of Clock

Q

0

Q

0

Q

J K CLK

0 0 

0 1  0

1 0  1

1 1 

 : Rising Edge of Clock

Q

0

Q

0

(11)

Flip-Flop Timing

11

Data Input (D,J, or K)

1

0

t

S

Setup Time

t

H

Hold Time

Positive Edge Clock

1

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.

(12)

12 PR PRESET CLR CLEAR CLK CLOCK D 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

Q CLK D Q PR CLR

Asynchronous Inputs

Q Q

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

The Preset (PR) input forces the output to:

The Clear (CLR) input forces the output to:

0 Q & 1

Q  

1 Q & 0

(13)

D Flip-Flop: PR & CLR Timing

13 Q PR CLR D CLK Q=1 Preset Q=D=0

Clocked Q=D=0Clocked

(14)

Transparent D-Latch

14

Q EN

D Q

EN D

0 X

1 0 0 1

1 1 1 0

Q Q

0

Q

0

Q

(15)

Transparent D-Latch: Example Timing

15

Q

D

EN

“Latched” Q=0

“Latched” Q=1

“Latched” Q=0 “Transparent”

(16)

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.

(17)

Flip-Flops & Latches

17

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

(18)

74LS74: D Flip-Flop

(19)

74LS76: J/K Flip-Flop

(20)

74LS75: D Latch

References

Related documents

Flip-Flops respond to input changes only during the change in clock signal (the rising edge or the falling edge). They are easy to work with though more expensive

In Zhang et al [1], a modified zeolite was used for the elimination of dimethyl phthalate from aqueous solutions and the effect of various parameters such as

For estimating the model, first we used Pesaran cross-sectional dependency test, after that we used Pesaran CADF unit root test, and then we used Westerlund panel cointegration

Since then his research has looked at the role and infl uence of transnational non-state actors in transatlantic relations, and he has published widely on these topics in

The purpose of this analysis is to sift through given examples the moment when a company needs factoring, to analyze the gap of liquidity and also, through an econometric model

We conducted this study in patients who underwent endoscopic cartilage myringoplasty with COM mucosal type disease and we had evaluated the health related

что износ вагонов значительно зависит ещё и от степени их загрузки , а так же от скорости их движения.. До недавних пор не было

• Why: To showcase foreign investment opportunities in New York (like START-UP NY), and connect a wider foreign investment audience with New York’s local community leaders