cancel
Showing results for 
Search instead for 
Did you mean: 

ADC Result false

HDIA.1
Associate III

Hello

I need to receive the value of multiple ​Channel of ADC 1

I followed this tuto : https://controllerstech.com/stm32-adc-multi-channel-without-dma/

But when my pin 1 is connected to GND i have 1500 of numeric value

Already tested in Arduino and the adc work perfectly ​

It is a nucleo l432kc ​without modification

Do you have an Idea

Thanks​

1 ACCEPTED SOLUTION

Accepted Solutions
HDIA.1
Associate III

Finally y found the solution . The problem was that between two ADC_PollForConversion i was stopping the ADC and that doest work

View solution in original post

4 REPLIES 4
raptorhal2
Lead

It is difficult to determine your problem without seeing the code as implemented. Perhaps you are inadvertently converting the temperature channel.

Did you debug step through the code to ensure it is working as expected?

Cheers, Hal

HDIA.1
Associate III

0693W00000Hp96NQAR.pngHere is the code , and no i'm not reading temperature channel

Thanks for the response

LCE
Principal

Have you set the ADC input GPIO pins to the correct alternate function?

HDIA.1
Associate III

Finally y found the solution . The problem was that between two ADC_PollForConversion i was stopping the ADC and that doest work