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
@VaneB but only changing polarity will work? bcz in this RTS should be input and CTS should be output. I am confused.
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.
Hi @VaneB, Do you have any example code for this scenario ?
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.
Hi @chandan_uv
Teoricaly the RTS can support this implementation because the polarity can be changed by TXRTSPOL. Otherwise, CTS can not do this.
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