how to invert RTS signal of USART?

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

how to invert RTS signal of USART?

1,358 次查看
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 项奖励
回复
5 回复数

1,344 次查看
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 项奖励
回复

1,339 次查看
richardchennv
Contributor I

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

Thanks.

Richard

0 项奖励
回复

1,349 次查看
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 项奖励
回复

1,338 次查看
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 项奖励
回复

1,329 次查看
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 项奖励
回复