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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1,028 Views
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 Kudos
Reply
5 Replies

1,002 Views
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 Kudos
Reply

998 Views
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 Kudos
Reply

982 Views
chandan_uv
Contributor III

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

0 Kudos
Reply

975 Views
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 Kudos
Reply

1,006 Views
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 Kudos
Reply