Specifications

SIM900 AT Command Manual
SIM900_AT Command Manual_V1.03 151 12/24/2010
<Operation> 0 set the GPIO function including the GPIO output and
GPIO as the Keypad.
1 read the GPIO level. Please note that only when the
gpio is set as input, user can use parameter 1 to read
the GPIO level, otherwise the module will return
"ERROR".
<GPIO> the GPIO you want to be set. ( it has relations with the
hardware, Please refer to the hardware manual)
<function> Only when <Operation> is set to 0, this option takes
effect.
0 set the GPIO to input.
1 set the GPIO to output
2 set the GPIO to keypad
<level> 0 set the GPIO low level
1 set the GPIO high level
Reference Note
Only GPIO1, GPIO2, GPIO3, GPIO4, GPIO6, GPIO7, GPIO8, GPIO9 can
b
e used as Keypad. And if one of them is set to gpio function, others will
be set to GPIO output and low level automatically.
6.2.47 AT+SPWM Generate the Pulse-Width-Modulation
AT+SPWM Generate the Pulse-Width-Modulation
Response
+SPWM: (list of supported <index>s ),( list of supported <period>s),( list
of supported <level>s)
OK
Test Command
AT+SPWM=?
Parameters
See Write Command
Response
OK
If error is related to ME functionality:
+CME ERROR: <err>
Write Command
AT+SPWM=<in
dex>,<period>,
<level>
Parameters
<index> integer type: the index number of PWM port, which value is
0-2;
0: for buzzer (according to the hardware support or not).
1: corresponding to PWM_OUT0 in the hardware circuit
2: corresponding to PWM_OUT1 in the hardware circuit
<period> The range of <period> is 0-126 if <index> is set to 1 or 2,
the range of <period> is 0-65535 if <index> is set to 0,