Can I do memory to memory DMA transfer in kinetis MCU using interrupt.

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

Can I do memory to memory DMA transfer in kinetis MCU using interrupt.

跳至解决方案
1,324 次查看
prakashpatel
Contributor II

Hi,

How  can I do memory to memory DMA transfer using interrupt. May be in timer interrupt I would initiate the transfer.

Prakash

0 项奖励
回复
1 解答
824 次查看
Petr_H
NXP Employee
NXP Employee

Yes, if you mean triggering  a DMA transfer by a timer or other interrupt flag event.

I recommend to use DMAChanne_LDD component. There is a property Hardware request that you can enable and select the source of event that triggers the transfer. For example FTM_C0_DMA_Request comes from channel 0 of the FTM0 timer.

If you select it, you also need to create a timer component that initializes the timer - you can do it for example with TimerUnit_LDD where you select FTM0, period  and setup channel 0 where where you select offset and enable the DMA request in Interrupts/DMA.

Best regards

Petr Hradsky

Processor Expert Support Team

在原帖中查看解决方案

0 项奖励
回复
1 回复
825 次查看
Petr_H
NXP Employee
NXP Employee

Yes, if you mean triggering  a DMA transfer by a timer or other interrupt flag event.

I recommend to use DMAChanne_LDD component. There is a property Hardware request that you can enable and select the source of event that triggers the transfer. For example FTM_C0_DMA_Request comes from channel 0 of the FTM0 timer.

If you select it, you also need to create a timer component that initializes the timer - you can do it for example with TimerUnit_LDD where you select FTM0, period  and setup channel 0 where where you select offset and enable the DMA request in Interrupts/DMA.

Best regards

Petr Hradsky

Processor Expert Support Team

0 项奖励
回复