Documente Academic
Documente Profesional
Documente Cultură
Flip-Flops
Objectives:
Given input logice levels, state the output of an RS
LOGIC CIRCUITS
Logic circuits are classified into two groups:
Combinational logic circuits
Basic building blocks include:
Logic gates make decisions
FLIP-FLOPS
Memory device capable of storing one bit
S R
Q Q
Memory means circuit remains in one state after condition that caused the state is removed. Two outputs designated Q and Q-Not that are always opposite or complimentary. When referring to the state of a flip flop, referring to the state of the Q output.
FLIP-FLOPS
SET RESET
Symbol
S R
R 0 0 1 1
Q Q
MODE Q Invalid RESET Q=0 Q=1 SET No change
Truth Table
S 0 1 0 1
FLIP-FLOPS
5V +V
OUTPUT Q
NPN
1k 1k 1k 1k 1k 1k
1k
OUTPUT NOT Q
NPN
1k
set input
reset input
The flip flop is a bi-stable multivibrator; it has two stable states. The RS flip flop can be implemented with transistors.
R-S FLIP-FLOP
Symbols:
Set S FF R Q Q Normal
Reset
Complementary
Truth Table:
Mode of Operation Prohibited Set Reset Hold Inputs S R 0 0 1 1 0 1 0 1 Outputs Q Q 1 1 0 Q 1 0 1 Q
Q NOT
RESET
7400
Q NOT
RESET
Q Q
R S Q
Q R S Q R S Q
R Latch
Q Q
S R
Q Q
ET
Q Q
Q S Q R
QS Q
R
Q Q
SET
S S 0 0 1 1 0 1 0 1
R 0 0 1 1
TIMING DIAGRAMS
R S Q R S Q R S Q
TEST
Memory 1. Logic gates make decisions, flip flops have ____________________?
2. One flip flop can store how many bits? 3. What are the two outputs of a flip flop?
1 Q Q-NOT
4. When referring to the state of a flip flop, were referring to the state of which output?
Q Q=1 Q=0
5. What does it mean to SET a flip flop? 6. What does it mean to RESET a flip flop?
TEST
What is the mode of operation of the R-S flip-flop (set, reset or hold)? What is the output at Q from the R-S flip-flop (active LOW inputs)?
L H
?High
Mode of operation =
Set ?
H H
?High
Mode of operation =
Hold ?
H L
? Low
Mode of operation = ? Reset
Set
S
FF Q
Set
S Clock
FF Q Q
ASYNCHRONOUS Outputs of logic circuit can change state anytime one or more input changes
SYNCHRONOUS Clock signal determines exact time at which any output can change state
A clocked flip flop changes state only when permitted by the clock signal
TRIGGERING OF FLIP-FLOPS
Level-triggering is the transfer of data from input to output of a flip-flop anytime the clock pulse is proper voltage level. Edge-triggering is the transfer of data from input to output of a flip-flop on the rising edge (L-to-H) or falling edge (H-to-L) of the clock pulse. Edge triggering may be either positive-edge (L-to-H) or negative-edge (H-to-L).
PGT-Positive Going Transition Positive-edge triggering NGT-Negative Going Transition Negative-edge triggering
H time L
Level triggering
Reset
Truth Table:
Mode of operation Hold Reset Set Prohibited Clk Inputs S R 0 0 1 1 0 1 0 1 Outputs Q Q no change 0 1 1 0 0 0
TEST
What is the mode of operation of the clocked R-S flip-flop (set, reset, hold)? What is the output at Q from the clocked R-S flip-flop (active HIGH inputs)?
H ^ L
L ^ L
High ?
Mode of operation = ?Hold
L
^ H
S C R
S X 0 1 0 1
Q
Q No change No change 1 0 Illegal
S 0 1 0 1
R 0 C 0 1 R 1
S Q C R S Q
Q Q
S C R
S 0 1 0 1
R C 0 0 R 1 1 S
Q
CLOCK
Q NOT
RESET
S CLK R
Q Q
Truth Table:
CLK 0 1
R X X X 0 0 1 1
S X X X 0 1 0 1
C R
Q
CLK
R 0 0 1 1
S 0 1 0 1
S Q
CLOCK
EDGE DETECTOR
Q NOT
S CLK R
Q Q
RESET
Truth Table:
CLK 0 1
R X X X 0 0 1 1
S X X X 0 1 0 1
C R
Q
CLK
R 0 0 1 1
S 0 1 0 1
S Q
TEST
1. Type of flip flop where the outputs of circuit can change state anytime one or more input changes? ASYNCHRONOUS
2. Type of flip flop where the clock signal controls when any output can change state? SYNCHRONOUS
3. What do we call a digital signal in the form of a repetitive pulse or square wave? CLOCK 4. Which is easier to design and troubleshoot, clocked or not clocked flip flops? Clocked flip flops are easier to troubleshoot because we can stop the clock and examine one set of input and output conditions.