2024-09-19 07:10 PM
STM32G474
In RM0440 Rev 8, page 641, I learned the "DMACFG bit" in ADC configuration register (ADC_CFGR) set the ADC in either one-shot mode or circular mode. But there is a separate mode setting in DMA which is also one shot vs circular mode. If we use DMA to ransfer ADC result to memory, I am wondering whether this is a legitimate use case that we set the ADC and DMA in different mode?
Solved! Go to Solution.
2024-09-20 08:23 AM - edited 2024-09-20 08:26 AM
Hello @pxia.1 ,
We can put them in different modes: ADC one-shot and DMA circular. In this case it will be one-shot.
So, if you need circular, you need both to be circular. Otherwise, it will be one-shot.
If only one is circular, it will not be circular.
2024-09-20 08:23 AM - edited 2024-09-20 08:26 AM
Hello @pxia.1 ,
We can put them in different modes: ADC one-shot and DMA circular. In this case it will be one-shot.
So, if you need circular, you need both to be circular. Otherwise, it will be one-shot.
If only one is circular, it will not be circular.