Skip to main content
Graduate
September 15, 2023
Question

ADC

  • September 15, 2023
  • 2 replies
  • 1594 views

In my project I am using STM32G030k8, in which I need to use 6 ADC channels and 2 of them are Pa11 and PA12

PA9 and PA8 as gpio .

I couldn't able to configure PA11 and PA12 what is the alternate way to use that channel

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    September 15, 2023

    RM0454 describes in section 14.3.8 that in mode Fully Configurable only inputs 0...14 can be used, which is also shown in STM32CubeMX. If you want to use ADC1.IN15 and higher, you have to set the ADC to Not Fully Configurable.

    Does it answer your question?

    Regards
    /Peter

    SRAM.11Author
    Graduate
    September 15, 2023

    Yes ,Thank you so much.

    Graduate II
    September 15, 2023

    Hello @SRAM.11 

    If you want to make PA12 and PA11 as ADC_IN16 and ADC_IN15 you need to take a look at RM0454 ADC section. And the DS12991 to understand the mapping of ADC channels.

    Best regards.

    II

    SRAM.11Author
    Graduate
    September 15, 2023

    Thank you.