Skip to main content
Associate
January 31, 2024
Solved

How to find GPIO pin for Adc module

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.
STTwo-32
STTwo-32Best answer
ST 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 

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.

4 replies

Pierre_Paris
ST Employee
January 31, 2024

Hello @BinhTsks,

I think these articles may help you :

Kind Regards,

Pierre

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.
BinhTsksAuthor
Associate
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-32
STTwo-32Best answer
ST 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 

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.
BinhTsksAuthor
Associate
February 1, 2024

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