cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop regular convertion on STM32F4 ADC in continuous scan mode

peterdonchev
Associate III
Posted on May 09, 2018 at 00:03

Is it possible to stop the regular conversion in continuous scan mode (on STM32F437) and start from the beginning without disabling the ADC (to not affect the injected channels conversion )? I.e. when all required samples are transferred by the DMA.

#scan #continuous-conversion #stm32 #adc
3 REPLIES 3
T J
Lead
Posted on May 09, 2018 at 01:07

I don't think do, you have to let the DMA complete.

I do this every minute,

Wait to end of cycle, stop DMA, start calibrate, wait to finish, restart DMA.

peterdonchev
Associate III
Posted on May 09, 2018 at 09:52

Hi,

I wait DMA to complete and but when it finish, ADC will continue its operations. If re-enable the DMA, it probably do not start the transfer from the first channel

in the sequence, but from the channel which is currently converted. There is not ADC calibration in STM32F437.

This operation was very easy on STM32F3, with ADC DMA in OneShot mode. I want to achieve the same with STM32F437.
Posted on May 09, 2018 at 12:55

I leave it running. Spare no expense on the power budget.

I think we consume 30mA at full steam.