MTX
‐
3G
‐
JAVA
Family
www.mtx
‐
terminals.com
www.mtxm2m.com
2015/10
v1.6
Page
59
/
109
MTX
M2M®
by
MATRIX
ELECTRONICA
S.L.U
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
Power
Connector
DB15
connector
Base
MTX
‐
3G
‐
JAVA
&
ULP
models
4x
CMOS
inputs/outputs
(bidirectional
GPIO)
RS485
models
2x
Optoisolated
inputs
2x
Optoisolated
outputs
Rest
of
models
1x
Optoisolated
input
1x
Optoisolated
output
2x
Optoisolated
inputs
2x
Optoisolated
outputs
1x
CMOS
input/output
(bidirectional
GPIO)
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
GPIO
number
TCA9535
chip
port
IN
2
GPIO
7
P06
IN
10
GPIO
10
P11
OUT
3
GPIO
8
P07
OUT
4
GPIO
4
P03
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
GPIO
number
TCA9535
chip
port
IO
1
GPIO
9
P10
IN
2
GPIO
7
P06
IN
3
GPIO
10
P11
IN
4
GPIO
5
P04
OUT
2
GPIO
8
P07
OUT
3
GPIO
4
P03
OUT
4
GPIO
6
P05