Skip to main content
Explorer II
January 31, 2024
Solved

How to find GPIO pin for Adc module

  • January 31, 2024
  • 2 replies
  • 1903 views

Hello everyone,i want to config gpio pin as adc chanels on stm32f103c8t6, i have read the GPIO chapter and ADC chapter,but i can not find out what is GPIO pin for each ADC chanel,example GPIOA_pin0 for ADC1_chanel0...,what is the chapter describe about this?? Thank you for helping!!!

    This topic has been closed for replies.
    Best answer by STTwo-32

    Hello @BinhTsks 

    I also want to add to the resources that @Pierre_Paris  added that you can refer to the table 5 of the DS5319 to understand how the ADC Channels are mapped to the GPIO pins.

    PS: ADC12 means ADC1 and ADC2.

    Best Regards.

    STTwo-32 

    2 replies

    ST Employee
    January 31, 2024

    Hello @BinhTsks,

    I think these articles may help you :

    Kind Regards,

    Pierre

    BinhTsksAuthor
    Explorer II
    February 1, 2024

    Thank your solution,but for some reasons i don't use stm32cubeide so i want to know the GPIO pin for ADC to config ADC through register directly

    STTwo-32Answer
    Technical Moderator
    January 31, 2024

    Hello @BinhTsks 

    I also want to add to the resources that @Pierre_Paris  added that you can refer to the table 5 of the DS5319 to understand how the ADC Channels are mapped to the GPIO pins.

    PS: ADC12 means ADC1 and ADC2.

    Best Regards.

    STTwo-32 

    BinhTsksAuthor
    Explorer II
    February 1, 2024

    Thank you for your information,it helped me handle my problem