Hardware Information

Example

AT+MRST OK

// Result - G24-L module performs a power down

+MIOC, Motorola I/O Configure

This command defines the G24-L 8 GPIO pins data value. 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: Support of the GPIO pins comes instead of supporting the keypad of the Evaluation board.

 

 

 

 

Command

 

 

 

Type

Syntax

Response/Action

Remarks

 

 

 

 

 

 

 

 

Set

AT+MIOC=<Pin

OK

The set command defines the logic

 

selection>,<Data vector>

or:

value of selected pins to high or low

 

 

+CME ERROR: <err>

when pin is configured as output.

 

 

 

The G24-L saves the new setting in

 

 

 

flex. Only selected pins are affected.

 

 

 

Set action is allowed only for pins

 

 

 

configured as output.

 

 

 

In case <Data vector> includes values

 

 

 

of input pins, those values will be

 

 

 

ignored. In case <pin selection>

 

 

 

includes input pins, an error will be

 

 

 

issued "Operation not allowed". No

 

 

 

action will take place.

 

 

 

 

Read

+ MIOC?

+MIOC: <Data vector>

The read command returns the actual

 

 

 

logical value of the 8 GPIO pins.

 

 

OK

 

 

 

 

 

Test

+ MIOC=?

+MIOC: (list of

The test command returns the possible

 

 

supported <Pin

ranges of <Pin selection>s and <Data

 

 

selection>s),(list of

vector>s.

 

 

supported <Data

 

 

 

vector>s)

 

 

 

OK

 

 

 

or:

 

 

 

+CME ERROR: <err>

 

 

 

 

 

 

 

 

 

3-144

G24-L AT Commands Reference Manual

April 15, 2008

Page 208
Image 208
PIONEERPOS G24-LC manual +MIOC, Motorola I/O Configure, At+Mrst Ok, + Mioc?