LPC 845 DMA, new SDK functions, DMA_PrepareChannelTransfer, Trigger

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

LPC 845 DMA, new SDK functions, DMA_PrepareChannelTransfer, Trigger

466 次查看
NXP_USER_11
Contributor II

Dear Community,

The LPC 845 SDK uses a DMA example which is not up to date anymore and there is the suggestion to use a newer version which uses: DMA_PrepareChannelTransfer.

brief Prepares the DMA transfer structure.
* deprecated Do not use this function. It has been superceded by @ref DMA_PrepareChannelTransfer and, DMA_PrepareChannelXfer.

However, I am able to use the old functions, but I fail to run the newer version and no example was provided. Mainly the issue will be with the Trigger, due to the fact, that I do not find a proper documentation for the trigger. Does anyone made it and could provide the simplest Trigger solution.

Thank you in advance!

0 项奖励
1 回复

449 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

 

The trigger can be configured with DMA_SetChannelConfig(), the structure "dma_channel_trigger_t" describes if the dma will be triggered by a low/high level, rising/falling edge or you can leave no trigger.

 

For the trigger configuration I suggest you to check chapter 16 and chapter 14 of the LPC84x User Manual.

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.

Best regards,

Omar

0 项奖励