DMA and ADC
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-10-08 6:25 AM
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
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-10-08 6:43 AM
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