Low Power WiFi Module User Manual V1.3
http://www.tcp232.net
Jinan USR IOT Technology Limited.
Page 23 of 59
2.10. GPIO Function
USR-WIFI232-G module can provide maximum 6 GPIO pins, which include 3 PWM control pins, and 3
general GPIO pin. As GPIO functional pin, user devices can read/write GPIO/PWM pins status
through AT+instruction set.
Table 7
USR-WIFI232-G GPIO Pin Mapping Table
When module works at PWM mode, PC and other equipts can setup connection (TCP/UDP) through
WiFi, then read/write GPIO/PWM information through command.
GPIO n IN,
Set GPIOn as input, Response GPIO OK or GPIO NOK;
GPIO n OUT 0, Set GPIOn as output and output ‘0’, Response GPIO OK or GPIO NOK;
GPIO n OUT 1, Set GPIOn as output and output ‘1’, Response GPIO OK or GPIO NOK;
GPIO n GET, query GPIOn pin level, Reok=1 or GPIO NOK;
GPIO n SET, save GPIOn output level, Response GPIO OK or GPIO NOK;
PWM n frequency duty: set PWMn output, Response PWM OK or PWM NOK
PWM n GET, query PWMn values, Reok=frequency duty or PWM NOK
PWM n SET, save PWMn parameters, Response PWM OK or PWM NOK
GPIO
Configured Function
Describtion
Default Setting
Type
GPIO16
PWM 1 Output
USB_PIO
GPIO16
I/O
GPIO20
PWM 2 Output
GPIO20
GPIO20
I/O
GPIO23
GPIO 1 Output
PWMH0
GPIO23
O
GPIO24
PWM 0 Output
PWML0
GPIO24
O
GPIO26
GPIO 0 Output
GPIO26
GPIO26
I/O
GPIO46
GPIO 2 Output
PWMFI0
GPIO46
I/O