1 year ago

#196412

test-img

gregni

How to turn all gpio pins into analog mode. Stm32

I am currently working on a project, with stm32l0 and cmsis library, which I need to make it as low power as I can. So I noticed that if we use a mode of low power for example stop mode, we can reduce the power more by making all gpio pins into analog mode. According to the reference manual when I/O pin is configured as analog, the Schmitt trigger is deactivated, providing zero consumption for each pin. So when the system goes low power, I need to create a function in order to convert all gpio pins into analog mode and when the system exit from low power must be another function that turns all gpio pins as it was before. Is my thought about that correct? What did you have to say for this change in gpio pins? Can anyone provide an example or something that could be useful for me in order to make this happen.

Thank you in advance.

c

embedded

stm32

cmsis

0 Answers

Your Answer

Accepted video resources