SPI1 dma source - FRDM-K22F

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

SPI1 dma source - FRDM-K22F

跳至解决方案
1,306 次查看
errorek123
Contributor III

Hello,

I'm writing some code to handle SPI dma transfer but it seems like K22 chip got common source for TX and RX for SPI1. Does it mean it can be either be used for receive data or transmit data and it can't be used for both? Is there any workaround or i have to live with that or switch SPI0 if both rx and tx dma is needed?

标记 (3)
0 项奖励
回复
1 解答
1,109 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Brian Smith ,

  Your are right, in the FRDM-K22 on board K22 chip, the SPI1 share the transmit and receive request.

  So, in my opinion, if you want to use both the Transmit and receive DMA function, it's better to use SPI0 interface, it has the separated request source:

pastedImage_1.png

Wish it helps you!

If you still have question about it, please kindly let me know.

Have a great day,
Kerry

 

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,110 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Brian Smith ,

  Your are right, in the FRDM-K22 on board K22 chip, the SPI1 share the transmit and receive request.

  So, in my opinion, if you want to use both the Transmit and receive DMA function, it's better to use SPI0 interface, it has the separated request source:

pastedImage_1.png

Wish it helps you!

If you still have question about it, please kindly let me know.

Have a great day,
Kerry

 

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复