STM32U5 ADC1 bulb sampling multiple channels
Hello,
I am using ADC1 on STM32U5 to sample two channels periodically using the DMA and a TIM6 trigger. I am doing this in bulb mode since I would like for the ADC capacitor to charge for the entire duration.
I had thought that the ADC would sample the first channel on the first TIM6 trigger and then the second channel on the second trigger. However, it seems like the ADC is racing through both channels when triggered, probably sampling them according to the SMPR register sample time for those channels.
Is that how bulb mode is expected to work when sampling multiple channels? It isn't clear. I would like the time delta between each sample to be locked to the TIM6 period rather than sampling both channels as quickly as possible then "bulbing" only the first channel.
If that's just the way bulb mode works with multiple channels, would SMPTRIG work for me instead? SMPTRIG explicitly states that sampling starts on the rising edge and conversion triggers on the falling edge, so maybe I could use CCR registers in the timer unit to shape the waveform I would like and each timer period would do just one channel rather than racing through them all? Or will SMPTRIG also race through the remaining channels after the first one is triggered?
I can provide the full ADC register configuration if it would be helpful.
Thanks,
TG