The S-R Latch (Quickstart Tutorial)


The S-R latch is a key circuit in digital storage models. On this tutorial, you’ll study the way it works, its reality desk, and methods to construct one with totally different logic gates.

S-R Latch Symbol
S-R Latch Image

What’s an S-R Latch?

Earlier than beginning with the S-R latch you should know what a latch is. A latch is an asynchronous circuit (it doesn’t require a clock sign to work), and it has two steady states, HIGH (“1”) and LOW (“0”), that can be utilized for storing binary knowledge. Many sequential circuits and bigger storage units, reminiscent of shift registers, use latches as their principal constructing block.

The only latch is the Set-Reset (S-R) latch. You’ll be able to construct one by connecting two NOR gates with a cross-feedback loop.

Schematic of S-R Latch with NOR gates
S-R Latch with NOR gates

This suggestions path is essential to storing one bit of knowledge so long as the circuit is powered. On this circuit, the higher gate has the S enter and the primary output Q, whereas the decrease gate has the R enter and the inverted output Q̅.

How does the S-R Latch work?

To start with, let’s outline the reality desk of the S-R latch:

Enter S Enter R Output Q
0 0 Earlier State
0 1 0
1 0 1
1 1 0 (Invalid)
S-R Latch reality desk

Now, let’s analyze how the S-R latch works utilizing its reality desk and its circuit with NOR gates. Do not forget that the NOR gate solely provides “1” when each inputs are “0”, with another enter mixture the output is “0”.

You’ll be able to see within the reality desk that when each inputs S and R are equal to “0”, the output Q stays the identical because it was. That is the reminiscence perform of the S-R latch as a result of it saves the earlier worth. Suppose the Q output is “1” within the current state. In the event you now place each inputs in “0”, then the output will stay “1” as follows:

S-R latch with NOR gates case 1

Then, how would you “Reset” the Q output to “0”? Properly, as you’ll be able to see within the reality desk, you want a “1” within the R enter and a “0” within the S enter.

S-R latch with NOR gates case 2

However, if you wish to “Set” a “1” within the Q output simply comply with the reality desk and place a “1” within the S enter and a “0” within the R enter. 

S-R latch with NOR gates case 3

Lastly, the S and R inputs ought to by no means be “1” on the identical time as a result of the NOR gate solely provides “1” when each of its inputs are “0”, but when one enter is “1”, then the output will likely be “0”. Because of this, if S and R are “1”, each latches’ outputs will likely be “0” on the identical time, one thing that violates this latch’s working precept.

SR-LATCH WITH NAND GATES

The S-R Latch can be constructed utilizing two NAND gates:

Schematic of S-R Latch with NAND gates
S-R Latch with NAND gates

Within the above circuit, you may need observed slight variations from the one with NOR gates. Now the inputs have been swapped, with the S enter within the higher gate and the R enter within the decrease gate. As well as, the inputs have been negated.

It really works the identical approach as with NOR gates, simply that the inputs are inverted. Right here’s the reality desk:

Enter S Enter R Output Q
1 1 Earlier State
1 0 0
0 1 1
0 0 0 (Invalid)
Fact desk for S-R Latch with NAND gates

Instance Circuit

As a sensible instance, you’ll be able to construct an SR latch utilizing the CD4001 chip. Beneath you’ll be able to see how the CD4001 has 4 NOR gates inside, making it very best for this sort of software.

The circuit works as follows: when the button PB2 is pushed, the LED L2 activates and stays on even after PB2 is launched, whereas the LED L1 stays off. LED L2 turns off when the button PB1 is pressed, whereas LED L1 turns and stays on even after PB1 has been launched. To assemble the above circuit you want:

  • The CD4001 chip
  • Two push buttons (PB1 and PB2)
  • Two LEDs
  • Two 10 kΩ resistors (R1 and R2)
  • Two 330 Ω resistors (R3 and R4)

Questions?

Do you will have any questions on S-R Latch? Let me know within the feedback under.

Extra Digital Electronics Tutorials





Source_link

Leave a Reply

0
    0
    Your Cart
    Your cart is emptyReturn to Shop