Skip to main content
Explorer
November 27, 2024
Question

Question about current consumption on pin

  • November 27, 2024
  • 1 reply
  • 733 views

Hi all

I'm working with an stm32f4 and I have a question about current consumption on stop mode, on the pin PC1 I have a external pull up 10k connected to 3.3v, before stop mode what is the best mode to avoid PC1 consume 0.33ua ? Right now I have put all gpio in ANALOG, in this mode PC1 avoid connection and 0.33ua are not present ?

 

    This topic has been closed for replies.

    1 reply

    Super User
    November 27, 2024

    Where does 0.33uA come from?

    A 10k resistor across a 3.3V supply will take 0.33mA  (ie, 330uA) - is that what you meant?

     


    @SBaro.11 wrote:

    on the pin PC1 I have a external pull up 10k connected to 3.3v


    The pullup will only pass any current when the pin is driving low - so don't drive the pin low!

    In general, for minimum current, set GPIO pins to Analog.

    SBaro.11Author
    Explorer
    November 27, 2024

    Ok so if I put PC1 in Analog mode no current pass through my external resistor when I'm in stop mode ? Bad news for me in stop mode I have 480ua current and I hoped that the problem would come from PC1, so my issue coming from another part.

    Super User
    November 27, 2024

    @SBaro.11 wrote:

    Ok so if I put PC1 in Analog mode no current pass through my external resistor .


    There will always be some leakage.

     


    @SBaro.11 wrote:

     in stop mode I have 480ua current and I hoped that the problem would come from PC1,


    You could easily check by disconnecting the resistor...