Il 26-Gen-98, Brian Schousek scrisse: >then this pseudocode will do what you are describing: >set port1 input >set port2 input > if port1=high, node=high > if port2=low, node=low >now set port2 to output > set port2=1. temp=port1 > set port2=0. temp2=port1 > if (temp=1) and (temp2=0) then node=high-z This code works better than mine in the detection of the hi-z state, but is too sensible to electrostatic charges.. i.e. my hand is able to change the state at 8 cm of distance :-) Anyway i'll put my code on my homepage... if anyone has a better way to do it, simply email me. http://freepage.logicom.it/azummo/ -- - *Alex* - (azummo@ita.flashnet.it)