2019-02-21 04:26 AM
I would like to sample 3 channels simultaneously and continuously.
The plan is to use the ADC in continuous operation and DMA.
Is it possible to have all 3 ADC sample at the same time?
And if so, how can this be achieved?
2019-02-21 05:39 AM
Yes, that would be Triple Simultaneous mode. The ADC can trigger off a single source, and pull via DMA from the CDR (Common Data Register)
2019-02-21 06:02 AM
Do I have to define a trigger source for continuous operation?
Is there an example for this mode of operation somewhere?
2019-02-21 06:08 AM
Generally I don't drive the ADC into saturation.
I'd use a trigger, but if you enable the continuous operation it will continue in a tight loop provided the DMA continues to service it.
I'd use the DMA as a double length buffer, circular, managing ping/pong operation via HT and TC interrupts.
I'm sure there are examples if you look under the HAL trees.