Setup UART-RS485 without using DMA for i.MX RT1170

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

Setup UART-RS485 without using DMA for i.MX RT1170

ソリューションへジャンプ
841件の閲覧回数
JayCao
Contributor III

Dear support team,

I am developing a project that uses several LPUARTs for RS232 and RS485.

For RS232, I used it same as the sample source.

However, I hard to find the RS485 configuration on the fls_lpuart.h library.

I read the guide for implementing the RS485 on the i.MX RT series
https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/Implement-High-Speed-RS-485-Application-with...

but this one uses DMA to do that.

Could you help to guide me on how to use that without DMA?

Thanks and BRs

 

タグ(3)
0 件の賞賛
1 解決策
712件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @JayCao ,

 

The UART module just acts as it is, the RS485 is supported with an external transceiver as mentioned in https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/Implement-High-Speed-RS-485-Application-with... , whether DMA is used or not. 

 

Hope that makes sense,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------

元の投稿で解決策を見る

4 返答(返信)
747件の閲覧回数
JayCao
Contributor III

Hello,

Are there any updates for this question?

0 件の賞賛
818件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @JayCao ,

 

If you don't prefer to the DMA operation, maybe you can start with the polling or interrupt mode, and we provide such kind of demos in the SDK, you may refer to SDK_2_14_0_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\lpuart for details.

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
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 件の賞賛
809件の閲覧回数
JayCao
Contributor III
Hello Kan Li,
Thanks for your answer!
I had seen the lpuart driver examples.
But it looks like support for RS232, which part should I change to use for RS485?
Thank you
0 件の賞賛
713件の閲覧回数
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @JayCao ,

 

The UART module just acts as it is, the RS485 is supported with an external transceiver as mentioned in https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/Implement-High-Speed-RS-485-Application-with... , whether DMA is used or not. 

 

Hope that makes sense,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------