UART4/5 can only transmit or receive in DMA mode?

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

UART4/5 can only transmit or receive in DMA mode?

跳至解决方案
1,613 次查看
jake111
Contributor I

the DMA request sources 

In terms of UART0~UART3,UART Transmit and UART Receive are DMA sources respectively.But UART4~5 only have one source which is UART Transmit or Receive.

Does it mean UART4/5 can't transmit and receive both in DMA mode?Or I have to make sure the process of transmit and receive is at different time.

What should I pay attention to in the program?

1.png

0 项奖励
回复
1 解答
1,592 次查看
Ramon_Vega
NXP TechSupport
NXP TechSupport

Hi Vinolzy,

Thank you for contact us, could you please tell me what Kinetis device are you working on?, I am looking for additional details.

Kind Regards 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,593 次查看
Ramon_Vega
NXP TechSupport
NXP TechSupport

Hi Vinolzy,

Thank you for contact us, could you please tell me what Kinetis device are you working on?, I am looking for additional details.

Kind Regards 

0 项奖励
回复
1,583 次查看
jake111
Contributor I

Thanks for your reply.The device is MK64FN1M0VMD12.

0 项奖励
回复
1,562 次查看
Ramon_Vega
NXP TechSupport
NXP TechSupport

Hi, Vinolzy

 

You can use DMA on either TX or RX but not both, in K64 both UARTs 4 and 5 have this restriction.

If you connect the source to a DMA channel with both RX and TX DMA triggers enabled either of them will trigger a DMA transfer, which means that RX will disturb TX and TX will disturb RX.

I think that you will need to decide on the direction to use DMA mode and use interrupt on the other.

 

UARTs: http://www.utasker.com/docs/uTasker/uTaskerUART.PDF

 

I hope this information help you!.

Kind Regards

0 项奖励
回复