PR (Pull-up/Down Resistor Enable)
This command applies to the XBee 3 802.15.4 RF Module.
The bit field that configures the internal pull-up
- If you set a PR bit to 1, it enables the pull-up/down resistor
- 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 |
12 |
DIO11 |
8 |
8 |
7 |
13 |
DIO7 |
24 |
25 |
12 |
14 |
DIO13 |
3 |
3 |
2 |
15 |
DIO15 |
16 |
17 |
N/A |
16 |
DIO16 |
15 |
16 |
N/A |
17 |
DIO17 |
14 |
15 |
N/A |
18 |
DIO18 |
13 |
14 |
N/A |
19 |
DIO19 |
11 |
12 |
N/A |
Parameter range
Through-hole: 0 - 0xFFFF
SMT/MMT: 0 - 0xFFFFF
Default
0xFFFF
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 right-most digit in the binary bit field.