4.4.5 General Purpose and Optoisolated I/O
Depending on the model you use, you will dispose of the following set of GPIOs and Optoisolated
IOs:
Model
Base MTX‐3G‐JAVA & ULP models
RS485 models
Rest of models
Please refer to Section 4.1 and Section 4.4.1 to view the exact location of each I/O.
Both the GPIOs and Optoisolated I/Os are controlled by an internal I/O expander chip (TCA9535)
attached to the I2C bus at a 7‐bit address 0x20 hexadecimal. Please refer to the device datasheet or
the Java code examples available at www.mtxm2m.com in the Downloads section, in order to learn
how to use I/Os.
In the case of the Base MTX‐3G‐JAVA and ULP models, the GPIOs 1 to 4 are directly connected to the
P00..P03 pins in the TCA9535 chip. You can configure them independently as inputs or outputs by
issuing I2C related AT commands or via the I2C Java class.
For the RS485 models there are two optoisolated inputs and two optoisolated outputs available,
which are mapped to TCA9535 pins as shown in the following table:
Terminal's optoisolated I/O
IN 2
IN 10
OUT 3
OUT 4
For the rest of models there are six optoisolated I/Os and one CMOS bidirectional I/Oavailable, which
are mapped to the TCA9535 chip pins as shown in the following table:
Terminal's optoisolated I/O
IO 1
IN 2
IN 3
IN 4
OUT 2
OUT 3
OUT 4
www.mtx‐terminals.com
Power Connector
1x Optoisolated input
1x Optoisolated output
GPIO number
GPIO 7
GPIO 10
GPIO 8
GPIO 4
GPIO number
GPIO 9
GPIO 7
GPIO 10
GPIO 5
GPIO 8
GPIO 4
GPIO 6
www.mtxm2m.com
MTX M2M® by MATRIX ELECTRONICA S.L.U
MTX‐3G‐JAVA Family
DB15 connector
4x
CMOS
inputs/outputs
(bidirectional GPIO)
2x Optoisolated inputs
2x Optoisolated outputs
2x Optoisolated inputs
2x Optoisolated outputs
1x CMOS input/output (bidirectional
GPIO)
TCA9535 chip port
P06
P11
P07
P03
TCA9535 chip port
P10
P06
P11
P04
P07
P03
P05
2015/10 v1.6
/
Page 59
109