LPC 845 DMA, new SDK functions, DMA_PrepareChannelTransfer, Trigger

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

LPC 845 DMA, new SDK functions, DMA_PrepareChannelTransfer, Trigger

461 Views
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 Kudos
1 Reply

444 Views
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 Kudos