Miod, motorola i/o define, Miod, motorola i/o define -147 – PIONEERPOS AT Commands G24-LC User Manual
Page 211
Chapter 3: AT Commands Reference
April 15, 2008
G24-L AT Commands Reference Manual
3-147
+MIOD, Motorola I/O Define
This command defines the G24-L 8 GPIO pins configuration. The feature is flex enabled or
disabled.
This command is a basic command.
The feature is active by default, however, changing the FLEX can eliminate it.
Note:
When using the GPIO lines feature, lines should not be connected directly to ground, a
resistor must be used. This is applicable when changing an I/O from input to output.
Command
Type
Syntax
Response/Action
Remarks
Set
AT+MIOD=<Pin
selection>,<Mode>
[,<Data vector>]
OK
or:
+CME ERROR: <err>
The set command defines the behavior
mode of each selected IO pin.
The G24-L saves the new setting in
flex. The selected pins are affected.
Validity check of all parameters will be
done and appropriate standard error
will be issued.
In case of legal parameters the new
configuration is set. If <Data vector>
doesn't supply and new <Mode> is
output a line will care physical high
signal. In case <Data vector> is supply
and includes values of input pins, those
values will be ignored. In case
<Mode> is input and <Data vector> is
supply, an error will be issued
"Operation not allowed". No action
will be done.
Read
+ MIOD?
+MIOD: <Mode vector>
OK
The read command returns the current
behavior mode of the 8 GPIO pins.
Test
+ MIOD=?
+MIOD: (list of
supported <Pin
selection>s),(list of
supported
<Mode>s),(list of
supported <Data
vector>s)
OK
or:
+CME ERROR: <err>
The test command returns the possible
ranges of <Pin selection>s, <Mode>s
and <Data vector>s.