Skip to main content
SKund.1
Associate II
June 28, 2021
Solved

GPIO pin current info

When a GPIO pin is connected to power an external device via Magnetic switch, from the STM32 point of view how does it know if the Magnetic switch is ON/OFF?

ON -> Device is powered ON similarly OFF.

Can STM32 detects change in current on GPIO pins?

Any suggestions would be much appreciated.

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
June 28, 2021

There's no provision to measure pin current in STM32. You would need to add your own external circuitry for that.

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
June 28, 2021

There's no provision to measure pin current in STM32. You would need to add your own external circuitry for that.

JW

SKund.1
SKund.1Author
Associate II
June 28, 2021

Thanks for clarifying.