[MK10fxxx - Processor expert] ADC_LDD + DMAChannel_LDD

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[MK10fxxx - Processor expert] ADC_LDD + DMAChannel_LDD

456 Views
loicr
Contributor I

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

0 Kudos
1 Reply

285 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

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

pastedImage_1.png

Hope it helps


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos