I/O support
Analog and digital I/O lines
XBee Wi-Fi RF Module User Guide
70
Analog and digital I/O lines
XBee Wi-Fi RF Module firmware supports a number of analog and digital I/O pins that are configured
through software commands. You can set or query analog and digital I/O lines. The following tables list
the configurable I/O pins and the corresponding configuration commands.
Through-hole device
Pin names
Device pin
AT command
Command range
Default value
DIO1/AD1/ SPI_ATTN
19
D1
0-5
0
DIO2/AD2/SPI_CLK
18
D2
0-5
0
DIO3/AD3/SPI_SSEL
17
D3
0-5
0
DIO4/SPI_MOSI
11
D4
0-1, 3-5
0
DIO5/ASSOCIATE
15
D5
0-1, 3-5
1
DIO6/RTS
16
D6
0-1, 3-5
0
DIO7/CTS
12
D7
0-1, 3-7
1
DIO8/DTR/SLEEP_RQ
9
D8
0-1, 3-5
1
DIO9/On_SLEEP
13
D9
0-1, 3-5
1
DIO10/RSSI PWM/PWM0
6
P0
0-5
1
DIO11/PWM1
7
P1
0, 2-5
0
DIO12/SPI_MISO
4
P2
0-1, 3-5
0
DIO13/DOUT
2
P3
0-1
1
DIO14/DIN/CONFIG
3
P4
0-1
1
Surface-mount device
Pin names
Device pin
AT command
Command range
Default value
DIO1/AD1
32
D1
0, 2-5
0
DIO2/AD2
31
D2
0, 2-5
0
DIO3/AD3
30
D3
0, 2-5
0
DIO4
24
D4
0, 3-5
0
DIO5/ASSOCIATE
28
D5
0-1, 3-5
1
DIO6/RTS
29
D6
0-1, 3-5
0
DIO7/CTS
25
D7
0-1, 3-7
1