Hi everybody
I try to implement ADC with DMA with processor expert.
I would measure analog input X Time.
I initialize an array of int (int buff[X])
I would like to take X measures and DMA store these in buff (one short).
today, I find how store 1 measure on the buff[0] only
I use in order
While
{
setBuffer(Bandler, buff, X)
setLoopMeasure
vTaskDelay
if (flag = 1) // event DMA finish
//conversion finish
// Seve Buffet
)
have you an exemple please?
vest regards
Hi,
After you add the ADC_LDD component ,there is sample code about ADC+DMA,
right click the ADC_LDD component, select "Help on component " -> Typical Usage
Hope it helps
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------