SR FF
SR FF
SR FF
01
01
R 00
1 Q settles at S R Output
10
0110 Q logic 0
Q changes 0 0 No Change Q stays at 0
Both
from outputs
1 to 0.
Q changes
settle to 0. 1. 0 1 Reset: Q changes to 0
Called
from 0 the
to
01
0 This breaks
reset
Called mode the
the Set! 1 0 Set: Q changes to 1
11
000
1 definition. This
00
1 Q mode! 1 1
condition is not Ambiguous : Not allowed!
S
allowed
Output Q and Q are by definition always opposite to each other. If Q=1 then Q =0.
Behaviour Table: Logic gates are defined by Truth Tables. Flip Flops are defined by behaviour
tables. Two different names for tables that do essentially the same job. To generate the behaviour
table you must assume an initial condition at output Q. This is necessary because the outputs are
wired to the inputs. This creates a feedback path that can only be analyzed when a starting point is
assumed.
Start
Nextwith
S,R =
S,R
0,1=:0,0
1,0
1,1 The: analysis
The analysis
procedure
procedure
worksworks
as follows:
as follows:
1-Place
1-Placethe
theinitial
initialconditions
conditionsatatoutput
outputQQononthe
thediagram.
diagram.Assume
AssumeQQ=0.
=1.
=0.
2-Place
2-Placethe
theinput
inputconditions
conditionsatatSSand
andR.R.
3-Analyze
3-Analyzethe
thetop
topNORNORgate
gateandandrecord
recordQ.Q.
4-Analyze
4-Analyzethe
thebottom
bottomNORNORgategateand
andrecord
recordQ.Q.
5-Repeat
5-Repeatsteps
steps33and and44until
untilQQand
andQQsettle.
settle.
Slide #2
Cross-coupled NOR gates create an SR Flip Flop. It is easy to remember the operation
of an SR flip flop using only the symbol without repeatedly analyzing the cross
coupled NOR gate system.
The S input is called SET the R input is called reset.
They are both active high. Active high means that S =1 sets the
10
0 S Q 10
01 Assume flip flop (S =0 does not set). R =1 resets the flip flop (R =0 does not
Output
Output
Q reset
does
reset
SETs
Q
SETs
not
reset).
starts
: :QQ
: =1.
change
:Q=1.
Qat=0.
=0.
0.
00
1 R Q 01
10 SET means set output Q to “1”.
RESET means reset output Q to “0”.
Symbol
When S =0 and R =0 then Q does not change. Q holds its logic
level (1 or 0). It is equivalent to not issuing either the set or the
:S=1
:Hold
HoldR=1
: Set
Mode
Mode: :: :
Mode reset command.
reset Mode :
When S =1 and R =1 then Q is ambiguous. Both Q and Q outputs go to the same logic level which breaks the
definition of a flip flop. You can think of it this way … S =1 says SET and R =1 says reset. The flip flop does not
know whether the output should be Q =1 or Q =0. S=R=1 should never be used!
There is a second variety of SR flip flop that uses an active low S and R inputs. The internal system is cross coupled
NAND gates. Active low means that S =0 sets the flip flop (S =1 does not set). R =0 resets the flip flop (R =1 does
not reset).
When S =1 and R =1 then Q does not change. Q holds its logic
0 level (1 or 0). It is equivalent to not issuing either the set or the
1 S Q 1 Output
0 Assume
Q doesSETs
Qnot reset command.
starts
: Qchange
=1.
at 0.
1 When S =0 and R =0 then Q is ambiguous. The flip flop does
0
1 R Q 0
1
not know whether the output should be Q =1 or Q =0. S=R=0
should never be used!
S=0 : Set Mode :
R=0
: HOLD
:resetMode
Mode: :
Slide #3
SR Flip Flop with a Positive Edge Triggered Clock Input :
A Positive EDGE triggered flip flop has a new input called clock. The clock requires a
transition from 0 to 1 in order that S and R controls output Q. Holding a constant logic 1
or a constant logic 0 at the clock input does not allow SR to change output Q.
3 to 10 nanoSec
delay.
During the 3 to 10 nanoSec interval, AND gate #1 outputs a 1. AND gates #2 and #3 transfer the logic levels to
internal SR and Q responds.
After the 3 to 10 nanoSec interval AND gate #1 outputs a 0. AND gates #2 and #3 transfer the logic 0 to
internal SR and Q holds(S=R=0 is Hold mode). To re-clock the flip flop you need another positive edge.
Clock must return to 0 and re-change back to 1.
Slide #4
SR Flip Flop with a Negative Edge Triggered Clock Input :
A negative edge triggered flip flop requires a transition from 1 to 0 at at the clock input
in order for the flip flop to respond to S and R. This is called a” Negative Edge”. It is the
opposite of a positive edge triggered flip flop.
S Q S Q S Q S Q
>Clk >Clk
R Q R Q R Q R Q
Slide #5
Note Pack 5 : Flip Flop Waveform Diagrams :
To draw waveforms for flip flops you need to begin with an initial condition at Q, mark the
area where the clock input is asserted and then draw the output response. Let’s use an
initial condition of Q =0.
The initial condition Q =0 is
marked as a dot on the output
waveform diagram.
Set The flip flop has a negative edge
triggered clock. The clock is
Reset asserted when Clk makes a
transition from 1 to 0. The
asserted zone is marked off in
Clock yellow.
Slide #6