cancel
Showing results for 
Search instead for 
Did you mean: 

ADC_Chanels_in_HAL

Embedded_dev1
Associate II

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!

1 ACCEPTED SOLUTION

Accepted Solutions
FBL
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
FBL
ST Employee

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 Accept as Solution on the reply which solved your issue or answered your question.

Thanks for the answer!