User Manual
XBee® Wi-Fi RF Modules
© 2012 Digi International, Inc. 46
6. Advanced Application Features
XBee Analog and Digital I/O Lines
XBee Wi-Fi firmware supports a number of analog and digital I/O pins that are
configured through software commands. Analog and digital I/O lines can be set or
queried. The following table lists the configurable I/O pins and the corresponding
configuration commands.
Pin name(s) Module pin AT cmd Command Range
DIO12/SPI_MISO 4 P2 0,1,3-5
DIO10/PWM0 6 P0 0,2-5
DIO11/PWM1
7
P1
0,2-5
DIO8/nDTR/SLEEP_RQ 9 D8 0,1,3-5
DIO4/SPI_MOSI 11 D4 0-5
DIO7/nCTS 12 D7 0,1,3-7
DIO9/ON_nSLEEP
13
D9
0,1,3-5
DIO5/ASSOCIATE 15 D5 0,1,3-5
DIO6/nRTS 16 D6 0,1,3-5
DIO3/AD3/SPI_nSSEL 17 D3 0-5
DIO2/AD2/SPI_CLK
18
D2
0-5
DIO1/AD1/SPI_nATTN 19 D1 0-5
DIO0/AD0 20 D0 0,2-5
I/O Configuration
To enable an analog or digital I/O function on one or more XBee module pin(s), the
appropriate configuration command must be issued with the correct parameter. After
issuing the configuration command, changes must be applied on the module for the I/O
settings to take effect. Pull-up/down resistors can be set for each digital input line using
the PR command. The PR value updates the state of all pull-up/down resistors, and the
PD command determines if a pull-up or pull-down is used. See Chapter 8 for information
on these commands
Pin Command Parameter Description
0
Disabled
1
Peripheral control
2
Analog input or PWM output
3
Data in monitored
4
Data out default low
5
Data out default High
6
RS485 enable low
7
RS485 enable high
>7
Unsupported