cancel
Showing results for 
Search instead for 
Did you mean: 

GPIO_Analog pin without ADC connection?

Ricko
Senior II

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 :)

 

 

Ricko_0-1731894166741.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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.

View solution in original post

2 REPLIES 2
STTwo-32
ST Employee

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.

Thank you @STTwo-32