Advanced application features I/O line monitoring
XBee® SX 868 RF Module User Guide
70
Pin command parameter Description
3 Digital input, monitored
4 Digital output, low
5 Digital output, high
7 Alternate functionality, where applicable
The following table provides the pin configurations when you set the configuration command for a
particular pin.
Device pin name Device pin number Configuration command
DIO12 5
P2
PWM0 / RSSI / DIO10 7
P0
PWM1 / DIO11 8
P1
DTR / SLEEP_RQ / DIO8
10
D8
DIO4 24
D4
CTS / DIO7
25
D7
ON/
SLEEP
/ DIO9 26
D9
ASSOC / AD5 / DIO5 15
D5
RTS / DIO6
29
D6
AD3 / DIO3 30
D3
AD2 / DIO2 31
D2
AD1 / DIO1 32
D1
AD0 / DIO0 / Commissioning Pushbutton 33
D0
Use the PR command to enable internal pull up/down resistors for each digital input. Use the PD
command to determine the direction of the internal pull up/down resistor.
Queried sampling
You can use the IS command to query the current state of all digital input and ADC lines on the
device. If no inputs are defined, the command returns with an ERROR.
Field Name Description
1 Sample
sets
Number of sample sets in the packet. Always set to 1.
2 Digital
channel
mask
Indicates which digital I/O lines have sampling enabled. Each bit
corresponds to one digital I/O line on the device.