XBee® Wi-Fi RF Modules
© 2013 Digi International, Inc. 99
I/O Settings
AT
Command
Name and Description
Parameter
Range
Default
IS Force Sample Forces a read of all enabled digital and analog input lines. - -
IR
IO Sample Rate. Set/Read the IO 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 IO functionality enabled (see D0-D8, P0-P2
commands). The sample rate is measured in milliseconds. WARNING: If IR is set to 1
or 2, the module will not keep up and many samples will be lost.
0-0xFFFF (x 1 ms) 0 – no sampling
IC
IO Digital Change Detection. Set/Read the digital IO pins to monitor for changes in
the IO state. IC works with the individual pin configuration commands (D0-D9, P0-P2).
If a pin is enabled as a digital input/output, the IC command can be used to force an
immediate IO 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
0 - 0xFFFF 0
IF
Sample from Sleep Rate. The number of sleep cycles that must elapse between
periodic I/O samples. This allows I/O samples to be taken only during some wake
cycles. During those cycles I/O samples are taken at the rate specified by IR. IR can be
0 which will cause only one sample to be taken.
1-0xFF
(1 gives you a
sample every sleep
cycle)
1
P0 DIO10 Configuration. Select/Read function for the DIO10 line of the RF module.
0 = Disabled,
2 = PWM0 Output
3 = Digital input,
monitored
4 = Digital output,
default low
5 = Digital output,
0
P1 DIO11 Configuration. Select/Read function for the DIO11 line of the RF module.
0 = Disabled
2 = PWM1 Output
3 = Digital input,
monitored
4 = Digital output,
default low
5 = Digital output,
default high
0
P2 DIO12 Configuration. Select/Read function for the DIO12 line of the RF module.
1 = SPI_MISO*
3 = Digital input,
monitored
4 = Digital output,
default low
5 = Digital output,
default high
0
P3 DOUT. Enables or disables output on UART port
0 = Disabled
1 = Enabled
1
P4 DIN. Enables or disables input on UART port
0 = Disabled
1 = Enabled
1
P5** DIO15 Configuration. Select/Read function for the DIO15 line of the RF module.
0 = Disabled
1 = SPI_MISO
4 = Digital output,
default low
5 = Digital output,
default high
1
P6** DIO16 Configuration. Select/Read function for the DIO16 line of the RF module.
0 = Disabled
1 = SPI_MOSI
4 = Digital output,
default low
5 = Digital output,
default high
1