View previous topic :: View next topic |
Author |
Message |
david900 Guest
|
output low or high impedance only |
Posted: Sat Apr 07, 2007 2:35 pm |
|
|
How do I configure an IO pin to have high impedance when not outputting low (0V)? Basically I want the pin to have just two state: low or high impedance. |
|
|
Ttelmah Guest
|
|
Posted: Sat Apr 07, 2007 2:43 pm |
|
|
output_float.
It basically turns the pin into an input, without reading the data, leaving it in a high impedance state.
Best Wishes |
|
|
david9000 Guest
|
|
Posted: Sat Apr 07, 2007 2:47 pm |
|
|
bingo. Thanks |
|
|
david9000 Guest
|
|
Posted: Sat Apr 07, 2007 9:17 pm |
|
|
I know it's high voltage for an io pin, but when I input 9V from my battery, I can see 25mA is flowing into the high Z pin. Why?
I don't see any current flow when I input 5V from the regulator into the HIgh Z pin which is expected and good. |
|
|
dyeatman
Joined: 06 Sep 2003 Posts: 1934 Location: Norman, OK
|
|
Posted: Sat Apr 07, 2007 10:24 pm |
|
|
You are seeing junction breakdown because you are greatly exceeeding the chip maximum ratings (5.5VDC).. I'm surprised you didn't blow the chip.
From the manufacturer manual.
# Input voltage: Vin
Maximum voltage that may be applied to input pins.
This voltage is determined by the punch-through breakdown voltage of the input transistors or the breakdown voltage of input diodes, and therefore voltage exceeding this rating may destroy these transistors or diodes. |
|
|
|