Marks256
New Member
How would one detect if a line is tristate or floating without a status line?
One can easily tell if a line is high or low, simply by reading it, but what if the line is in tristate? What about floating?
One technique i was thinking of was connecting an io pin to the line in series with a resistor, and apply a voltage. If the line changes with the input, then it is tristate/floating. if the line does not change, then it is being held in a state. So basically a configurable pull up/down resistor. Would this work? I don't see why it wouldn't, however i really don't see it being the "right" way to do things![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Thanks for the help!
-Dusty
One can easily tell if a line is high or low, simply by reading it, but what if the line is in tristate? What about floating?
One technique i was thinking of was connecting an io pin to the line in series with a resistor, and apply a voltage. If the line changes with the input, then it is tristate/floating. if the line does not change, then it is being held in a state. So basically a configurable pull up/down resistor. Would this work? I don't see why it wouldn't, however i really don't see it being the "right" way to do things
Thanks for the help!
-Dusty