cancel
Showing results for 
Search instead for 
Did you mean: 

DMA circular mode and multiple adc channels

as0wanth
Associate

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.

 

3 REPLIES 3

Which STM32?

  sConfig.SamplingTime = ADC_SAMPLETIME_2CYCLES_5;

Is the given signal's impedance low enough to support such short sampling time?

JW

stm32g4 series

 

TDK
Guru

> sConfig.Offset = 182;

What values are you getting, and what values are you expecting? Increase sample time.

If you feel a post has answered your question, please click "Accept as Solution".