Wavecom GR64 Application Note - page 7
3.2 Using GPIO for Monitoring
The contact closure is connected to GPIO1. From Table 1 in Appendix A, the E2IO
signal name for GPIO1 is IO1.
Configure the GPIO1 pin for input.
AT*E2IO=2,"IO1",0
OK
The application can query the level of a GPIO pin, whether configured for input or
output.
AT*E2IO=0,”IO1”
*E2IO: 0,"IO1",0 (pin level is low)
OK
Querying the level of a GPIO pin repeatedly can be wasteful, so the application can
program GPIO pins as input triggers. When a pin is configured as a trigger, a change
in the pin’s level will cause a report to be issued on the AT command interface.
Configure the GPIO1 pin as an input trigger.
AT*E2IO=4,”IO1”,1
OK
Now any changes in the level of the GPIO1 signal will cause a report.
*E2IO: 4,"IO1",1
This technique can be quite useful in low-power applications. The Wireless CPU can
be placed in standby mode and will awaken when a transition on a pin configured as
an input trigger occurs.
The application can query if a GPIO pin has been configured as an input trigger.
AT*E2IO=5,"IO1"
*E2IO: 5,"IO1",1
OK
The input trigger feature can be disabled for a GPIO pin. No reports will subsequently
be issued when a level change occurs on that pin.
AT*E2IO=4,”IO1”,0
OK
APPLICATION NOTE
GR/GS64 General Purpose and
This document is the sole and exclusive property of WAVECOM. Not to be distributed or divulged without prior written agreement.
Ce document est la propriété exclusive de WAVECOM. Il ne peut être communiqué ou divulgué à des tiers sans son autorisation préalable
Alternate Function I/O
Page: 7/13