Read GPIO Analog
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-04-28 5:12 AM
Hello,
I set one of GPIO to Analog mode and I want to read its value, by using HAL library.
Should I just use HAL_GPIO_ReadPin to read the value?
Thank you.
Solved! Go to Solution.
Labels:
- Labels:
-
GPIO-EXTI
-
STM32F1 Series
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-01-10 12:10 AM
The GPIO analogue option is not to be confused with an ADC input, but in principle has two functions:
- Disconnecting the external pin from the digital function. This is useful, for example, to disconnect the Schmitt trigger present at the digital input from a floating input, because this can lead to high-frequency switching of this trigger with associated current consumption.
- Connecting any analogue peripherals (e.g. opamp, comparator, ADC) that may be present, but do not necessarily have to be in the respective case.
from
If you feel a post has answered your question, please click "Accept as Solution".

- « Previous
-
- 1
- 2
- Next »