![Digi S6B Скачать руководство пользователя страница 166](http://html.mh-extra.com/html/digi/s6b/s6b_user-manual_2496668166.webp)
AT commands
I/O settings commands
XBee Wi-Fi RF Module User Guide
166
PR (Pull-up Resistor)
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.
Sets or reads 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 resistor. If you set a
PR
bit to 0, it specifies no internal pull-up.
Pin numbers are listed with the TH module pin first, followed by the SMT device pin (for example, pin
11/24 indicates pin 11 on the through-hole device and pin 24 on the surface mount device).
Bit
I/O line
0
DIO4 (Pin 11/24)
1
DIO3/AD3 (Pin 17/30)
2
DIO2/AD2 (Pin 18/31)
3
DIO1/AD1 (Pin 19/32)
4
DIO0/AD0 (Pin 20/33)
5
DIO6/RTS (Pin 16/29)
6
DIO8/DTR/Sleep Request (Pin 9/10)
7
DIN/CONFIG (Pin 3/4)
8
DIO5/Associate (Pin 15/28)
9
DIO9/On/SLEEP (Pin 13/26)
10
DIO12 (Pin 4/5)
11
DIO10/PWM RSSI/PWM0 (Pin 6/7)
12
DIO11/PWM1 (Pin 7/8)
13
DIO7 / CTS (Pin 12/25)
14
DIO13/DOUT (pin2/3)
15
DIO15 (pin NA/17)
16
DIO16 (Pin NA/16)
17
DIO17 (Pin NA/15)
18
DIO18 (Pin NA/14)
19
DIO19 (Pin NA/12)
Parameter range
0 - 0x7FFF (TH)
0-0xFFFFF (SMT)