RS485 Flow control on ColdFire 54415

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

RS485 Flow control on ColdFire 54415

837 Views
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 Kudos
Reply
1 Reply

631 Views
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 Kudos
Reply