Skip to main content
Graduate II
November 18, 2024
Solved

GPIO_Analog pin without ADC connection?

  • November 18, 2024
  • 1 reply
  • 818 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

 

    This topic has been closed for replies.
    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-32Answer
    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 

    RickoAuthor
    Graduate II
    November 18, 2024

    Thank you @STTwo-32