-4

This question often pops up from people learning about pull up/pull down resistors. Why people ask it, is easy to see, it is a logical question to ask.

If the pull-down resistor is bypassed at logic high voltage, because it is not the path of least resistance, why is it the favoured path for the electromagnetic noise that causes "floating" logic issue?

enter image description here

Since this is a question many people have, I'll clarify it a bit. To me and those asking the question, the two images below, would be predicted to behave the same. But, clearly, they do not. In the open switch circuit, the voltage drains away and does not trigger logic high voltage. But in the closed one, it does not drain away, and reads as "1".

enter image description here

Adding some context. An explanation that makes sense is that the tendency of the input to prevent electric current, varies depending on if the current is from the voltage provided, or, from noise. A very shallow look at "impedance" concept, says that it does vary depending on different factors while resistance does not, https://electronicsclub.info/impedance.htm. This would make sense. If this is the explanation, it seems like it would be very easy to point that out. It obviously has to have something to do with electrons preferring R1 over the other path only when they come from noise.

This question is asking the same thing, How does the pull down resistor work in this circuit?, and this one, Understanding pull down resistor current flow, and this one, How does a pull-down prevent a "false 1" in a pin?, all on Electrical Engineering stackexchange. I also saw lots of people asking the same thing on a YouTube video on pull down resistors, here are some examples all from same video:

https://www.youtube.com/watch?v=BxA7qwmY9mg&lc=UgyDSh1Jjg88vbeXN6J4AaABAg

https://www.youtube.com/watch?v=BxA7qwmY9mg&lc=UghzIZuwKlrsQ3gCoAEC.7-H0Z7-PTqA76U2loJphfM

https://www.youtube.com/watch?v=BxA7qwmY9mg&lc=Ugg2hGNS-12vzngCoAEC

https://www.youtube.com/watch?v=BxA7qwmY9mg&lc=Ugg2hGNS-12vzngCoAEC.8IQNJpqg4aP9IHHH85GnU1

https://www.youtube.com/watch?v=BxA7qwmY9mg&lc=Ughz07hgvJY4nngCoAEC

https://www.youtube.com/watch?v=BxA7qwmY9mg&lc=Ugjge6XZZPmohHgCoAEC

https://www.youtube.com/watch?v=BxA7qwmY9mg&lc=UghF0bf2xVUdpngCoAEC

https://www.youtube.com/watch?v=BxA7qwmY9mg&lc=UgwBUbNikZgkqZUsRFB4AaABAg

So it is a common question people have, and it's pretty easy to understand why they ask it and what they ask about.

I am asking because I don't get why the preferred path changes direction when the switch closes.

SamGibson
  • 17,231
  • 5
  • 37
  • 58
  • 1
    Hi, You are still asking about pull-**up** resistor usage and meaning in [your previous question](https://electronics.stackexchange.com/questions/586742/the-role-of-pull-up-resistor-to-allow-inverted-logic-high-low-voltage-without-wa) (or at least you haven't accepted an answer, so it appears to still be an open topic for you). Perhaps it is a bit too soon to be asking about the closely-related topic of pull-**down** resistors in parallel with that question? (No pun intended :-) ) At the very least, I recommend you [edit] this question to include your understanding of the previous one. Thanks. – SamGibson Sep 16 '21 at 14:52
  • No I'm asking about pull down resistor here. And, that I haven't accepted an answer. I don't agree with either of them. It's very clear what I argued for. I had lots of comments saying "without the resistor it short circuits at logic low" which I argued was the reason for it. Your comment here does not add to this question. If it is forbidden to ask two questions, then feel free to point to some code of conduct. If not, avoid too many comments here. Thanks. – LearningBasicComputerScience Sep 16 '21 at 14:57
  • 6
    "*I haven't accepted an answer. I don't agree with either of them.*" That's fine, but readers *here* should be aware of the potential overlap between the two questions, as you have now confirmed the previous question is still an open-topic for you. "*Your comment here does not add to this question.*" I respectfully disagree - site members should be made aware of your previous question, so they can read it and avoid wasting time telling you things already mentioned there. "*If it is forbidden to ask two questions*" It is *problematic*, if there is potential for overlap, as in this case. Thanks. – SamGibson Sep 16 '21 at 15:06
  • Please stop trying to discuss moderation here - take it to Meta if you feel strongly about it. Further comments about that will be deleted. I have explained my thinking. End of subject *here* - use Meta if you want to ask about moderation. Thanks. – SamGibson Sep 16 '21 at 15:14
  • 1
    OK, here's a different way to look at it: Let's add a "noise" source, which in this case will be another DC power rail with the same voltage as Vcc. Add a 10Mega ohm series resistor to the output of this power supply and connect that to the Vout node. Make R1 = 10K (a common pull-down value). I suggest using 3.3V for both VCC and Vnoise. Calculate Vout with the switch open and with it closed. The noise source in this case is a high-impedance output (much like actual noise). Since R1 is lower impedance than Vnoise, the voltage at Vout is biased much closer to ground than Vnoise. – Troutdog Sep 16 '21 at 20:45
  • @LearningBasicComputerScience Please read my updated answer and comment under it if you still find it inadequate. – evildemonic Sep 16 '21 at 20:49
  • 4
    I think you're looking for something very deep and meaningful here. It's just a push-button and a resistor. – Simon B Sep 16 '21 at 22:06
  • 2
    "*If the pull-down resistor is bypassed at logic high voltage, because it is not the path of least resistance ...*" Nothing is "bypassed" when the switch is closed. As explained in my answer to your previous question, the switch and the resistor form a potential divider both when the switch is open and when the switch is closed. In the open state the switch has an extremely high resistance and when the switch is closed the switch has a very low resistance. My answer shows the simulation results for both cases. Similarly the noise will have a high source impedance and the divider rules apply. – Transistor Sep 16 '21 at 22:19
  • 2
    The pull down is *not* bypassed at high logic levels. It carries current and follows Ohm's law. – Scott Seidman Sep 16 '21 at 23:45
  • 1
    @LearningBasicComputerScience - Hi, I have rolled-back (removed) your edit where you linked to yet another place where someone is asking a similar question. Do not add more links to similar questions from elsewhere - members here are not expected to read, interpret & answer questions from other people copied into *your* question. You have included enough examples of questions (some of which also have answers). If there are points that *you* do not understand, then edit your question to explain what *you* do not understand - not examples where *other people* do not understand. Thanks. – SamGibson Sep 17 '21 at 16:17

5 Answers5

7

Pull-up and pull-down resistors are used for exactly the same reasons. Which one you use depends on whether you want the default (switch open) state to be High (use pull-up) or Low (use pull-down).

Inputs of many logic circuits and microcontrollers are very high impedance, and, if left unconnected, will wander randomly between High and Low logic levels. The pull-up/down resistor will pull the input to the desired default value when there is nothing else pulling the input to the opposite value. The resistor allows other sources to pull the input to the non-default state.

Peter Bennett
  • 57,014
  • 1
  • 48
  • 127
5

[Edit] To address your latest edit: "I am asking because I don't get why the preferred path changes direction when the switch closes."

The preferred path is the one of lowest impedance. When the switch closes, which path is the lowest impedance changes.

The reason is because the resistor has infinitely less resistance than the switch when it is open. It also has a lot less impedance than the noise source.

When the switch is open, the only path for current is ground via R1. Assuming Vout is high impedance (compared to R1), noise that is impressed on the circuit (appears as voltage from a high impedance source) drains away through R1 before that voltage can get high enough to trigger Vout. This is because the source-impedance of the noise is much higher than the resistor.

When the switch is closed, that path is much lower impedance than the path to ground via R1 (or the noise), so the voltage can easily rise high enough to trigger Vout. The lowest impedance path is now between Vcc and Vout.

Understand that Vcc and GND are low impedance nodes, while Vout is high impedance. R1 might be seen as "medium" impedance. Current will flow more through the lowest impedance path.

Model your noise like this:

schematic

simulate this circuit – Schematic created using CircuitLab

Think about where the current goes and what happens to the voltage across the resistors. Pick a Vcc, pick a noise voltage (even though it is usually a type of A/C, pick some voltage) and use Ohm's law to calculate voltage at Vout and currents through the resistors. It will all become clear.

TonyM
  • 21,742
  • 4
  • 39
  • 62
evildemonic
  • 8,698
  • 2
  • 25
  • 44
  • Doesn't add up. It should be easy to see what people ask when they ask about this. Your answer seems contradictory, "Assuming Vout is high impedance (compared to R1)", "The lowest impedance path is now between Vcc and Vout.". Either there is a component you skip over, or, I am missing something in what you explain. – LearningBasicComputerScience Sep 17 '21 at 19:01
  • One explanation I considered is that Vcc is direct current, and might be less impeded than alternating current noise. Or, that there is a capacitor effect, and that "floating" tends to build up gradually, and "leakage current" through the resistor, even though it isn't the preferred path, is enough to prevent build-up to logic high voltage. – LearningBasicComputerScience Sep 17 '21 at 19:02
  • 2
    @LearningBasicComputerScience Vout is always high impedance, it is the Vcc that is low impedance. When Vout is connected to Vcc, there is a low impedance path to Vcc that drains away noise before it can produce enough voltage to trigger Vout. Floating just means undefined, and therefore extremely susceptible to noise from the local EM field. – evildemonic Sep 17 '21 at 19:49
  • That does not add up. When Vout is connected to Vcc, it already triggers Vout doesn't it? Seems to me like noise needs to be drained away primarily when the input is not set to logic high. I understand what floating means, and that it makes input susceptible to noise from local EM field. What I do not understand is why the preferred path for noise is reverse to that from "Vcc". – LearningBasicComputerScience Sep 17 '21 at 19:52
  • It could be triggered high or low. The main thing is the voltage will cause a current to flow through the lowest impedance node. – evildemonic Sep 17 '21 at 19:55
  • Look at it this way: the "noise" is from varying EM fields nearby. This appears in your circuit as a high impedance voltage source. If there is a path to a node that is lower impedance than the noise source, it will not be able to generate a problematic voltage. Vcc is a LOW impedance node, so if it is in the circuit it can eliminate the noise. If the switch is open, the noise no longer has access to that node to drain away. It now must go through R1 to GND (also a low impedance node). Since the impedance of R1 is much lower than noise source, it can also successfully drain that way. – evildemonic Sep 17 '21 at 19:55
  • The reason it changes direction is only because once the switch is closed there is an even lower impedance path than the one through R1 to GND. – evildemonic Sep 17 '21 at 19:58
  • What I and the other people who wonder about this ask, is why the electricity from the power source wants to bypass the pull down resistor, but the electricity from the noise doesn't. In your last reply, you only address the noise. – LearningBasicComputerScience Sep 17 '21 at 20:00
  • I'm sorry, I'm not clear on what you mean by "bypass the pulldown resistor", or I would try to help. Do you wonder why the pulldown doesn't short out the power supply? – evildemonic Sep 17 '21 at 20:25
  • I added links to 10 other people asking the exact same thing, to make it socially a bit more clear. They are all missing something, and me too obviously. Electricity from noise will not trigger the input, but instead drain away through pulldown. Electricity from the power supply will trigger the input, and not drain away through the pull down. There must be some logical explanation that explains why that isn't a contradiction. – LearningBasicComputerScience Sep 17 '21 at 20:27
  • Ah, ok, now I think I understand you. The reason is because current flowing over a resistance creates a voltage drop. Current does flow from Vcc through R1 to GND. The key is Vcc is a low impedance voltage source. This means that current leaving Vcc for GND does not deplete the voltage at Vcc. Since the noise is a high impedance source, current flowing away from it (to either Vcc or GND) DOES deplete that voltage. – evildemonic Sep 17 '21 at 20:30
  • The resistance is enough that even with current flowing from Vcc to ground, Vout see the Vcc voltage. Think about this: If you connect a resistor between the terminals on a battery, the leg on the resistor connected the the positive side of the battery is still that voltage. – evildemonic Sep 17 '21 at 20:31
  • Still doesn't make sense. This answer seems to emphasize that the input is a capacitor, https://electronics.stackexchange.com/questions/454264/why-does-a-pull-down-resistor-eliminate-floating-input/454265#454265. If that is a big part of it, and it gets gradually charged, I can see why a tiny drain can counteract it. – LearningBasicComputerScience Sep 17 '21 at 21:12
  • Then you must have a fundamental misunderstanding of the relationship between voltage, current, and impedance. If you would just draw or model your system with the noise included as a voltage source through a large resistor then use Ohm's law to calculate currents and voltages you will see that everything I've written makes sense. I encourage you to do this, because it will give you an intuitive understanding of what is happening and why. – evildemonic Sep 17 '21 at 21:16
  • This has nothing to do with capacitance or A/C vs. D/C. – evildemonic Sep 17 '21 at 21:17
  • 1
    @LearningBasicComputerScience You say "Electricity from noise will not trigger the input, but instead drain away through pulldown. Electricity from the power supply will trigger the input, and not drain away through the pull down. There must be some logical explanation that explains why that isn't a contradiction." The explanation is Vcc is a low impedance source, but the noise is a high impedance source. Current from Vcc DOES drain away via R1, but since the source is low impedance it can keep up, while the noise cannot. – evildemonic Sep 17 '21 at 21:36
  • 2
    Added an 'm' suffix to the filename (not the file extension). 's' for small, 'm' for medium, 'l' for large. Little known though it's in the Help. Otherwise the image needs a lot of scrolling on a mobile or PC and readers lose the flow of the question. It's now a nice size relative to the question text. Hope the info' is useful for future posts. – TonyM Sep 17 '21 at 21:39
  • @TonyM Thank you, very valuable information! – evildemonic Sep 17 '21 at 22:08
3

I've previously explained the idea of impedance. In short, a trace in a high-impedance (undriven) state, besides floating to an unknown voltage level, is also vulnerable to noise pickup. The larger the trace, the more vulnerable it is (that is, it has a larger 'antenna' to pick up other signals.)

So the pull-up (or -down), besides guaranteeing a valid level in the absence of a driver, also lowers the impedance of the trace by providing a path for the noise to go to, besides charging or discharging the inputs downstream.

It's also possible reduce impedance with a capacitor and use a very weak pullup to do the same thing. It's a useful technique to help with noise immunity.


Here's a simulation of various tie-off scenarios involving a CMOS input (simulate it here).

enter image description here

About Falstad. Falstad is a Javascript-based interactive circuit sim that you can edit yourself. Falstad has some visual aids, including the 'current speed' that you adjust that to see where the current is flowing. You can also add scope probes to monitor current and voltage as needed.

About the circuits: Each sim is a typical CMOS input. It's modeled as a MOSFET P-N pair that forms an inverter, with a pair of ESD (electrostatic discharge) protection diodes that limit the gate voltage to between GND and VCC.

Now, let's go over the scenarios:

  • (a.) Floating input. The P-N pair biases to midpoint, due to the slight leakage of the ESD protection diodes. Both transistors are on, biased in linear mode, causing wasted DC current. Output sits at 2.5V.
  • (b.) Noise coupling. The P-N pair inverter amplifies it to a full-strength signal. Output follows noise.
  • (c.) Pull-up. Some noise makes it through, but not enough to trigger the inverter. Almost all the noise flows through the pull-up. Output stays low.
  • (d.) Pull-down. Again, some noise makes it through, but not enough to trigger the inverter. Almost all the noise flows through the pull-down. Output stays high.
  • (e.) Weak pull-down + noise reject cap. Some noise makes it through, almost all of it (>95%) is shunted to ground by the cap. Output stays high.

In each case the noise source is a 400Hz square wave signal: not a high base frequency, but being a square wave it has infinite harmonics so it will couple strongly even though its toggle rate is low.

In cases (b.), (c.) and (d.) I've provided a lower-impedance path for the noise, taking it away from the CMOS input:

  • Switch open, noise flows through the termination.
  • Switch closed, all the noise flows through the switch.

Finally, in case you were wondering, typical CMOS gate input pin capacitance is about 3-7pF. This is given in an IC datasheet. This gives an idea of its high input impedance, and why it's important to tie it off properly.

hacktastical
  • 49,832
  • 2
  • 47
  • 138
  • re: "also lowers the impedance of the trace by providing a path for the noise to go to", I understand that. And I understand the noise pickup. What I wonder about is why the pull down resistor is the path for the noise, but, not for the voltage when the switch is closed. One explanation that could make sense, is if there is a capacitor effect, and that even though stuff prefers to flow to input, enough will leak to avoid charging the "input capacitor". This answer sounded a bit like that, https://electronics.stackexchange.com/a/454265/295860. – LearningBasicComputerScience Sep 17 '21 at 19:27
  • The closed switch is an *even lower* impedance, in the single-digits range. Any noise present will follow that path of least resistance. So the signal either has an impedance of some pull resistor value (switch open), or practically nothing (switch closed.) We only really have concern about the switch-open case, so we choose an resistor impedance low enough to get the job done (in the 1-10kOhm range) without wasting *too* much current when the switch is closed. – hacktastical Sep 17 '21 at 19:38
  • doesn't make sense. switch closed still has the pull down resistor, like when the switch is open. But in one case, it prefers one path over the other. In your other answer here on a similar topic, https://electronics.stackexchange.com/a/481451/295860, you emphasize the input acting as a capacitor. To me, the whole thing could make sense if the preferred path is the same in both cases, but, leakage down the resistor is enough to prevent capacitor from charging. – LearningBasicComputerScience Sep 17 '21 at 19:42
  • There’s a way to do this such that no power is wasted: by powering the pull-up (or down) dynamically. See this answer: https://electronics.stackexchange.com/questions/573711/atmega328p-reading-dip-switches-using-the-lowest-possible-power/573759#573759 – hacktastical Sep 17 '21 at 19:43
  • If by "powered dynamically" you mean that the pull down gets higher resistance when the switch is closed, that makes sense. But it would be a different case than the usual schematic explanation of a "pull down resistor". – LearningBasicComputerScience Sep 17 '21 at 19:44
  • When the switch is closed current flows between the pull up resistor and the closed switch to ground. Nevertheless, the switch ties the line very strongly to ground, so this will be the noise path. – hacktastical Sep 17 '21 at 19:45
  • 1
    No, by “dynamically powering” I mean switching the termination voltage depending upon when the switch is read. If you look at that posting you’ll see that the OP wanted to read DIP switches that are always on or always off, and wanted to do so in a way that didn’t waste power. – hacktastical Sep 17 '21 at 19:48
  • 1
    I understand pull up resistors. Seem very easy to understand. What I wonder about is pull down resistors and the preferred path seeming to change when switch opens/closes – LearningBasicComputerScience Sep 17 '21 at 19:48
  • Pull up has historically been preferred for TTL systems. For CMOS it really doesn’t matter very much pull up or pull down work equally well. Most designers choose pull up because it’s a little safer: if the switch is shorted out to ground somehow it only will affect the switch versus the whole power supply. – hacktastical Sep 17 '21 at 19:50
  • 1
    Ok but I have no trouble understanding pull up resistors. I only have one specific question, and it is on pull down resistors. Why the noise escapes in one direction but the logic high signal in the other. I pointed to 10 other people asking the exact same question to show that it might not be that weird a question, socially. – LearningBasicComputerScience Sep 17 '21 at 19:54
  • That’s why I introduced the term *impedance*. When you think of it from that point of view, a switch to ground with a pull-up functions identically to a switch to VCC voltage and pull-down. Switch-open, impedance is pull resistor; switch-closed: impedance is close to zero. – hacktastical Sep 17 '21 at 20:01
  • 1
    I've come across that term before. I understand pull up resistors. The scenario in the pull down, can't exist with pull up design. So the question ask here, or lots of other people ask too, is specifically about pull down resistors. – LearningBasicComputerScience Sep 17 '21 at 20:04
  • 1
    The electricity from the power source prefers to bypass the pull down resistor and go to the input, but the "noise" in the input prefers to drain to the pull down resistor. It should be easy to see why people wonder about that. – LearningBasicComputerScience Sep 17 '21 at 20:04
  • 3
    I will say this again: **it makes no difference**, pull up or pull down. It’s all about the impedance. This is why folks are frustrated with your line of reasoning, some of your assumptions make no sense electrically. I suggest, if you want to convince yourself of this, is create models for both pull-up and pull-down and simulate them. Try Falstad, it’s an online sim that’s really easy to use and it visualizes the current paths. – hacktastical Sep 17 '21 at 20:18
  • 1
    OK but this question cannot be asked about pull ups, but can be asked about pull downs. So, it makes a difference in that context. I don't know what "folks are frustrated", I'm asking a question that is pretty common. It should be possible to see why people ask it. – LearningBasicComputerScience Sep 17 '21 at 20:20
  • The detail you might be missing is that the impedance *between* GND and VCC is also very low, both because of the power supply and because of the bypassing between VCC and GND. That’s why it doesn’t matter. Again, build a model and try it, this will help you visualize where the currents go. – hacktastical Sep 18 '21 at 03:10
  • 1
    I understand where they go. I'm not rejecting a century of electronics. I know it is doing what it is doing. I'm just wondering _why_. Specifically, why pull down resistor is enough to discharge "noise" but not the power supply. But, I'll survive even if I do not understand this for now, it just seemed like it might be a good "learning step" since I'm aware I'm missing something. My goal is to understand how a computer works, from transistors to chatting with you here.. – LearningBasicComputerScience Sep 18 '21 at 21:24
  • 2
    @LearningBasicComputerScience The _why_ is Vcc is a low impedance power source, and the noise is a high impedance power source. That explains it entirely. – evildemonic Sep 20 '21 at 13:53
3

I want to have a stab at this, because I understand that the "hand wavy" explanations online about switches and pull-ups and pull-downs tend to leave people asking more questions than were actually answered. I hope I can put at least some sources of confusion to rest.

Every instance where a resistor is combined with a switch to obtain some logic high or low depending on the switch postion, is just a voltage divider. In your case, it's a voltage divider with a capacitor connected to its "output", being the input capacitance of whatever input you are driving.

I'll start without the capacitor, and review the voltage divider:

schematic

simulate this circuit – Schematic created using CircuitLab

In other words, the voltage at x is equal to:

the product of

  • The total potential difference across the divider chain
  • The fraction of the total resistance R1 + R2 represented by R2

offset by

  • The voltage present at the bottom of the divider chain

This is independent of current in the chain, and while that's an important consideration, I won't be talking about current just yet. Focus on the potentials.

This equation is an unassailable fact. It always works, for signals up to many many megahertz, and I don't care if the top of the chain is lower in potential, higher, millivolts or kilovolts, it falls right out of the application of undisputed Kirchhoff's and Ohm's laws. I can use it to know what the potential at x is, regardless of the signs or magnitudes of the potentials at a and b. Check for yourself:

schematic

simulate this circuit

From those examples, you can make an observation that Vx is closest to Va when R1 is small compared to R2, and similarly, when R2 is smaller, Vx tends towards Vb. In other words, R1's influence on Vx is such that it that causes Vx to approach Va as it gets smaller in resistance, and conversely R2 causes Vx to become closer to Vb, giving rise to the terms "pull-up" and "pull-down". If Va is more positive than Vb, you could call R1 a "pull-up", and R2 a "pull-down". That's all there is to this, it's only indirectly related to current by Ohms' law, and these terms are referring to the resistor's influence on the voltage at x, not current, or anything else.

I included indications of current flow (blue arrows), just for completeness, but again, I remind you that current results from the application of potential difference, and will depend on R1 and R2, but it has no bearing on the (unloaded) voltage at x. Current does not appear in our divider equation.

If we consider a switch to be a variable resistance which is either very low (0Ω) or very high (∞Ω), depending on whether it is pressed or not, then we can place it in the voltage divider, and treat it just like a resistance:

schematic

simulate this circuit

Applying the formula with these values for Va, Vb, R1 and R2, yields the expected voltages Vx, and to drive the point home, I don't care one iota about current direction or magnitude (at least, not yet).

I want emulate a MOSFET gate input, like you'd find in most CMOS digital ICs, which would be some capacitance, perhaps to ground perhaps to Vcc, perhaps to some other potential entirely. I'll compare five resistive voltage dividers, all indentical with the exception of their capacitive loading. The first has no capacitive loading at x, one has a capactitor to ground, the next to Vcc, one to some arbitrary potential, and the last one with capacitors all over the shop:

schematic

simulate this circuit

When we plot how the voltages \$V_{OUT1}\$ to \$V_{OUT5}\$ evolve over time, we get this:

enter image description here

Notice that \$V_{OUT1}\$, with no capacitive load, starts and ends at 1V, but crucially, given enough time, all the others converge to that same value. Whatever currents are flowing are causing each and every capacitor to charge to exactly the correct potential difference across it, so that \$V_{OUT}\$ is 1V.

What this means is that in the long term, it's as if the capacitors are not there. Their only influence is to delay the settling of the circuit to that "final" output voltage, the level defined by Va, Vb, R1 and R2. The capacitors are a hinderence, but only for a while.

The rate at which this convergence happens depends on the resistances and the total input capacitance, and now current certainly plays a more direct role in the divider's behaviour.

If you want \$ V_{OUT} \$ to slew really fast, you must have low resistances for R1 and R2, or low input capacitances, or both.

When we use a switch in place of one of the resistances, that switch, when closed has a very low resistance, and will charge/discharge any capacitance very quickly. However, when the switch is released (opened), the rate at which the capacitor charges to whatever the new "target" voltage level is, will be slow in comparison, because charge current is now determined entirely by the other resistance.

To address the problem of noise that can find its way onto to \$V_{OUT}\$, either electromagnetically or inductively, from the environment, it's sufficient to model the situation as a three-way resistive network with three source potentials instead of two:

schematic

simulate this circuit

It's not really possible to call this a "divider" any more, and the algebra describing its behaviour is a lot more complicated, but we can assess it very effectively with only intuition.

By the same argument we used to call R1 a "pull-up" resistor, and R2 a "pull-down", we could call R3 a "pull-everywhere-else-at-random" resistor. R3 will be determined by things like the length and proximity of the various current paths to noise sources, and the loop area formed by those paths. You aim to keep loop area as small as possible, connection paths as short as possible, and noise sources as far away (or as isolated) as possible.

However, by far the easiest approach to minimising the influence of point c on OUT is by ensuring that R1 and R2 are very very small compared to R3. That's why low values for R1 and R2 (or just R in the switch+resistor divider scenario) are better at overcoming noise at the output than high values.

You may think of it like this: if the current flowing through R1 and R2 is high compared to the noise current entering or leaving via R3, the influence of R1 and R2 on the output potential at x will be far more significant than the influence of noise via R3. We say that low resistances are "strong" influences, high resistances are "weak", which explains terms like "weak pull-up".

For high currents, you need low resistances. We call the combined ability of R1 and R2 to determine the output voltage in spite of forces trying to upset it, its "impedance". For low values of R1 and R2, we say that they form a "low impedance" voltage source, and vice versa. The lower the impedance of the source of signal at x, the better noise immunity and slew rate you achieve, but the cost is reduced power efficiency.

Simon Fitch
  • 27,759
  • 2
  • 16
  • 87
  • Not really seeing much of a signal in the noise in your answer. My own thought, is that the resistance to current flow through a transistor (using transistor as example just like in figure 2 in my question), the base-emitter current, decreases when a voltage is applied. And that this makes that path favoured when a power source is connected. What are your thoughts on that? – LearningBasicComputerScience Sep 20 '21 at 00:29
  • 3
    @LearningBasicComputerScience I consider the "noise" to be in the understanding, which has been muddied by ELI5 explanations on Youtube and other sources. Terms like "path of least resistance" and the anthropomorphisation of electrons that "prefer" one path over another are fine until you have *real* questions, like yours. This answer is as close to "noise free" as possible, without being so technical that a person beginning to ask the "real questions" can't understand. It sits somewhere between a Youtube explanation designed for a beginner and a formal academic treatise... – Simon Fitch Sep 20 '21 at 01:18
  • My best guess at the moment is that the Ohm of the base-emitter current of a transistor decreases as voltage applied on it increases. And that this makes it the preferred path, at a threshold. It is a perfectly logical explanation, so, it is what I'd guess. – LearningBasicComputerScience Sep 20 '21 at 01:32
  • @LearningBasicComputerScience I intended this answer to be purely signal, to represent the truth of the subject distilled down *without the noise* for a not-so-beginner. In my experience, problems understanding are not necessarily missing information, but rather something already known being either misleading or just plain wrong. – Simon Fitch Sep 20 '21 at 01:32
  • @LearningBasicComputerScience I am sorry I can't be more helpful. I do feel a little sad that I haven't been able to give you some kind of "aha" moment, and I feel part of the system that is failing you. – Simon Fitch Sep 20 '21 at 01:34
  • re: "system failing me", you mean like society? I'm very successful in society. or if you mean this particular forum, it neither has or could fail me, since it's just a tool. I adapt to the tools I use, use them to the extent they have a use, and would never expect them to be more than they are and feel "failed" by them. so imo, better to feel sad about actual tragedies. that said, I figured out what I'd missed, and can add that "meme" to other things I bothered to learn throughout life. peace. – LearningBasicComputerScience Sep 22 '21 at 07:09
-1

Having understood what I missed, I’ll answer this question, in the way I think it explains what I asked. This could benefit anyone else who had the same question.

I assumed the pull down works by creating a “preferred path” for noise so that it bypasses the base. I also linked to a dozen other people who made the same assumption. This assumption is false.

How they actually work, is by connecting the base to a negative voltage. In schematics, this is shown as “ground”. I’ll skip the “ground” concept in my explanation.

Transistors can be in three states. They can be in “neutral”, and block electricity. They can be in “off”, and block it even more. And they can be “on”, and conduct electricity.

Transistors are turned “on” by a positive voltage at the base. And, “off” by a negative voltage at the base. And, they are in "neutral" with no voltage at the base.

enter image description here

It would be easiest to use transistors with just the “neutral” and “on” modes, since that is enough for them to either conduct or not conduct electricity. But, the wires in the circuit act as antennas and currents can be induced in them from electromagnetic “noise”, and it might be enough to turn the transistor “on”.

enter image description here

By adding the “off” mode (replacing "neutral" with it), any “noise” is outcompeted when the transistor is “off” (and already was when it is “on”. )

enter image description here