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

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

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

1,023件の閲覧回数
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 返答(返信)

997件の閲覧回数
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 件の賞賛
返信

993件の閲覧回数
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 件の賞賛
返信

977件の閲覧回数
chandan_uv
Contributor III

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

0 件の賞賛
返信

970件の閲覧回数
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 件の賞賛
返信

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