Professional Documents
Culture Documents
Q'
Q'
Q'
S-R Flip-flop
S-R flip-flop: on the triggering edge of the clock
pulse,
S=HIGH (and R=LOW) a SET state R=HIGH (and S=LOW) a RESET state both inputs LOW a no change both inputs HIGH a invalid
S-R Flip-flop
It comprises 3 parts:
a basic NAND latch a pulse-steering circuit a pulse transition detector (or edge detector) circuit
S-R Flip-flop
The pulse transition detector.
S CLK Pulse transition detector R Q
Q'
CLK'
CLK CLK* CLK CLK' CLK* CLK
CLK'
CLK* CLK CLK' CLK*
FLIP-FLOP TYPES
RS FLIP FLOP (Reset/Set) a.k.a. Set/Clear
S CLK R
Q Q
Most basic flip flop can be made by cross coupling NAND or NOR gates Activating Set and Reset is invalid
D CLK
Q Q
Has only a single data input and clock input Input transfers to output on clock pulse
Q T Q
Output toggles on each clock pulse Q output divides clock frequency in half
J CLK K
Q Q
Universal, can make all other flip flops Has no prohibited states
DQ FLIP-FLOP
CLK
Symbol:
D Q Q
Q NOT
EN
Truth Table:
EN 0 1 1 D X 0 1 Q* No change 0 1
C D Q
EN 0 1 1
D X 0 1
Q* No change 0 1
C D Q C D Q
C D Q
CLK
D X 0 1
Q* No change 0 1
C D Q C D Q
D Clock
Qa
Gated D Latch
Clk Q Qa
Note that the Latch, Positive Edge-triggered FF, and Negative Edge-triggered FF each have a unique symbol
Q Q
Qb Qb
Q Q
Qc
Negative Edge-triggered
Qc
D Flip-Flop
(a) Circuit
Clock
D Qa Qb Qc Gated D Latch + Edge-triggered D FF - Edge-triggered D FF
T FLIP-FLOP
Symbol:
D Q
Q T Q
CLK Q
Output toggles on each clock pulse Q output divides clock frequency in half
Truth Table:
CLK Q QO Q= QO MEANS THAT THE NEW VALUE OF Q WILL BE THE INVERSE OF THE VALUE IT HAD PRIOR TO THE NGT
T Q
Q QO
CLK
T Q
Q= QO
CLK Q MEANS THAT THE NEW VALUE OF Q WILL BE THE QO INVERSE OF THE VALUE IT HAD PRIOR TO THE NGT Q= QO MEANS THAT THE NEW VALUE OF Q WILL BE THE INVERSE OF THE VALUE IT HAD PRIOR TO THE NGT
T Flip-flop
Application: Frequency division.
High J CLK C K CLK Q CLK QA QB Q CLK High J C K QA High J C K QB
T Flip-Flop
J-K FLIP-FLOP
UNIVERSAL Flip Flop can make all others from JK (T, D and RS)
J CLK K
Q Q
The J input acts like SET, K acts like RESET No illegal state, activating both inputs causes Q to TOGGLE
J-K FLIP-FLOP
J CLOCK
Symbol:
Q NOT
J CLK K
Q Q
Truth Table:
CLK 0 1 J X X X 0 0 1 1 K X X X 0 1 0 1 Q NO CHG NO CHG NO CHG NO CHG 0 1 QO MODE HOLD HOLD HOLD HOLD RESET SET TOGGLE
J-K FLIP-FLOP
Timing Diagrams
J CLK K
CLK J 0 0 1 1
Q Q
C J K Q
K Q 0 NO CHG 1 0 1 0 1 QO
C J K Q
J-K FLIP-FLOP
Timing Diagrams
J CLK K
CLK J 0 0 1 1
Q Q
C J K
K Q 0 NO CHG 1 0 1 0 1 QO
C J K Q
C J K Q
ASYNCHRONOUS OVERRIDES
Asynchronous Inputs a.k.a. Overide Inputs operate independent of the control and clock inputs
PRE
J CLK K Q Q
PRE
CLR
CLR
CLEAR
J-K FLIP-FLOP
ASYNCHRONOUS OVERRIDES
PRE
J CLK K Q Q
CLR
PRE 1 1 0 0
CLR 1 0 1 0
Q* No effect; FF can respond to J, K, and CLK Q=0 independent of synchronous inputs Q=1 independent of synchronous inputs Ambiguous (not used)
J-K FLIP-FLOP
J Q
Clk __
K Q
Asynchronous reset
Prohibited
1
0
0
0
x
x
x
x
x
x
0
1
1
1
------------------------------------------------------------------------Hold Reset Set Toggle x = Irrelevant = H-to-L transition of clock pulse 1 1 1 1 1 1 1 1 0 0 1 1 0 1 0 1 no change 0 1 1 0
opposite
CLR
PRE 1 1 0 0
CLR 1 0 1 0
Asynchronous Inputs
A J-K flip-flop with active-LOW preset and clear
inputs.PRE
J PRE Q Pulse transition detector Q'
J C K
Q
CLK
Q'
K CLR
J = K = HIGH
Preset
Toggle
Clear