Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Flip-Flops
Objectives:
Given input logic 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
SEQUENTIAL DEVICES
Memory device capable of storing one bit
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.
S R
Q Q
FLIP-FLOPS/LATCHES
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
R-S LATCH
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
SET 7400
Q NOT
RESET
7400
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
TEST
1. Logic gates make decisions, SEQUENTIAL DEVICES have_______?
Memory
2. One flip flop or latch can store how many bits?
1
3. What are the two outputs of a flip flop and latch?
Q Q-NOT
4. When referring to the state of a sequential device, were referring to the state of which output? 5. What does it mean to SET a device? 6. What does it mean to RESET a device?
Q Q=1 Q=0
TEST
What is the mode of operation of the R-S LATCH (set, reset or hold)? What is the output at Q from the R-S LATCH (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
Level-triggering is the transfer of data from input to output of a latch 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
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 device where the outputs of circuit can change state anytime one or more input changes? LATCH (asynchronous)
2. Type of flip flop where the clock signal controls when any output can change state? Flip Flop (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.