At#gpio=6,<dummy_value>,2<cr – Rainbow Electronics GM862-QUAD-PY User Manual

Page 81

Advertising
background image





GM862-QUAD / PY Software User Guide

1vv0300747 Rev. 3 - 10/07/07

Reproduction forbidden w ithout Telit Communications S.p.A. w ritten authorization - All Rights Reserved

page 81 of 96

AT#GPIO=5,0,2<cr>
response:
OK

In this case, the GPIO5 pin was successfully put in RFTXMON output direction.


3.6.2.5 Using GPIO6 pin as ALARM OUTPUT (alternate function)

When you set the GPIO6 pin as alarm output function, the pin reports the alarm state following the
+CALA settings. To set the pin in alternate function you must specify also a dummy value for the pin
state:

Send command

AT#GPIO=6,<dummy_value>,2<cr>

where:
<value> is a dummy value can be either:

0 – dummy value
1 – dummy value

wait for response

OK

TIP: Remember that the alternate function places the GPIO6 pin always in OUTPUT direction
and since the GPIO6 pin value is controlled by the internal software, the corresponding
function (+CALA) must be setup properly.

NOTE: The #GPIO6 direction setting is saved and will be kept after a power off.
The saving can be applied only for the alternate mode.
During RESET the GPIO6 is in set to HIGH

For example:
1- Let's assume you want to set GPIO6 pin as ALARM OUTPUT:
command:
AT#GPIO=6,0,2<cr>
response:
OK

In this case, the GPIO6 pin was successfully put in alarm output direction.

Advertising