Skip to main content
Channamallesh Hiremath
Associate II
October 16, 2017
Solved

adc and dma data sheet

  • October 16, 2017
  • 2 replies
  • 1325 views
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

    This topic has been closed for replies.
    Best answer by Tesla DeLorean
    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

     

    2 replies

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

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

    Thanks for your help.

    Mallesh 

    Tesla DeLorean
    Guru
    October 16, 2017
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Channamallesh Hiremath
    Associate II
    October 16, 2017
    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. 

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    October 16, 2017
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..