PR (Pull-up/down Resistor Enable)
This command applies to the XBee Smart Modem.
Sets or displays the bit field that configures the internal resistor status for the digital input lines. Internal pull-up/down resistors are not available for digital output pins, analog input pins, or for disabled pins.
Use the PD command to specify whether the resistor is pull-up or pull-down.
- 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 following table defines the bit-field map for both the PR and PD commands.
Bit | I/O line | Module pin |
---|---|---|
0 | DIO4 | pin 11 |
1 | DIO3/AD3 | pin 17 |
2 | DIO2/AD2 | pin 18 |
3 | DIO1/AD1 | pin 19 |
4 | DIO0/AD0 | pin 20 |
5 |
DIO6/RTS |
pin 16 |
6 | DIO8/SLEEP_REQUEST | pin 9 |
7 |
DIO14/DIN |
pin 3 |
8 | DIO5/ASSOCIATE | pin 15 |
9 |
DIO9/On/SLEEP |
pin 13 |
10 | DIO12 | pin 4 |
11 | DIO10 | pin 6 |
12 | DIO11 | pin 7 |
13 |
DIO7/CTS |
pin 12 |
14 | DIO13/DOUT | pin 17 |
Parameter range
0 - 0x7FFF (bit field)
Default
0x7FFF