What is the role of "Continuous Conversion" ADC option, when using Timer Event to trigger conversion?
I've enabled the ADC's SCAN option to convert 8 channels, and have the conversion triggered from a 16khz Timer Event. A DMA stream is enabled to get the data.
I'm unsure what the ADC's Continuous Conversion ("ContinuousConvMode") should be set to. For example, if enabled, then once the first trigger event happens, it will therafter run continusouly?
Also, is it the case that ch1 would always be sampled in sync with the 16khz trigger event, but channel 8 is always sampled at 16khz+delta? i.e. the timer event indicates only the time the first channel will be sampled?
Finally, is it best practice to first start the dma, then the timer, or the other way around? And in CIRCULAR mode, the DMA length is set to the number of channels to be converted before wrapping back to the start of the buffer?
#define NUMBER_OF_ADC_CONVERSIONS 8
HAL_ADC_Start_DMA(&hadc1, (uint32_t*)&ADC_DATA[0], NUMBER_OF_ADC_CONVERSIONS );
HAL_TIM_OC_Start (&htim4, TIM_CHANNEL_1 );
