Thank you all for the excellent attempts to clarify this for me. It also seems to me that the sizing of the resistor would be based upon what is needed by the IC.
Exactly. For CMOS devices where input current is essentially zero, the pull-up value can be quite high. Basically, it just has to provide enough impedance to limit noise.
The problem comes up at the switch and that's why you will see much lower values. Switch contacts oxidize and it takes a certain amount of voltage to break through. Keeping the contacts 'closed' takes a certain amount of current. Switches with gold plated bifurcated contacts will switch low level signals much better than a common wall switch. It is for this very reason that low current switches were invented.
So, it confuses me a bit when I see others posting about this circuit and speaking of the resistor size somewhat casually.
I wish that I could find an example but it went something like this. " And now for a pull up we will use, Oh, i think that 10k will be about right "
Much of design is based on what worked the last time. There's a reason I went through all the detail in resistor sizing above. It really does come down to reading datasheets and calculating things. People got caught out all the time using too large of a resistor with TTL inputs. Well, TTL isn't used much and with CMOS the values can be higher but there is still the switch itself.
And where does "pull up" come from ? Is it that we are pulling the pin up above a zero state and possibly keeping it there ?
Thanks again
Exactly! Many logic families, particularly CMOS, don't want inputs floating. It will actually damage the device under certain circumstances. In all cases, the designer wants to know what logic level is on each pin. Design can't be based on how things float. So, pull-up resistors are used to guarantee a logic '1'.
OK, why use a resistor if we're only pulling a pin, no switch? Because certain logic families aren't happy with a hard signal level. You will see pins pulled directly to ground but you will not often see pins pulled directly to Vcc.
Much of the folklore about pull-up resistors goes back to TTL (or earlier) and this type of logic is obsolete. CMOS has essentially no input current so it doesn't matter how low the value is. You aren't saving energy by using a high value resistor because there is none dissipated because there is no current flow. You might as well use a reasonable value to limit noise because you really aren't wasting any energy.
If I had an input from a crusty toggle switch, I would probably use a pull-up around 1k (maybe less if the contacts are really nasty). Most other things would probably be 10k. This is based on what worked the last time and really only applies to CMOS but CMOS is about all we use these days. If I did run across TTL, I would use 1k to a switch (again, could be less) and 2.2k for a simple logic pull-up. I showed earlier how to calculate the proper values.