Does anybody have experience with floating pins?
iQuit
Posts: 78
Was wondering if anybody knows the state of a floating pin on a Propeller.
Given...
temp := INa
and nothing connected to any pin, would temp read all zeros, or some random value.
I will test this tonight when I get home, but just curious if anyone has some personal experience with this. I'm a new Student of Spin (SoS), so
go easy with my lack of knowledge.
Dan := thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"She may not be very pretty now, but she was somebody's baby once." Bugs Bunny
Given...
temp := INa
and nothing connected to any pin, would temp read all zeros, or some random value.
I will test this tonight when I get home, but just curious if anyone has some personal experience with this. I'm a new Student of Spin (SoS), so
go easy with my lack of knowledge.
Dan := thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"She may not be very pretty now, but she was somebody's baby once." Bugs Bunny
Comments
Random.
BUT with little wire as antenna it is possible it will read Yours AC Power net frequency.
Regards
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nothing is impossible, there are only different degrees of difficulty.
For every stupid question there is at least one intelligent answer.
Don't guess - ask instead.
If you don't ask you won't know.
If your gonna construct something, make it·as simple as·possible yet as versatile as posible.
Sapieha
seconds to look for a PC, update its firmware then load the EEprom into its ram.
All the I/O pins are floating during this period and critical lines like chip selects can toggle. This
could for instance, initialize a display improperly or send corrupted data to an SD Card.
Russ
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
Thanks for the information.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"She may not be very pretty now, but she was somebody's baby once." Bugs Bunny
Try the same experiment with a 1K resistor across the inputs of your DMM and you will see this is so. Knowing that CMOS inputs are very high impedance, even higher than your DMM, then you will understand why they should not be left "floating" as the signal will appear to be random and extremely variable. There is also another reason too in that CMOS inputs are designed for on/off signals and not for voltages in between these limits so they can start to draw more "crowbar" power from the supply when they are in this state.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
Given the code below, the value stored in temp is quite stable at 00000000, until I touch a wire attached to one of the pins--I'm using a demo board.
While holding the wire, the bit toggles, very fast, between 0 and 1. I would expect this. However, I did not expect the floating pins to be so stable at zero when floating.
And there didn't seem to be any cross-talk between two wires next to each other while only touching just one of them.
Of course, I don't think this would make a very good design, but interesting non-the-less.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"She may not be very pretty now, but she was somebody's baby once." Bugs Bunny
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
.Steve
CMOS is intrinsically high-impedance or more correctly high-resistance (as there is capacitance) but it is not the aim of a CMOS input to place no load on any "sensing device".
Pull-ups and pull-downs are necessary though because these inputs may be left floating when driven by an open-collector type signal or a switch etc. They may also be necessary if the pin is configured as an output but during reset and before software can change it to an output it's indeterminate state might cause problems to the device pin that it is supposed to be driving as that device pin would be left floating too.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*