cbmeeks wrote:
I see different values used. Would 3.3k be good on all inputs? This would only be for CMOS (65C02).
3.3K is fine.
When you pull up an input that's not connected to an output, the only current that goes through the pullup resistor is the current to keep the input high; when you attach another (output) device that wants to pull the input low, it has to be able to sink the current to pull the input low, plus the current through the resistor.
But with a CMOS input, the input impedance is so high that you can pretty much ignore the current that goes into the input. So for simplicity, you can dimension your resistor in such a way that, in the worst case (where the hypothetical device tries to pull the input all the way to ground), the current through the resistor is less than what the output can sink. Ohm's Law says that in the worst case (where the input is shorted to ground), a 3.3K resistor pulling up to a 3.3V power supply will have 1mA running through it. (I=V/R=3.3V/3300ohm=0.001A). In general, most outputs can sink at least 20mA so the 3.3K resistor will only use 1/20th of the available capacity. That's just fine.
If you use a lower pullup resistor value, you eventually get into a danger zone where an output can't sink enough current, and the output's pull-down transistor fails (or if you have a really strong output, you might burn your resistor because it gets too hot). But this doesn't happen until you're in the ~200 Ohm range or so.
If you use a higher pullup resistor value, you eventually end up with a resistor that lets so little current through that it doesn't pull the input up anymore when nothing else is pulling it down. Also, you end up with glitchy-ness because the input will have just enough bias voltage to be really close to going high, but not quite. It will start acting like a touch sensor: when you touch the contact with your finger, the current through your body to ground, and naturally occurring electric fields from the mains will cause the input to go low or high, at a 50Hz or 60Hz frequency. This happens with pullup resistors in the 100K range or so.
So, personally I'd stick to between 2.2K and 10K.
===Jac