Skip to main content
DS.4
Senior
March 18, 2024
Solved

Turn off all GPIO pins for power

  • March 18, 2024
  • 1 reply
  • 850 views

Sleep testing, 

How do I configure my GPIO pins to absolutely be sure

none of them are supplying any power ?

I wish to turn the all "off".

And if there is a quick way to do it via  CubeMx , so I won't miss any ? 

 

 

Thanks

 

This topic has been closed for replies.
Best answer by TDK

You can set them to input (high impedance), or analog mode, or you can set them to output 0V. Pick one of those options depending on the behavior you want. They will not be outputting a nonzero voltage in any of those modes.

Pins are in input mode or analog mode by default depending on your chip, so no action is typically necessary.

1 reply

TDK
TDKBest answer
March 18, 2024

You can set them to input (high impedance), or analog mode, or you can set them to output 0V. Pick one of those options depending on the behavior you want. They will not be outputting a nonzero voltage in any of those modes.

Pins are in input mode or analog mode by default depending on your chip, so no action is typically necessary.

"If you feel a post has answered your question, please click ""Accept as Solution""."