Digital Electronics
Clock
.
.
Combinational
Logic Gates
.
.
Outputs
Memory
Elements
(Flip-Flops)
CLK
CLK
Q
: Rising Edge of Clock
Q=D=0
Q=D=0
No Change
Q=D=1
Q=D=1
No Change
Q=D=0
Q=D=0
No Change
Q
D
CLK
CLK
Q0
No Change
Clear
Set
Q0
Toggle
Q
CLK
TOGGLE
TOGGLE
CLEAR
NO
CHANGE
SET
NO
CHANGE
Q
J
K
CLK
Clock Edges
Positive Edge Transition
1
0
1
0
CLK
CLK
Q
: Rising Edge of Clock
CLK
CLK
Q
: Falling Edge of Clock
Q
CLK
CLK
Q0
Q0
Q
CLK
CLK
Q0
Q0
10
Flip-Flop Timing
Data Input
(D,J, or K)
Positive
Edge
Clock
1
0
tS
tH
Setup Time
Hold Time
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.
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
Asynchronous Inputs
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:
Q 1 & Q 0
The Clear (CLR) input forces the output to:
PR
D
CLK
CLR
Q 0 & Q 1
PR
CLR
CLK
PRESET
CLEAR
CLOCK
DATA
Asynchronous Preset
Asynchronous Clear
ILLEGAL CONDITION
12
Q=D=0
Clocked
Clocked
Q=D=0
Clocked
Q=D=1
Q=D=1
Clocked
Clocked
Q=D=0
Clocked
Q
PR
Q=1
Q=1
Preset
Preset
Q=0
Clear
CLR
D
CLK
13
Transparent D-Latch
EN
EN
Q0
Q0
EN: Enable
14
Transparent
Q=D
Latched
Q=1
Transparent
Q=D
Latched
Q=0
Transparent
Q=D
Q
D
EN
15
16
74LS74: D Flip-Flop
18
19
74LS75: D Latch
20