how to invert RTS signal of USART?

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

how to invert RTS signal of USART?

895 Views
richardchenigt
Contributor I

Hi all, is there a way to invert the RTS signal of USART? I have a flexcomm configured as USART, and its RTS_SCL_SSEL signal is configured as RTS, instead of being a GPIO. In my application, I would like to see its output inverted, is there a way for the firmware to do so?

Thanks

Richard

0 Kudos
5 Replies

881 Views
frank_m
Senior Contributor III

> In my application, I would like to see its output inverted, ...

With using a standrd line driver like the MAX232 ?

Most RS232 drivers have inverting outputs.

0 Kudos

876 Views
richardchennv
Contributor I

Thanks but  I would looking for a way to configure it from firmware.

Thanks.

Richard

0 Kudos

886 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Richard,

Can you tell us the part number you are using?

Assume that you use LPC5569, so pls refer to the UM11126.pdf

Pls refer to section 34.7.5.1 Hardware flow control

xiangjun_rong_0-1647485143387.png

 

As the above figure, the RTS signal is an output signal driven by receiver. The RTS is configured to appear on a device pin so that it can be sent to an external device, it indicates to an external device the ability of the receiver to receive more data.

Unfortunately, we have not the code to demo the RTS function.

Hope it can help you

BR

XiangJun Rong

 

0 Kudos

875 Views
richardchennv
Contributor I

Thanks Xiangjun, the part I am using is LPC54S018JxM, what I am looking for is to invert its polarity via firmware but I cannot find any level of control like this so far.

 

Thanks

Richard

0 Kudos

866 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Richard,

As I said that we have not the example code to invert the RTS, even the UM does not list the condition to invert the RTS signal.

The usart has receiver FIFO which has 16 entries, I suppose that you can enable the receiver FIFO, and you can receive the data, but you do not read the data from the receiver FIFO and check if the RTS can be inverted driven by the receiver when the FIFO is full.

BR

XiangJun Rong

 

0 Kudos