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

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

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

跳至解决方案
1,580 次查看
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 解答
1,451 次查看
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 回复数
1,486 次查看
JayCao
Contributor III

Hello,

Are there any updates for this question?

0 项奖励
回复
1,557 次查看
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 项奖励
回复
1,548 次查看
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 项奖励
回复
1,452 次查看
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.
-------------------------------------------------------------------------------