Skip to main content
Senior
November 18, 2024
Solved

GPIO_Analog pin without ADC connection?

  • November 18, 2024
  • 1 reply
  • 1135 views

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

 

Best answer by STTwo-32

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 

1 reply

STTwo-32
STTwo-32Best answer
Technical Moderator
November 18, 2024

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.
RickoAuthor
Senior
November 18, 2024

Thank you @STTwo-32