Digital I/O support
Digital I/O is available on lines DIO0 through DIO12 (D0 (DIO0/ADC0/Commissioning Configuration) - D9 (DIO9/ON_SLEEP Configuration) and P0 (DIO10/RSSI/PWM0 Configuration) - P4 (DIO14/UART_DIN Configuration)). Digital sampling is enabled on these pins if configured as 3, 4, or 5 with the following meanings:
-
3 is digital input.
-
Use PR (Pull-up/Down Resistor Enable) to enable internal pull up/down resistors for each digital input. Use PD (Pull Up/Down Direction) to determine the direction of the internal pull up/down resistor. All disabled and digital input pins are pulled up by default.
-
- 4 is digital output low.
- 5 is digital output high.
Function |
Micro Pin |
SMT Pin |
TH Pin |
AT Command |
---|---|---|---|---|
DIO0 |
31 |
33 |
20 |
|
DIO1 |
30 |
32 |
19 |
|
DIO2 |
29 |
31 |
18 |
|
DIO3 |
28 |
30 |
17 |
|
DIO4 |
23 |
24 |
11 |
|
DIO5 |
26 |
28 |
15 |
|
DIO6 |
27 |
29 |
16 |
|
DIO7 |
24 |
25 |
12 |
|
DIO8 |
9 |
10 |
9 |
|
DIO9 |
25 |
26 |
13 |
|
DIO10 |
7 |
7 |
6 |
|
DIO11 |
8 |
8 |
7 |
|
DIO12 |
5 |
5 |
4 |
|
DIO13 |
3 |
3 |
2 |
|
DIO14 |
4 |
4 |
3 |
I\O sampling is not available for pins P5 through P9. See the XBee 3 Hardware Reference Manual for full pinouts and functionality.