12.07.2015 Views

GM862-GPS Software User Guide - SemiconductorStore.com

GM862-GPS Software User Guide - SemiconductorStore.com

GM862-GPS Software User Guide - SemiconductorStore.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>GM862</strong>-<strong>GPS</strong> <strong>Software</strong> <strong>User</strong> <strong>Guide</strong>1vv0300729 Rev. 4 - 24/01/073.6 Using General Purpose Input/Output pinsThe Telit <strong>GM862</strong>-<strong>GPS</strong> provides various General Purpose Input/Output pins, these pins can beconfigured via AT <strong>com</strong>mands as Inputs, Outputs and two of them as "alternate function".The "alternate function" are supported by pins GPIO5, which can be configured to be<strong>com</strong>e a RFTransmission monitor output pin that reflects the RF transmission activation, GPIO6, which can beconfigured to be<strong>com</strong>e an alarm output pin that reflects the alarm status, and GPIO7 which can beconfigured to be<strong>com</strong>e a buzzer output pin.With these pins your application can control external hardware directly using the Telit <strong>GM862</strong>-<strong>GPS</strong>pins, with little or even no hardware added.3.6.1 GPIO pin setupBefore using the GPIO pin, you must configure them to select their direction or alternate function3.6.1.1 Setting GPIO pin as OUTPUTWhen you set a GPIO as output, you must specify also the value that the pin output must take:• Send <strong>com</strong>mand AT#GPIO=,,1where: is the GPIO pin number at which the <strong>com</strong>mand applies:7 – GPIO72 – GPIO2 8 – GPIO83 – GPIO3 9 – GPIO94 – GPIO4 10 – GPIO105 – GPIO5 11 – GPIO116 – GPIO6 12 – GPIO1213 – GPIO13 is the GPIO pin value that the pin will assume:0 – LOW1 – HIGH• wait for response OKNOTE: The #GPIO setting is not saved and will be lost on power off, so at start-up repeat pininitialization <strong>com</strong>mands. At start-up the setting for GPIO5, GPIO6 and GPIO7 instead ismaintained even after a shutdown to permit RFTXMON, alarm & buzzer feature to work always.Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 78 of 111

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!