3
Using GPIO
3.1
Using GPIO for Control
GPIO pins are configured and controlled in software using the E2IO AT command. See
the GR/GS64 AT Command Manual for a complete description of the E2IO command.
To continue our example, the relay is controlled from the GPIO2 pin. From Table 2 in
Appendix A, the E2IO signal name for GPIO2 is IO2.
To control an external device using a GPIO, configure the pin for output then set the
desired level.
AT*E2IO=2,"IO2",1
OK
AT*E2IO=1,"IO2",1
OK
The application can query the level of a GPIO pin, whether configured for input or
output.
AT*E2IO=0,"IO2"
*E2IO: 0,"IO2",1 (pin level is high)
OK
The application can also query whether a pin is configured for input or output.
AT*E2IO=3,"IO2"
*E2IO: 3,"IO2",1 (GPIO2 is configured for output)
OK
The configured direction of GPIO pins is saved in the profile. If the application saves
the profile using AT&W command, the pins will be configured on subsequent Wireless
CPU start-ups according to the directions set when the profile was saved.
the external circuitry should be designed to act benignly if the control signal is not
present or is configured for input.
either the normally open or normally closed outputs of the relay to provide a benign
start-up state.
APPLICATION NOTE
GR/GS64 General Purpose and
Alternate Function I/O
Page: 6/13
(configure GPIO2 for output)
(assert GPIO2)
In this example, the application should select
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
However,
Need help?
Do you have a question about the GR64 and is the answer not in the manual?
Questions and answers