cancel
Showing results for 
Search instead for 
Did you mean: 

ADc via timer2 and data is sent to dma on stm32f429

shoaib
Associate II
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.
2 REPLIES 2
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 Venmo
Up vote any posts that you find helpful, it shows what's working..
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 Venmo
Up vote any posts that you find helpful, it shows what's working..