I want to be able to switch my IO in output mode, from outputting 0 to High Impedance. When I look at the specs, I can't find any detail on how to set an output pin to high impedance. Could you give me the details?
Steve
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I want to be able to switch my IO in output mode, from outputting 0 to High Impedance. When I look at the specs, I can't find any detail on how to set an output pin to high impedance. Could you give me the details?
Steve
And using PxDIR is the only method to get a high-impedance pin.
If the pin is not in GPIO mode but connected to some module, you cannot get an open-drain output (the only exception is I²C).
**Attention** This is a public forum