cancel
Showing results for 
Search instead for 
Did you mean: 

DMA and ADC

orn
Associate II
Posted on October 08, 2012 at 15:25

If I enable three pins from the same ADC (eg ADC3) to acquire three different signals how do I retrieve the data of the three pins? using the DMA? please attached a few lines of code as an example?

thanks
1 REPLY 1
raptorhal2
Lead
Posted on October 08, 2012 at 15:43

Each ADC has one data register, so DMA must be used for your requirement. One of the DMA initialization step is to point the DMA to your 3 word buffer to contain conversion results.

The standard peripheral library comes with a good DMA ADC example.

Cheers, Hal