Skip to main content
jagdish2
Associate II
January 4, 2019
Solved

How to configure ADC+DMA to have 3 conversions and get DMA interrupt when all 3 conversions are complete and converted values are available in predefined buffer of size 3?

  • January 4, 2019
  • 3 replies
  • 790 views

I am using STM32F756 Eval board and trying ADC+DMA example.

Example, is about one ADC conversion and the data is stored in variable using DMA.

I am looking out for changes to be done in the configuration such that,

After I start ADC conversion, I must get DMA interrupt after 3 ADC conversions are done. and the converted values are available in buffer of size 3. this buffer i shall pass to DMA while configuring DMA.

thanks and best regards,

Jagdish

This topic has been closed for replies.
Best answer by jagdish2

Thank you so much for your inputs.

I have used the DAQ TC interrupt.

Jagdish

3 replies

S.Ma
Principal
January 4, 2019

Are ADC conversions running continuously or triggered by signal?

To reduce the MCU time stress, sometime it is easier to have a big buffer to store enough data and get interrupt at half transfer event to process them, or use another DMA for memory to memory transfer, although in the end you'll have to process push the data with the leftover time left after moving data around. What's the sampling rate?

Tesla DeLorean
Guru
January 4, 2019

Best to have an array of 6 and use HT/TC interrupts to flag the inactive half.

But yes, you could trigger the ADC, have an array of 3, and use the DMA TC interrupt as the ADC x3 EOC

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
jagdish2
jagdish2AuthorBest answer
Associate II
January 7, 2019

Thank you so much for your inputs.

I have used the DAQ TC interrupt.

Jagdish