2022-09-16 10:03 AM
Hi there!
I need your help before i became crazy. I configurate (with DMA) 9 ADC input plus one for Vrefint channel of my STM32F051 discovery, Now my problem:
i read a wrong value of Vrefint channel the value is equal a Ing1. But if i configure ony Vrefint channel work perfect and afther i did the math. I reconfigure again my 9 ADC input without Vrefint channel and the value are perfect just 1mV of error but right now i diden't do any average . Before i forgot i did the calibration before i start . Please some one can help me ?
Thank you soo much
Sergio
Solved! Go to Solution.
2022-09-17 06:05 AM
Vref is ADC_raw[9]
2022-09-16 07:26 PM
Please provide a better translation of "a lng1".
Are the Vref channel sampling cycles the same for converting this channel by itself and for converting it after the other 9 channels?
Cheers, Hal
2022-09-16 11:41 PM
Hi!
thanks for your replace, about your first question what i wanna mean is if i put a voltage on ADC_ing_1 and the data is write in my array ADC_raw[0], if i read the value in ADC_raw[10] i have the same value but i aspect to find the value of Vref_Channel. Question when i confugure ADC with DMA if i have 10 ADC input the DMA at the first scan write inside my array ADC_raw[0] = ADC_ing1 ADC_raw[1]= ADC_ing2 ....... ADC_raw[10]= Vref_channel right ?
About your second question yes i diden't change nothingh
Thanks Sergio
2022-09-17 06:05 AM
Vref is ADC_raw[9]
2022-09-17 07:10 AM
My Good what i terribel istale i did
Thank you
2022-09-17 07:11 AM
terrible mistake