2024-09-12 12:27 AM
Hello.
We are using PA3 pin as input with pin pull up enabled.
Power consumption of the board is around 36 microamps when pin is not connected to ground.
But when we connect PA3 to ground we have current increase to 74 microamps.
I think that we have some current leakage from the pull up resistor to ground.
How can we fix this?
Thank you!
2024-09-12 01:21 AM
> How can we fix this?
By not pulling the pin to ground...
You can use an external pullup (and switch off the internal pullup) with higher value. Its maximum value (thus minimum current) is given by the pin's leakage, see datasheet (usually around 1uA, so you could usually use something like 1MOhm values).
JW