8. XBee Analog and Digital I/O Lines
XBee ZB 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.
Module Pin Names
Module Pin AT Command
Command Range
DOUT/DIO13
3
P3
P4
P0
P1
D8
0, 1, 3-5
DIN/CONFIG/DIO14
PWM RSSI/DIO10
PWM1/DIO11
4
0, 1, 3-5
0, 1, 3-5
0, 1, 3-5
0, 1, 3-5
7
8
DTR/Slp_Rq/DIO8
10
PTI_DATA/SPI_Attn/ADC5/
DIO19
12
P9
0, 1, 6
SPI_SClk/DIO18
SPI_SSel/DIO17
SPI_MOSI/DIO16
SPI_MISO/DIO15
JTMS/SWDIO/DIO12/CD
JTRst/DIO4
14
15
16
17
21
24
25
26
28
29
30
31
32
33
P8
P7
P6
P5
P2
D4
D7
D9
D5
D6
D3
D2
D1
D0
0, 1
0, 1
0, 1
0,1
0, 3-5
0, 3-5
0, 1, 3-7
0, 1, 3-5
0, 1, 3-5
0, 1, 3-5
0, 2-5
0, 2-5
0, 2-6
0-5
CTS/DIO7
JTDO/On_SLP/DIO9
JTDI/Assoc/DIO5
RTS/DIO6/SClk2
AD3/DIO3
AD2/DIO2
PTI_En/AD1/DIO1
AD0/DIO0/Comm
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.
Pin Command Parameter
Description
Disabled. (See below)
0
1
2
3
Peripheral control
Analog
Data in monitored. (See below)
© 2010 Digi International, Inc.
91