Lecture 5P1
Lecture 5P1
b Q
b
Q
S
Latches
SR Latch
The symbol and truth table of the SR latch are shown
Row S R 𝑸+ 𝑸+ S Q
no.
0 0 0 𝑄 𝑄
1 0 1 0 1
R Q
2 1 0 1 0
3 1 1 0 0* Third row is invalid
𝑄 and 𝑄 represent the state of latch when the inputs are applied.
𝑄 represent the present state of the latch while 𝑄 + and 𝑄 + denotes
the response of the output to the input applied.
Latches
SR Latch
When 𝑆 = 𝑅 = 0, assume When 𝑆 = 𝑅 = 0, assume
that 𝑄 = 0 and 𝑄 = 1 that 𝑄 = 1 and 𝑄 = 0
R 0 0 Q R 0 1 Q
1 0
0 1
1 Q 0 Q
S S
0 0
Latches
SR Latch
When S=1, and R=0.
𝑄 =1
𝑄=0
R 0 Q R 0 Q
0 1 11
1 0 00
0 1 11
Q Q
S
S
1 0 00
1 1
Latches
SR Latch
Let the inputs be S=0, R=1.
𝑄=0 𝑄 =1
R 1 Q R 1 Q
00 1 0
11 0 1
00 1 0
Q Q
S S
11 0 1
0 0
Latches
SR Latch
Now let S=R=1 , the logic conditions of the latch is shown
below
R 1 Q R 1 Q
1 0 00 00 1 0
00 Q 1 0
S Q
S
1 1 0 00
1
2 1 0 0 1
R Q
Q 3 1 1 𝑄 𝑄
S𝑅
A NAND gate-based SR Latch is an active LOW latch- i.e., it is set or reset with a LOW logic
Latches
𝑆𝑅 Latch
If the S’ and R’ waveform in figure below are applied to
the inputs of the latch, determine the waveform that will
be observed on the Q output. Assume that Q is initially
low
Latches
Gated SR Latch
Inputs which cause a response only synchronous with enable or
clock input are called synchronous inputs.
A gated SR latch has synchronous inputs S and R along with clock
or enable input E and is constructed as shown in figures below
A NAND gate-based SR Latch is now an active HIGH latch- i.e., it is set or reset with a HIGH logic
Latches
Gated SR Latch
The symbol and truth table of gated SR latch are shown
below
S R E 𝑸+ 𝑸+
S Q
0 0 1 𝑄 𝑄
0 1 1 0 1 C𝐸
1 0 1 1 0
R Q
1 1 1 0 0*
X X 0 𝑄 𝑄
Latches
Gated SR Latch
S Q
C𝐸
R Q
Latches
Gated SR Latch
S Q
C𝐸
R Q
Latches
Gated D Latch
The very structure of a D latch avoids the S=R=1
condition
D
X
Q
C𝐸
Q
Y
Latches
Gated D Latch
The symbol and truth table are shown in figure below
D E 𝑸+ 𝑸+
D Q
0 1 0 1
1 1 1 0
Q X 0 𝑄 𝑄
C𝐸