AT commands I/O sampling commands
XBee® SX 868 RF Module User Guide
145
IC works with the individual pin configuration commands (D0 - D9, P0 - P2) . If you enable a pin as a
digital I/O, you can use the IC command to force an immediate I/O sample transmission when the DIO
state changes. IC is a bitmask that you can use to enable or disable edge detection on individual
channels.
Set unused bits to 0.
Bit I/O line
0 DIO0
1 DIO1
2 DIO2
3 DIO3
4 DIO4
5 DIO5
6 DIO6
7 DIO7
8 DIO8
9 DIO9
10 DIO10
11 DIO11
12 DIO12
Parameter range
0 - 0xFFFF (bit field)
Default
0
IF (Sleep Sample Rate)
This command applies to the XBee SX 868 RF Module.
Set or read the number of sleep cycles that must elapse between periodic I/O samples. This allows the
firmware to take I/O samples only during some wake cycles. During those cycles, the firmware takes
I/O samples at the rate specified by IR.
In addition, setting IF to zero allows I/O samples to occur before the device goes to sleep and to occur
thereafter every wake cycle specified by IR.
To enable periodic sampling, set IR to a non-zero value, and enable the analog or digital I/O
functionality of at least one device pin. The sample rate is measured in milliseconds. For more
information, see the following commands:
n
D0 (DIO0/AD0) through D9 (DIO9/ON_SLEEP)
n
P0 (DIO10/RSSI/PWM0 Configuration) through P2 (DIO12 Configuration)