Search by Tags

RS485

 

Compare with Revision




Subscribe for this article updates

It is possible to configure the Colibri's UART as a RS485 interface by using the RTS signal as the send enable signal in the RS485 transceiver. On the Tegra modules this feature is supported in image 1.3 beta 1 and later. To use the RTS Signal in this mode, write your code to setup the DCB data structure for the serial port as follows:

dcb.fRtsControl = RTS_CONTROL_TOGGLE;

For more information visit the Win CE help and search for SetCommState or the DCB structure.

RTS_CONTROL_TOGGLE in .Net

As you can not set directly the DCB structure in .Net, you can edit registry entry to enable the RTS_CONTROL_TOGGLE function.

[HKLM\Driver\BuiltIn\SerialX]
"RTSToggleAlwaysOn" = "dword:1"

Support for Vybrid

[HKLM\Driver\BuiltIn\UARTX]
"RTSToggleAlwaysOn" = "dword:1"
"RTSPol" = "dword:1"
 

Support for i.MX6

[HKLM\Driver\BuiltIn\UARTX]
"RTSToggleAlwaysOn" = "dword:1"
"RTSPol" = "dword:1"
"RTSPin" = "dword:1b" ; module pin number

The RTSPin must be specified to select what pin needs to be toggled when the device is sending data over the serial link for ports that don't use the standard colibri/apalis pinout (UARTC, UARTD, UARTE).