Skip to main content
shoaib
Associate
March 8, 2016
Question

ADc via timer2 and data is sent to dma on stm32f429

  • March 8, 2016
  • 2 replies
  • 736 views
Posted on March 08, 2016 at 16:40

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    March 8, 2016
    Posted on March 08, 2016 at 17:02

    DMA is a basic tenet of Computer Architecture, review standard texts if required.

    It is like a hardware memcpy(), paced by the peripheral.

    The samples appear in

    ADCTripleConvertedValues[0] ADC1, Channel 1

    ADCTripleConvertedValues[1] ADC2, Channel 1

    ADCTripleConvertedValues[2] ADC3, Channel 1

    ADCTripleConvertedValues[3] ADC1, Channel 2

    ...

    ADCTripleConvertedValues[0 + (SAMPLES / 2)]

    ADCTripleConvertedValues[1 + (SAMPLES / 2)]

    ADCTripleConvertedValues[2 + (SAMPLES / 2)]

    ...

    For the respective HALF of the buffer, as filled at HT (Half Transfer) and TC (Transfer Complete)

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    March 8, 2016
    Posted on March 08, 2016 at 17:05

    You should use the other example, you clearly don't understand the Triple mode version you hacked up here.

    You have to think about how it functions as a whole, not change a handful of parameters and ignore the relationships.

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