cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 L031K6 Multi channel ADC

JEsla.1
Associate

Hello. I am looking a way to read values from multiple channels of ADC module of a L031K6 MCU. Following an example in youtube I tried to use interrupt method. In the video he uses a F051R8Tx MCU. I develop code in STM32CubeIDE and tried the same ADC configurations but in my case it does not work. It only reads the first channel (highest rank) and writes to the first index of the array. All the other elements of the array always remain "0". I also checked value of "i" and it never becomes "1". From this result, I understand that it does not do sequential conversion. So I am really wondering whether it is possible to read values from multiple ADC channels of a L031K6. If so, I kindly ask your recommendations to do it. Thanks.

0 REPLIES 0