DMA priority backwards?

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

DMA priority backwards?

1,276 次查看
antonypace
Contributor II

On a LPC4078 I'm using 2 channels of DMA to send and receive through a SPI connection (SSP peripheral) and have send on channel 0 and receive on channel 1. I start the DMA on channel 0 first. Channel 0 has higher priority than channel 1. Both send and receive are 14 bytes of data. 

I get channel 1 DMA complete interrupt first and I was xpecting to get channel 0 complete interrupt first.

It appears as though the send happens first and then the receive ie they are half duplex, which I am quite happy about.

Ant

标签 (1)
标记 (2)
0 项奖励
回复
3 回复数

1,079 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi  Antony Pace,

Thank you for your interest in NXP Semiconductor products and 
for the opportunity to serve you.
To provide the fastest possible support, I've attached the demo and please refer to it for details.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,079 次查看
antonypace
Contributor II

Hi,

Thank you for the reply. I've had a lookk at the demo code but I don't

see that it answers the question. Am I missing something?

Thanks

Ant

0 项奖励
回复

1,079 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Antony Pace,

Thanks for your reply.

The demo is used to demonstrate the SPI working with the DMA which just meets your requirement.

Have a great day,
TIC

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复