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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,623件の閲覧回数
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,602件の閲覧回数
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,603件の閲覧回数
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,593件の閲覧回数
jake111
Contributor I

Thanks for your reply.The device is MK64FN1M0VMD12.

0 件の賞賛
返信
1,572件の閲覧回数
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 件の賞賛
返信