[MK10fxxx - Processor expert] ADC_LDD + DMAChannel_LDD

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

[MK10fxxx - Processor expert] ADC_LDD + DMAChannel_LDD

1,071 次查看
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 项奖励
回复
1 回复

900 次查看
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 项奖励
回复