6 using general purpose input/output pins, 1 gpio pin setup, 1 setting gpio pin as output – Telit Wireless Solutions GE863 User Manual

Page 74: Using general purpose input/output pins, Gpio pin setup, At#gpio=<pin>,<value>,1<cr

Advertising
background image





GE863-GPS Software User Guide

1vv0300724 Rev. 2 - 24/01/07

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 two of them as "alternate function".
The "alternate function" are supported by pins 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 GPIO6 and GPIO7 instead is maintained
even after a shutdown to permit alarm & buzzer feature to work always.

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

page 74 of 109

Advertising