Hi
Your understanding is correct. It is indeed what I wanted to do.
The reason why I want to try this example is that I want to use DMA and ADC together.
I want to achieve the function of synchronous acquisition of 3 ADCs. Currently, I have accomplished this using a certain method. The three ADCs use the timer to trigger for synchronous acquisition, and a DMA channel is configured for each ADC. In the DMA channel interrupt, it is determined whether the current data acquisition is completed. This means that there are three ADCs corresponding to three DMA channels.
After the DMA transfer is completed, since it is a 3-channel operation, there will be three DMA channel interrupt service functions.
1. I want to reduce the number of DMA interrupts from three to one in order to lower the system load.
2. Since it is a synchronous collection, it is impossible to determine which DMA transfer was completed first. Therefore, it is necessary to check whether all three channels have been completed.
I have studied the channel joint function of DMA. Can I achieve the above function by using 3 minor loops and 1 major loop? This way, there will only be one DMA channel interruption, and it can ensure that each ADC data is successfully transferred.
I'm not sure if my understanding is correct. Please let me know if I'm wrong.
Thank you.