Hi mtenw,
Thanks for your reply.
If setting up different source addresses (DR0 to DR7) for DMA is not a desirable approach. What would you suggest to implement Question 2?
In the Rocky's reply, it had pointed out the most important question: sample 2 analog source simultaneously. Now you want to integrate the DMA engine to achieve the higher sampling rate and definitely, the DMA engine is the better choice than fetch the sample data in the IRQ mode.
To implement it, the hardware source for the ADC is identical with the Rocky's proposal, to integrate the DMA engine, for instance, ADC0 use the DMA channel 0 and set the ADC0 as the DMA source request peripheral in the DMA channel configuration register, ADC1 can use another DMA channel except the channel 0 and set the ADC1 as the DMA source request peripheral in the DMA channel configuration register.
You can learn the more information about the DMA flow control in the section 21.8.2 Flow control.
Hope this is clear.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------