cancel
Showing results for 
Search instead for 
Did you mean: 

adc and dma data sheet

Channamallesh Hiremath
Associate II
Posted on October 16, 2017 at 05:12

All,

I am trying to use ADC in two-channel mode and then sending o/p samples to two different buffers using DMA. Each channel output goes to its own buffer. How do I set this up? 

I am just looking at example on DMA.

Is there any quicker way to learn about the way to set up ADCs, DMA?

I am using STM32F3DISCOVERY board.

Thanks,

Mallesh

1 ACCEPTED SOLUTION

Accepted Solutions
Posted on October 16, 2017 at 15:07

The Reference Manual should have a good register level breakdown of things.

http://www.st.com/content/ccc/resource/technical/document/reference_manual/4a/19/6e/18/9d/92/43/32/DM00043574.pdf/files/DM00043574.pdf/jcr:content/translations/en.DM00043574.pdf

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

5 REPLIES 5
Channamallesh Hiremath
Associate II
Posted on October 16, 2017 at 06:28

Also, I want to have DMA with ping pong buffer.

Thanks for your help.

Mallesh 

Posted on October 16, 2017 at 10:30

I find the better way than copying other people's examples is to read the manual and come up with my own, but I'm playing with a stacked deck.

No, the DMA will not demux the stream. To get two non-interleaved arrays would require two ADC and DMA.

For ping-pong operation I typically double the bufierce size and use the DMA HT and TC interrupts to service each half.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on October 16, 2017 at 13:02

Thanks for your reply. Do you have any document on DMA which explains its operation and also has the register set?

I see the documentation on ADC explaining its operation. But register set is not there?

Right now I am trying to understand the setup using HAL and use the driver code. It will be good to have the register set so that we can understand and double check the configuration. 

Posted on October 16, 2017 at 15:07

The Reference Manual should have a good register level breakdown of things.

http://www.st.com/content/ccc/resource/technical/document/reference_manual/4a/19/6e/18/9d/92/43/32/DM00043574.pdf/files/DM00043574.pdf/jcr:content/translations/en.DM00043574.pdf

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on October 16, 2017 at 15:41

Thank you Clive.

Mallesh