AT commands
I/O settings commands
Parameter
Description
Disabled
0
1
SPI_ATTN
Default
1
PR (Pull-up/Down Resistor Enable)
This command applies to the XBee/XBee-PRO S2C 802.15.4 RF Module.
The bit field that configures the internal pull-up/down resistor status for the I/O lines.
n
If you set a PR bit to 1, it enables the pull-up/down resistor
n
If you set a PR bit to 0, it specifies no internal pull-up/down resistor.
The PD (Pull Direction) parameter determines the direction of the internal pull-up/down resistor.
Note When using Pin sleep, the internal pull up/down resistor is not used
PR and PD only affect lines that are configured as digital inputs or disabled.
The following table defines the bit-field map for PR and PD commands.
Bit
0
I/O line
DIO4 (pin 11)
1
AD3/DIO3 (pin 17)
AD2/DIO2 (pin 18)
AD1/DIO1 (pin 19)
AD0/DIO0 (pin 20)
2
3
4
RTS
5
/DIO6 (pin 16)
6
DI8/SLEEP_RQ (pin 9)
DIN/CONFIG (pin 3)
7
Parameter range
0 - 0xFF (bit field)
Default
0xFF
Example
Sending the command ATPR 6F turn bits 0, 1, 2, 3, 5 and 6 ON, and bits 4 and 7 OFF. The binary
equivalent of 0x6F is 01101111. Bit 0 is the last digit in the bit field.
XBee/XBee-PRO S2C 802.15.4 RF Module User Guide
98