cancel
Showing results for 
Search instead for 
Did you mean: 

Turn off all GPIO pins for power

DS.4
Senior II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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".

View solution in original post

1 REPLY 1
TDK
Guru

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".