2020-01-04 11:51 PM
Hi, I want to set 3 channels of adc and transfer data via dma to buffer.
But I want to read randomly, sometimes only ch1, sometimes only ch3 etc. One channel at time. And fill buffer with data from one channel.
Do I have to set:
-adc continous - disable
-scan channels- disable
In code I will only change the "rank" values of channels? Deinit and init adc. Start adc with dma?
Will only rank1 channel be transfered via dma to buffer?
2020-01-05 12:28 AM
There are subtle differences in the ADC and DMA peripherals between STM32 series, so knowing the part number would be useful.
2020-01-05 12:42 AM
Stm32f103 has only 1xDMA 2xADC