Input question
Ugha
Posts: 543
There's something I don't quite understand about the Basic Stamp.
If a pin is set to input... I understand that it "floats" and the value can quickly flicker from 0 to 1.
An LED connected to an input pin will glow very dimly.
It also drains voltage from a cap much slower than if the pin was set to logic 0.
What exactly happens when a pin is set to input? It seems to allow power to flow both ways freely.
Is the voltage that comes from a pin in input state stable enough to be reliable? Or is there a fixed
range that it'll drift through?
I'm so confused [noparse]:([/noparse]
·
If a pin is set to input... I understand that it "floats" and the value can quickly flicker from 0 to 1.
An LED connected to an input pin will glow very dimly.
It also drains voltage from a cap much slower than if the pin was set to logic 0.
What exactly happens when a pin is set to input? It seems to allow power to flow both ways freely.
Is the voltage that comes from a pin in input state stable enough to be reliable? Or is there a fixed
range that it'll drift through?
I'm so confused [noparse]:([/noparse]
·
Comments
·
Normally an I/O pin gate structure in input mode will "leak" only about 1uA (see the datasheet) unless you connect it to something it's not intended to like a voltage above the supply voltage. It does not "allow power to flow both ways freely" unless it's broken or the device is not powered. There's no such thing as "input mode" if the device isn't connected to a proper power supply.