User's Guide

Table Of Contents
Operation I/O support
XBee/XBee-PRO S2C 802.15.4 RF Module User Guide
55
Digital I/O line support
Digital I/O is available on pins D0 through D8. Each of these pins may be configured as 3, 4, or 5 with
the following meanings:
n 3 is digital input
n 4 is digital output low
n 5 is digital output high
Pins D0 through D8 are available for digital input, but only D0 through D7 are available for digital
output.
Function SMT pin THpin AT command
DIO0 33 20
D0 (DIO0/AD0)
DIO1 32 19
D1 (DIO1/AD1)
DIO2 31 18
D2 (DIO2/AD2)
DIO3 30 17
D3 (DIO3/AD3)
DIO4 24 11
D4 (DIO4)
DIO5 28 15
D5 (DIO5/ASSOCIATED_INDICATOR)
DIO6 29 16
D6 (DIO6/RTS)
DIO7 25 12
D7 (DIO7/CTS)
DIO8 10 9
D8 (DIO8/SLEEP_REQUEST)
Analog input
Analog input is available on D0 through D3 by configuring these parameters to 2. Analog input is not
available on D4 and D5.
On demand I/O sampling
You can use the IS (Force Sample) command to sample pins configured as digital I/O and analog input.
If no pins are configured in this manner (with the DO - D8 commands set to 2, 3, 4, or 5), then the IS
command returns an error.
In Command mode, the output is:
Output Description
01 Indicates one sample. That is the only possibility for Command mode.
20E Mask to indicate which lines are sampled (A0, D3, D2, and D1).
00A Digital sample indicates D3 high, D2 low, and D1 high.
3FF Analog sample for A0 indicates that A0 is reading maximum voltage of 1.2 V.
In API mode, the output is:
7E 00 0C 83 00 00 00 00 01 03 3E 01 2A 02 10 FD