Miod, Motorola I/O Define - Motorola G24 Guide Developer's Manual

At commands
Hide thumbs Also See for G24 Guide:
Table of Contents

Advertisement

+MIOD, Motorola I/O Define

This command defines the G24 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:
Command
Type
Set
Read
Test
December 31, 2007
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.
Syntax
AT+MIOD=<Pin
selection>,<Mode>
[,<Data vector>]
+ MIOD?
+ MIOD=?
AT Commands Reference Manual
Chapter 3: AT Commands Reference
Response/Action
OK
The set command defines the behavior
mode of each selected IO pin.
or:
The G24 saves the new setting in flex.
+CME ERROR: <err>
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.
+MIOD: <Mode vector>
The read command returns the current
behavior mode of the 8 GPIO pins.
OK
+MIOD: (list of
The test command returns the possible
ranges of <Pin selection>s, <Mode>s
supported <Pin
and <Data vector>s.
selection>s),(list of
supported
<Mode>s),(list of
supported <Data
vector>s)
OK
or:
+CME ERROR: <err>
Remarks
3-217

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents