RS485 Flow control on ColdFire 54415

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

RS485 Flow control on ColdFire 54415

1,295 次查看
nicolasuhl
Contributor I

Hi,

I'm developping an application on Coldfire 54415 with MQX.

I need to implement the RS485 protocol with "RS485 flow control". Meaning that I need to pull the RTS line low during the transmission.

In MQX, when we deal with the serial port, it should be possible to use the IO_SERIAL_HW_485_FLOW_CONTROL flag.

But it seems it does not work with this Coldfire. I went inside the serial driver from MQX. This flag is not managed.

I also tried the following way, to check how the ioctl flags work:

    flag = IO_SERIAL_RTS;

    ioctl(ACM_Tty[idx].fdev, IO_IOCTL_SERIAL_SET_HW_SIGNAL, &flag);

This is supposed to be managed by the UART driver in MQX.

But nothing happens on the RTS line.

So, what is the way to manage automatically the RTS line in "RS485" mode.

I know that I could handle the RTS manually with GPIO but this is too slow (I communicate with a slave device that replies very fast. So I need to release the RTS line as soon as the transmission is complete).

Thanks in advance.

Best regards

0 项奖励
回复
1 回复

1,089 次查看
soledad
NXP Employee
NXP Employee

Hi,

I can suggest implementing the RTS and CTS pins as GPIO and sending the signals manually.


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复