How do RS NAND latches work with feedback?

  • Thread starter springo
  • Start date
In summary: Just draw out the truth table evolution of the two cross linked gates and fill in the state changes relative to the previous state affecting the subsequent state affecting the new state of the gate with the initiallychanged input and fill in the rest (the others that depend on that output state transition) from there.In summary, the two cross linked gates have a P (Active LOW) set and an O (Active HIGH) set. The P set is active when the gate is in the H (High) state, and the O set is active when the gate is in the L (Low) state. The gates have a feedback path, which is a path that goes from the L set to the H set. This path changes the state
  • #1
springo
126
0
Hi,
I'm trying to understand the basics of boolean logic gates and I'm stuck with latches. I think I don't really understand the concept of feedback or maybe it's something else but I haven't been able to understand how a basic RS NAND latch works.
Could somebody please explain it in simple words or give a link to an explanation?
Thank you very much in advance.
PS: http://www.play-hookey.com/digital/rs_nand_latch.html" is what I'm reading.
 
Last edited by a moderator:
Engineering news on Phys.org
  • #2
Just draw out the truth table evolution
of the two cross linked gates and fill in the state changes
relative to the previous state affecting the subsequent
state affecting the new state of the gate with the initially
changed input and fill in the rest (the others that depend
on that output state transition) from there.

A NAND P = O
C NAND O = P
R = Rising
F = Falling

A has no control in this output state.
A P O C
H L H H
F L H H
L L H H

C has no control in this output state.
A P O C
H H L H
H H L F
H H L L

C = Active LOW SET of P
C = Active LOW RESET of O
A P O C
H L H H
H R F F
H H L L
H H L R
H H L H

A = ACTIVE LOW RESET OF P
A = ACTIVE LOW SET OF O
A P O C
H H L H
F F R H
L L H H

Just start with one gate's input transition,
transition that gate's output as apppopriate, take
that change and change any outputs that depend on it
as an input ... etc. and voila.

springo said:
Hi,
I'm trying to understand the basics of boolean logic gates and I'm stuck with latches. I think I don't really understand the concept of feedback or maybe it's something else but I haven't been able to understand how a basic RS NAND latch works.
Could somebody please explain it in simple words or give a link to an explanation?
Thank you very much in advance.
PS: http://www.play-hookey.com/digital/rs_nand_latch.html" is what I'm reading.
 
Last edited by a moderator:
  • #3


Sure, I'd be happy to help explain the basics of RS NAND latches. A latch is a type of electronic circuit that has two stable states, and can be used to store information. The RS NAND latch is made up of two NAND gates, and it works by using feedback to maintain one of its two stable states.

To understand how it works, let's first look at the two NAND gates. A NAND gate is a type of logic gate that performs the logical operation of "not and." This means that it will output a 0 if both of its inputs are 1, and it will output a 1 if either or both of its inputs are 0. So, if we have two NAND gates connected in a loop, with the output of one going into the input of the other, we have a feedback loop.

Now, let's look at the inputs of the RS NAND latch. The two inputs are labeled R and S. R stands for "reset" and S stands for "set." When R is 0 and S is 1, the output of the first NAND gate will be 1, and this 1 will be fed into the second NAND gate. This will cause the output of the second NAND gate to be 0, and this 0 will be fed back into the first NAND gate, keeping the loop in this state. This is one of the stable states of the latch, where the output is 0.

When R is 1 and S is 0, the opposite will happen. The first NAND gate will output a 0, which will be fed into the second NAND gate, causing its output to be 1. This 1 will then be fed back into the first NAND gate, keeping the loop in this state. This is the other stable state of the latch, where the output is 1.

So, depending on the inputs, the latch will stay in one of these two stable states. This is how the RS NAND latch can store information. And, by changing the inputs, we can change the state of the latch, thus changing the stored information.

I hope this explanation helps you understand the basics of RS NAND latches. The link you provided also has a good visual representation of the circuit, which can be helpful in understanding how it works. Keep practicing and experimenting with boolean logic gates, and you'll continue to improve your understanding. Best of luck!
 

1. What is an RS NAND latch?

An RS NAND latch is a type of electronic circuit that is used to store one bit of data. It is made up of two cross-coupled NAND gates, with inputs connected to the outputs of the other gate. This creates a feedback loop that allows the latch to maintain its state even after the inputs are removed.

2. How does an RS NAND latch work?

An RS NAND latch works by using the feedback loop to maintain one of two stable states, either a "set" state or a "reset" state. When one of the inputs is set to 0, the other input can control the state of the latch. If the control input is set to 0, the latch will remain in its current state. If the control input is set to 1, the latch will switch to the opposite state.

3. What are the advantages of using an RS NAND latch?

An RS NAND latch has several advantages, including simplicity, low cost, and the ability to store one bit of data without the need for an external power source. It is also a useful building block for more complex electronic circuits and can be easily integrated into larger systems.

4. What are the limitations of an RS NAND latch?

One limitation of an RS NAND latch is that it is prone to glitches, which can cause the output to change unexpectedly. This can be mitigated by adding additional logic gates to stabilize the output. Another limitation is that the latch can only store one bit of data, so multiple latches would be needed for larger data storage.

5. In what applications are RS NAND latches commonly used?

RS NAND latches are commonly used in electronic devices such as computers, calculators, and digital clocks to store and manipulate data. They are also used in control systems, such as in traffic lights, to store and maintain the current state of the system. Additionally, they can be used in memory circuits and flip-flops, which are essential components in digital systems.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
Replies
4
Views
2K
  • Electrical Engineering
Replies
24
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
21
Views
1K
  • STEM Academic Advising
Replies
3
Views
405
  • Engineering and Comp Sci Homework Help
Replies
9
Views
2K
Replies
12
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
9
Views
6K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
Replies
5
Views
952
Back
Top