GPIO change Mode without losing the charge
Hello everybody,
I'm trying to get from a pulled up state / driven up state to a tristate pin without losing the charge that is on that pin.
It seems to me, that whenever a pullup is deactivated (PUPDR), that STM32 will first discharge the pin and then enter the tristate.
The same happens when changing the mode (MODER) from (high-)driven output to tristate input. Also the pin gets discharged first and then floats from 0V to some 120mV or so within some seconds...
I've tried STM32F401, STM32F103, STM32L152 ... they all behave the same, unfortunately.
Do you know of any way to get from a high pin to a tristate pin without the pin being discharged first? So that the pin floats at 3V ?
Thank you and best regards
