Skip to main content
Associate III
November 1, 2023
Solved

ADC_Chanels_in_HAL

Hi to all!  I connected all channels to possible pins in my ADC.  How I can use the HAL functions to select a separate channel and read the value from it?  Has anyone faced these issues?  I will be grateful for the answer!

This topic has been closed for replies.
FBLBest answer
ST Technical Moderator
November 1, 2023

Hello @Embedded_dev1 , 

 

Here is an example firmware. You can simply configure ADC channel. 
STM32Cube\Repository\STM32Cube_FW_F1_V1.8.5\Projects\STM32F103RB-Nucleo\Examples\ADC\ADC_AnalogWatchdog

This wiki might be helpful as well. Getting started with ADC - stm32mcu

 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL

2 replies

FBLBest answer
ST Technical Moderator
November 1, 2023

Hello @Embedded_dev1 , 

 

Here is an example firmware. You can simply configure ADC channel. 
STM32Cube\Repository\STM32Cube_FW_F1_V1.8.5\Projects\STM32F103RB-Nucleo\Examples\ADC\ADC_AnalogWatchdog

This wiki might be helpful as well. Getting started with ADC - stm32mcu

 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Associate III
November 9, 2023

Thanks for the answer!