Rainbow Electronics GM862-QUAD-PY User Manual

Page 257

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 257 of 434

#GGPI - General Purpose Input

SELINT 0 / 1

<dir> - auxiliary input GPIO1 setting
0 - the Read command AT#GGPI? reports the logic input level read from

GPIO1 pin.


Note: The device has an insulated input pin (the input goes the base of an
internal decoupling transistor) which can be used as a logic general purpose
input. This command sets the read behaviour for this pin, since only direct
read report is supported, the issue of this command is not needed.
In future uses the behavior of the read input may be more complex.

Note: If parameter is omitted then the behaviour of Set command is the
same as Read command

AT#GGPI?

Read command reports the read value for the input pin GPIO1, in the
format:

#GGPI: <dir>,<stat>

where
<dir> - direction setting (see #GGPI=<dir> )
<stat> - logic value read from pin GPIO1

Note: Since the reading is done after the insulating transistor, the reported
value is the opposite of the logic status of the GPIO1 input pin.

AT#GGPI=?

Test command reports supported range of values for parameter <dir>.

Note

This command is meaningful only for GM862 family

3.5.7.1.27 General Purpose Input/Output Pin Control - #GPIO

#GPIO - General Purpose Input/Output Pin Control

SELINT 0 / 1

AT#GPIO[=<pin>,
<mode>[,<dir>]]

Execution command sets the value of the general purpose output pin
GPIO<pin> according to <dir> and <mode> parameter.
Not all configuration for the three parameters are valid.

Parameters:
<pin> - GPIO pin number; supported range is from 1 to a value that

depends on the hardware.

<mode> - its meaning depends on <dir> setting:
0 - no meaning if <dir>=0 - INPUT
- output pin cleared to 0 (Low) if <dir>=1 - OUTPUT
- no meaning if <dir>=2 - ALTERNATE FUNCTION
1 - no meaning if <dir>=0 - INPUT
- output pin set to 1 (High) if <dir>=1 - OUTPUT
- no meaning if <dir>=2 - ALTERNATE FUNCTION
2 - Reports the read value from the input pin if <dir>=0 - INPUT
- Reports the read value from the input pin if <dir>=1 - OUTPUT
- Reports a no meaning value if <dir>=2 - ALTERNATE FUNCTION
<dir> - GPIO pin direction

Advertising