Hardware Manual

9
Programmable Hardware Manual - WS1102
© 2021 Tibbo Technology Inc
WS1102 Programmable Wireless RS232/422/485 Controller
Use the ssi. object (see the TIDE, TiOS, Tibbo BASIC, and Tibbo C Manual) to communicate with
the MCP23008. To select the desired serial port mode, set the state of the I/O expander's lines
GP5 and GP6 as shown in the table below (these lines are not to be confused with GPIO5 and
GPIO6, which are the CPU lines driving the I²C interface of the I/O expander). Both GP5 and
GP6 should be configured as outputs.
Serial port
mode
GP5
GP6
RS232
HIGH
LOW
RS422
HIGH
HIGH
RS485
LOW
HIGH
Direction control in the RS485 mode