
10
Programmable Hardware Manual - WS1102 © 2021 Tibbo Technology Inc
WS1102 Programmable Wireless RS232/422/485 Controller
In the RS485 mode, which is half-duplex, the PL_IO_NUM_3_INT1 GPIO line acts as the direction
control line. The line must be configured as an output.
Definition of RS422 and RS485 Modes
To avoid any misunderstanding of what the RS422 and RS485 modes are, let's clarify that the
term "RS422 mode" refers to a full-duplex differential signaling interface with at least RX and
TX signals, and possibly with CTS and RTS signals. Each signal is carried by a pair of "+" and "–"
lines.
The term "RS485 mode" refers to a half-duplex differential signaling interface with RX and TX
lines, where each signal is also carried by a pair of "+" and "–" lines. The RTS line of the serial
port is used (within the serial controller) to control the direction, so TX and RX lines can be
combined (externally) to form a two-wire bus that carries data in both directions. On a physical
signal level (voltages, etc.), there is no difference between the RS422 and RS485 modes — they
are implemented in the same way.
The RS422 and RS485 modes typically require termination circuits. No such circuits are
provided within the WS1102. A simple 120Ω resistor (added externally) is sufficient to
terminate one "+/–" pair properly.
Flash and EEPROM Memory
These are the three types of flash memory that you will encounter on the WS1102:
·
Unified flash memory – stores the TiOS firmware, compiled Tibbo BASIC/C app, and,
optionally, the flash disk. All flash space not occupied by TiOS is available to the compiled
Tibbo BASIC/C app. All flash space left over from TiOS and the app can be formatted as a
fault-tolerant flash disk. The flash disk is accessible through the fd. object (see the TIDE, TiOS,
Tibbo BASIC, and Tibbo C Manual).
·
Program flash memory — stores the TiOS firmware and compiled Tibbo BASIC app(s). All
flash space not occupied by TiOS is available to the compiled Tibbo BASIC/C app.
·
Data flash memory — the entire memory space can be formatted as a fault-tolerant flash
disk. The flash disk is accessible through the fd. object.
In addition, the WS1102 is equipped with EEPROM memory. A small area at the bottom of the
EEPROM is occupied by the Special Configuration Section (SCS) that stores the device's MAC(s)
and password. The rest of the EEPROM is available to Tibbo BASIC/C applications. The EEPROM
is accessible through the stor. object (see the TIDE, TiOS, Tibbo BASIC, and Tibbo C Manual).