Skip to main content
Explorer II
September 12, 2024
Solved

STM32L431 power consumption.

  • September 12, 2024
  • 1 reply
  • 715 views

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!

    This topic has been closed for replies.
    Best answer by waclawek.jan

    > 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

    1 reply

    Super User
    September 12, 2024

    > 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