AT commands
I/O settings commands
Digi XBee® 3 802.15.4 RF Module User Guide
162
Parameter
Description
0
Disabled
1
SPI_MISO for the through-hole device
N/A for the surface-mount and micro device
2
N/A
3
Digital input
4
Digital output, low
5
Digital output, high
Default
0
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.
PR
and
PD
only affect lines that are configured as digital inputs (
3
) or disabled (
0
).
By default, pull-up resistors are enabled on all disabled I/O lines.
The following table defines the bit-field map for
PR
and
PD
commands.
Bit
I/O line
Micro pin
Surface-mount pin
Through-hole pin
0
DIO4
23
24
11
1
DIO3
28
30
17
2
DIO2
29
31
18
3
DIO1
30
32
19
4
DIO0
31
33
20
5
DIO6
27
29
16
6
DIO8
9
10
9
7
DIO14
4
4
3
8
DIO5
26
28
15
9
DIO9
25
26
13
10
DIO12
5
5
4
11
DIO10
7
7
6