cancel
Showing results for 
Search instead for 
Did you mean: 

What GPIO modes (input, output or alternate function) affect STOP mode current consumption?

Pieter Conradie
Associate III

In the manual, it states that it is better to change an input pin to analog to disable the Schmidt trigger input current consumption during STOP mode. How much does this save? Should the pull-up / pull-down be disabled too?

If a GPIO pin is configured as an output, will this use more current than when it is configured as analog?

If a GPIO pin is configured for an Alternative Function (input), does it use more current than when it is configured as analog?

If a GPIO pin is configured for an Alternative Function, but the peripheral is not initialized, does it use more current?

Thanks in advance,

Pieter

1 ACCEPTED SOLUTION

Accepted Solutions
Amel NASRI
ST Employee

Hi @Pieter Conradie​ ,

The AN4899 (STM32 GPIO configuration for hardware settings and low-power consumption) provides a detailed description of the various GPIO modes. You will find there some guidelines for power optimization.

Have a look, you will find answers to some of your questions there.

-AMel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Amel NASRI
ST Employee

Hi @Pieter Conradie​ ,

The AN4899 (STM32 GPIO configuration for hardware settings and low-power consumption) provides a detailed description of the various GPIO modes. You will find there some guidelines for power optimization.

Have a look, you will find answers to some of your questions there.

-AMel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.