2024-11-17 05:45 PM
Hi,
on the STM32U5G9VJT6Q, when I click on many pins such as PD5 (screenshot below) it shows GPIO_Analog but there does not seem to be any ADC channels (or other analog functionalities) connected to it.
What does setting it to GPIO_Analog do?
Can I still assign somehow a ADC to PD5? If so, how?
Thank you :)
Solved! Go to Solution.
2024-11-17 08:55 PM
Hello @Ricko
The reason to turn ANY pin to analogue is to turn OFF the schmitt trigger on the input that feeds down stream digital logic. This will decreases a bit the current consumption of MCU. That is why Analog Input is a recommended mode for all GPIOs, which are unused by application.
For the PD5 of the STM32U5G9VJT6Q, we can't use it as ADC Channel.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-11-17 08:55 PM
Hello @Ricko
The reason to turn ANY pin to analogue is to turn OFF the schmitt trigger on the input that feeds down stream digital logic. This will decreases a bit the current consumption of MCU. That is why Analog Input is a recommended mode for all GPIOs, which are unused by application.
For the PD5 of the STM32U5G9VJT6Q, we can't use it as ADC Channel.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-11-18 07:01 AM
Thank you @STTwo-32