6 using general purpose input/output pins, 1 gpio pin setup, 1 setting gpio pin as output – Rainbow Electronics GE863-GPS low power User Manual

Page 79: At#gpio=<pin>,<value>,1<cr

Advertising
background image





GE863-GPS Software User Guide

1vv0300724 Rev. 3 - 05/07/07

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

page 79 of 122

3.6 Using General Purpose Input/Output pins

The

Telit GE863-GPS

provides various General Purpose Input/Output pins, these pins can be

configured via AT commands as Inputs, Outputs and some of them as "alternate function".
The "alternate function" are supported by pins GPIO4 which can be configured as RF Transmission
Control input pin, GPIO5, which can be configured to become a RF Transmission monitor output pin
that reflects the RF transmission activation, GPIO6, which can be configured to become an alarm
output pin that reflects the alarm status, and GPIO7 which can be configured to become a buzzer
output pin.
With these pins your application can control external hardware directly using the

Telit GE863-GPS

pins, with little or even no hardware added.

3.6.1 GPIO pin setup

Before using the GPIO pin, you must configure them to select their direction or alternate function

3.6.1.1 Setting GPIO pin as OUTPUT

When you set a GPIO as output, you must specify also the value that the pin output must take:

Send command

AT#GPIO=<pin>,<value>,1<cr>

where:
<pin> is the GPIO pin number at which the command applies:

1 – GPIO1

10 – GPIO10

2 – GPIO2

11 – GPIO11

3 – GPIO3

12 – GPIO12

4 – GPIO4

13 – GPIO13

5 – GPIO5

14 – GPIO14

6 – GPIO6

15 – GPIO15

7 – GPIO7

16 – GPIO16

8 – GPIO8

17 – GPIO17

9 – GPIO9

18 – GPIO18

<value> is the GPIO pin value that the pin will assume:

0 – LOW
1 – HIGH

wait for response

OK

NOTE: The #GPIO setting is not saved and will be lost on power off, so at start-up repeat pin
initialization commands. At start-up the setting for GPIO4, GPIO5, GPIO6 and GPIO7 instead is
maintained even after a shutdown to permit the Alternate feature to work always.

Advertising