AT commands
I/O settings commands
XBee/XBee-PRO S2C 802.15.4 RF Module User Guide
96
Default
1
P9 (SPI_ATTN)
Sets or displays the SPI_ATTN configuration (pin 12).
This only applies to surface-mount devices.
Parameter range
1, 2
Parameter
Description
0
Disabled
1
SPI_ATTN
Default
1
PR (Pull-up/Down Resistor Enable)
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
I/O line
0
DIO4 (pin 11)
1
AD3/DIO3 (pin 17)
2
AD2/DIO2 (pin 18)
3
AD1/DIO1 (pin 19)
4
AD0/DIO0 (pin 20)
5
RTS/DIO6 (pin 16)
6
DI8/SLEEP_RQ (pin 9)
7
DIN/CONFIG (pin 3)
Parameter range
0 - 0xFF (bit field)