[MK10fxxx - Processor expert] ADC_LDD + DMAChannel_LDD

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[MK10fxxx - Processor expert] ADC_LDD + DMAChannel_LDD

1,055件の閲覧回数
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 返信

884件の閲覧回数
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 件の賞賛
返信