TS-7180 COM Ports: Difference between revisions
(→RS-485) |
(Trying to get sub-headings to show after transclusion) |
||
Line 3: | Line 3: | ||
The TS-7180 provides three standard RS-232 ports, and one RS-485 port. A fourth RS-232 port is a non-standard option. All of these ports are presented on the P5 connector. The RS-485 port has auto-transmit-enable and an on-board terminator that may be enabled by installing the "485" jumper (adjacent to the RTC battery). | The TS-7180 provides three standard RS-232 ports, and one RS-485 port. A fourth RS-232 port is a non-standard option. All of these ports are presented on the P5 connector. The RS-485 port has auto-transmit-enable and an on-board terminator that may be enabled by installing the "485" jumper (adjacent to the RTC battery). | ||
== RS-232 ports 1 through 3 == | === RS-232 ports 1 through 3 === | ||
{|class=wikitable | {|class=wikitable | ||
Line 26: | Line 26: | ||
{{Note|The RS-232 transceiver chip on the board must be enabled before those ports can be used. This is done by running the command <code>tshwctl -a 21 -w 3</code>. }} | {{Note|The RS-232 transceiver chip on the board must be enabled before those ports can be used. This is done by running the command <code>tshwctl -a 21 -w 3</code>. }} | ||
== RS-485 == | === RS-485 === | ||
{|class=wikitable | {|class=wikitable | ||
Line 41: | Line 41: | ||
{{Note|RS-485 must be enabled before it is used. This is done by running the command <code>gpioset 0 19=1</code>. }} | {{Note|RS-485 must be enabled before it is used. This is done by running the command <code>gpioset 0 19=1</code>. }} | ||
== RS-232 port 4 (optional) == | === RS-232 port 4 (optional) === | ||
Custom boards may provide a fourth RS-232 port on P5, taking over the pins that by default are assigned to the second CAN controller. In this case, the pinout of the additional RS-232 port is: | Custom boards may provide a fourth RS-232 port on P5, taking over the pins that by default are assigned to the second CAN controller. In this case, the pinout of the additional RS-232 port is: |
Revision as of 16:54, 18 January 2022
The TS-7180 provides three standard RS-232 ports, and one RS-485 port. A fourth RS-232 port is a non-standard option. All of these ports are presented on the P5 connector. The RS-485 port has auto-transmit-enable and an on-board terminator that may be enabled by installing the "485" jumper (adjacent to the RTC battery).
RS-232 ports 1 through 3
UART | TX | RX |
---|---|---|
ttymxc1 | P5-5 | P5-6 |
ttymxc4 | P5-2 | P5-3 |
ttymxc6 | P5-7 | P5-8 |
Note: | The RS-232 transceiver chip on the board must be enabled before those ports can be used. This is done by running the command tshwctl -a 21 -w 3 .
|
RS-485
UART | 485+ | 485- |
---|---|---|
ttymxc3 | P5-13 | P5-14 |
Note: | RS-485 must be enabled before it is used. This is done by running the command gpioset 0 19=1 .
|
RS-232 port 4 (optional)
Custom boards may provide a fourth RS-232 port on P5, taking over the pins that by default are assigned to the second CAN controller. In this case, the pinout of the additional RS-232 port is:
UART | TX | RX |
---|---|---|
ttymxc7 | P5-10 | P5-11 |
The daughter-card interface (HD12 header) contains TTL-level TX/RX pins that may be used to connect to a CPU UART, with the caveat that to do so, one of the assigned UARTs must be reassigned to the header. The reassignment is done by writing to the register at address 308 in the FPGA. The table in the FPGA Registers section shows which UARTs may be reassigned. By default, the HD1 TX/RX pins are not connected to any UART.