cancel
Showing results for 
Search instead for 
Did you mean: 

PWM -> ADC & DMA

oeliks
Senior

Hi, I want to​ trigger ADC with PWM, transfer it to array by DMA.

But first I have problem with setting dma.

......

Question 1.

Do I have to start HAL_ADC_Start before I use HAL_ADC​_Start_DMA

Or will this second function start adc & dma?

1 REPLY 1
oeliks
Senior

Question 2.

Want to set buffer that will collect 10 samples on single channel adc.

Buffer[10];

HAL_ADC_Start_DMA((&hadc), (uint32_t*)Buffer, 1);

​will this work?