XBee®/XBee‐PRO® ZB SMT RF Modules
I/O Commands
I/O Commands
AT
Name and Description
Command
Parameter Range
Default
I/O Sample Rate. Set/Read the I/O sample rate to enable periodic sampling. For
periodic sampling to be enabled, IR must be set to a non-zero value, and at least one
module pin must have analog or digital I/O functionality enabled (see D0-D9, P0-P4
commands). The sample rate is measured in milliseconds.
IR
IC
0, 0x32:0xFFFF (ms)
0
I/O Digital Change Detection. Set/Read the digital I/O pins to monitor for changes in
the I/O state. IC works with the individual pin configuration commands (D0-D9, P0-P4). If
a pin is enabled as a digital input/output, the IC command can be used to force an
immediate I/O sample transmission when the DIO state changes. IC is a bitmask that
can be used to enable or disable edge detection on individual channels. Unused bits
should be set to 0.
: 0 - 0xFFFF
0
Bit (IO pin): 0 (DIO0)4 (DIO4)8 (DIO8)
1 (DIO1) 5 (DIO5) 9 (DIO9)
2 (DIO2) 6 (DIO6) 10 (DIO10)
3 (DIO3) 7 (DIO7) 11 (DIO11)
0 = Unmonitored digital
input
1 = RSSI PWM
3 - Digital input,
monitored
P0
PWM0 Configuration. Select/Read function for PWM0.
1
4 - Digital output, default
low
5 - Digital output, default
high
0 - Unmonitored digital
input
1 - Output 50% duty
cycle clock at 32.787 kHz
3- Digital input,
monitored
0
P1
PWM1 / DIO11 Configuration. Configure options for the DIO11 line of the RF module.
4- Digital output, default
low
5- Digital output, default
high
0 - Unmonitored digital
input
3- Digital input,
monitored
4- Digital output, default
low
P2
DIO12 Configuration. Configure options for the DIO12 line of the RF module.
0
5- Digital output, default
high
0 – Unmonitored digital
input
1 – Data out for UART
3 – Monitored digital
input
DIO13 / DOUT Configuration. Set/Read function for DIO13. Configure options for the
DIO13 line of the RF module.
P3
P4
1
1
4 – Digital output low
5 – Digital output high
0 – Unmonitored digital
input
1 – Data in for UART
3 – Digital input
DIO14 / DIN. Set/read function for DIO14.
4 – Digital output low
5 – Digital output high
0 – Unmonitored digital
input
1 – Output from SPI port
P5
P6
DIO15 / SPI_MISO. Set/read function for DIO15.
DIO16 / SPI_MOSI. Set/read function for DIO16.
1
1
0 – Unmonitored digital
input
1 – Input to SPI port
0 – Unmonitored digital
input
1 – Input to to select the
SPI port
P7
P8
DIO17 / SPI_SSEL. Set/read function for DIO17.
DIO18 / SPI_SClk. Set/read function for DIO18.
1
1
0 – Unmonitored digital
input
1 – SPI clock input
© 2010 Digi International, Inc.
131