Shop OBEX P1 Docs P2 Docs Learn Events
Tri-state — Parallax Forums

Tri-state

darkxceeddarkxceed Posts: 34
edited 2008-09-20 17:18 in Propeller 1
Hello,

I wanted to know if it is possible to set a IO pin to tristate(hi-Z).

Maybe you know about led sensing, this is what interrested me.
First load the capasity of a led(it is small yes), then count how long it takes to unload it.
This unload has to be done in tristate because of the high input impedance of the pin.
Another pin will measure the value till it drops under the treshold of the input, there will be a big resistor ofcourse to the input, else the voltage will unload too fast.

With this example I want to experiment to measure the light, because the unloading also depends on the light that hits the led.

·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-09-20 16:36
    Input mode is high impedance (tristate)
  • darkxceeddarkxceed Posts: 34
    edited 2008-09-20 17:08
    Ok it was maybe a simple question but when searching for tristate I could not find something about it on this page.

    thanks!
  • Mike GreenMike Green Posts: 23,101
    edited 2008-09-20 17:18
    When this happens next time, search the Wikipedia (Google "wiki tristate" for example) for an explanation. You'll probably get enough information to answer your question or problem just with that.
Sign In or Register to comment.