S32k146 UART flow control CTE<-> CTE and RTE<-> RTE connection

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

S32k146 UART flow control CTE<-> CTE and RTE<-> RTE connection

688 次查看
chandan_uv
Contributor III

I want to implement uart flow control but another module only support the CTE<-> CTE  and RTE<->RTE connection. I tried checking the example https://community.nxp.com/t5/S32K-Knowledge-Base/S32K-LPUART-hardware-flow-control/ta-p/1116812 but its for CTE<-> RTE and RTE<->CTE. what should I change in the registers setting (TXCTSE,  TXRTSE,TXRTSPOL,  RXRTSE, TXCTSC) to make it work. 

Thanks

0 项奖励
回复
5 回复数

662 次查看
chandan_uv
Contributor III

@VaneB  but only changing polarity will work? bcz in this RTS should be input and CTS should be output. I am confused. 

0 项奖励
回复

658 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @chandan_uv 

As I mentioned before RTS can emulate this algorithm, but CTS does not. So, please take into consideration the alternatives I previously mentioned. 

0 项奖励
回复

642 次查看
chandan_uv
Contributor III

Hi @VaneB, Do you have any example code for this scenario  ?

0 项奖励
回复

635 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @chandan_uv 

Unfortunately, we do not have any example for this specific scenario, but we have an application note that shows how to emulate a UART using FlexIO. Please check the following link. 

Using FlexIO to emulate communications and timing peripherals

Additionally, our recommendation is to emulate the functionality of the underlined in the text of the image provided above with GPIOS. It might be easier for you. 

 

0 项奖励
回复

666 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @chandan_uv 

Teoricaly the RTS can support this implementation because the polarity can be changed by TXRTSPOL. Otherwise, CTS can not do this.

VaneB_0-1702490353947.png

But this can be emulated by a GPIO, or you can emulate a UART thought FLEXIO which has support for CST and RTS. This is up to your implementation. 

 

B.R.

VaneB

0 项奖励
回复