User's Guide
Table Of Contents
- XBee/XBee-PRO S2C 802.15.4 RF Module User Guide
- Technical specifications
- Hardware
- Configure the XBee/XBee-PRO S2C 802.15.4 RF Module
- Modes
- Operation
- AT commands
- Special commands
- Networking and security commands
- C8 (802.15.4 Compatibility)
- CH (Operating Channel)
- ID (Network ID)
- DH (Destination Address High)
- DL (Destination Address Low)
- MY (Source Address)
- SH (Serial Number High)
- SL (Serial Number Low)
- MM (MAC Mode)
- RR (XBee Retries)
- RN (Random Delay Slots)
- ND (Network Discovery)
- NT (Node Discover Timeout)
- NO (Node Discovery Options)
- DN (Discover Node)
- CE (Coordinator Enable)
- SC (Scan Channels)
- SD (Scan Duration)
- A1 (End Device Association)
- A2 (Coordinator Association)
- AI (Association Indication)
- DA (Force Disassociation)
- FP (Force Poll)
- AS (Active Scan)
- ED (Energy Detect)
- EE (Encryption Enable)
- KY (AES Encryption Key)
- NI (Node Identifier)
- NP (Maximum Packet Payload Bytes)
- RF interfacing commands
- Sleep commands
- Serial interfacing commands
- I/O settings commands
- D0 (DIO0/AD0)
- D1 (DIO1/AD1)
- D2 (DIO2/AD2)
- D3 (DIO3/AD3)
- D4 (DIO4)
- D5 (DIO5/ASSOCIATED_INDICATOR)
- D8 (DIO8/SLEEP_REQUEST)
- P0 (RSSI/PWM0 Configuration)
- P1 (PWM1 Configuration)
- P2 (SPI_MISO)
- M0 (PWM0 Duty Cycle)
- M1 (PWM1 Duty Cycle)
- P5 (SPI_MISO)
- P6 (SPI_MOSI Configuration)
- P7 (SPI_SSEL )
- P8 (SPI_SCLK)
- P9 (SPI_ATTN)
- PR (Pull-up/Down Resistor Enable)
- PD (Pull Up/Down Direction)
- IU (I/O Output Enable)
- IT (Samples before TX)
- IS (Force Sample)
- IO (Digital Output Level)
- IC (DIO Change Detect)
- IR (Sample Rate)
- RP (RSSI PWM Timer)
- I/O line passing commands
- Diagnostic commands
- Command mode options
- Operate in API mode
- API mode overview
- API frame specifications
- Escaped characters in API frames
- Frame descriptions
- TX Request: 64-bit address frame - 0x00
- TX Request: 16-bit address - 0x01
- AT Command frame - 0x08
- AT Command - Queue Parameter Value frame - 0x09
- Remote AT Command Request frame - 0x17
- RX Packet: 64-bit Address frame - 0x80
- Receive Packet: 16-bit address frame - 0x81
- RX (Receive) Packet: 64-bit address IO frame- 0x82
- RX Packet: 16-bit address I/O frame - 0x83
- AT Command Response frame - 0x88
- TX Status frame - 0x89
- Modem Status frame - 0x8A
- Remote Command Response frame - 0x97
- Regulatory information
- Load 802.15.4 firmware on ZB devices
- Migrate from XBee through-hole to surface-mount devices
- PCB design and manufacturing
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 THpin 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