2023-08-16 01:35 AM - last edited on 2023-08-16 01:48 AM by KDJEM.1
i am using dma circular mode for reading adc from 2 different channel. But the main problem that i faced was the value when it is in circular mode is getting offset from the value that i expect from the adc but when i used the normal mode the value was correct. Iam attaching my code below.
2023-08-16 01:40 AM
Which STM32?
sConfig.SamplingTime = ADC_SAMPLETIME_2CYCLES_5;
Is the given signal's impedance low enough to support such short sampling time?
JW
2023-08-16 01:42 AM
stm32g4 series
2023-08-16 05:17 AM
> sConfig.Offset = 182;
What values are you getting, and what values are you expecting? Increase sample time.