AnsweredAssumed Answered

LPC43xx ADC multiple channels with DMA

Question asked by mtenw on Nov 4, 2016
Latest reply on Dec 22, 2016 by jeremyzhou

I am trying to sample multiple channels from both ADC0 and ADC1 at the same time using timer match signal. Specifically, I am using LPC4370. Thanks to Rocky's previous post at http://community.nxp.com/message/829205, I have a better idea of doing this. However, instead of using interrupts, I need to use DMA in order to sample multiple channels at higher rates, for example, 8 channels at ADC0 each at 50kHz. Some questions occur to me when I think of this approach:

 

1. When a timer match signal occurs, is channel 0 sampled first, then after 11 ADC clock cycles, channel 1 is sampled, ... and so on. Can anybody confirm this?

 

2. I want to keep samples from both ADC0 and ADC1 in memory in the order of the time that is sampled. Does it require 2 DMA channels? Can it be done using 1 DMA channel?  What is the best way to do it?

 

Any help is appreciated. Thank you so much.

Outcomes