XBee/XBeePRO"燨EM燫F燤odules??02.15.4?爒1.xAx燵2007.05.031]
2007燤axStream,營nc.
牋牋?2
Chapter??燫F燤odule燨peration
2.2. ADC and Digital I/O Line Support
The XBee/XBee-PRO RF Modules support ADC (Analog-to-digital conversion) and digital I/O line
passing. The following pins support multiple functions:
To enable ADC and DIO pin functions:
2.2.1. I/O Data Format
I/O data begins with a header. The first byte of the header defines the number of samples forth-
coming. A sample is comprised of input data and the inputs can contain either DIO or ADC. The
last 2 bytes of the header (Channel Indicator) define which inputs are active. Each bit represents
either a DIO line or ADC channel.
Figure?04.  Header
Sample data follows the header and the channel indicator frame is used to determine how to read
the sample data. If any of the DIO lines are enabled, the first 2 bytes are the DIO data and the
ADC data follows. ADC channel data is stored as an unsigned 10-bit value right-justified on a 16-
bit boundary.
Figure?05.  Sample燚ata
Table?01.   Pin爁unctions燼nd爐heir燼ssociated爌in爊umbers燼nd燾ommands 
AD?燗nalogtoDigital燙onverter,燚IO?燚igital營nput/Output
Pin爁unctions爊ot燼pplicable爐o爐his爏ection燼re燿enoted爓ithin?parenthesis).
Pin Function
Pin#
AT Command
AD0 / DIO0
20
D0
AD1 / DIO1
19
D1
AD2 / DIO2
18
D2
AD3 / DIO3 / (COORD_SEL)
17
D3
AD4 / DIO4
11
D4
AD5 / DIO5 / (ASSOCIATE)
15
D5
DIO6 / (RTS)
16
D6
DIO7 / (CTS)
12
D7
DI8 / (DTR) / (Sleep_RQ)
9
D8
For ADC Support:
Set ATDn = 2
For Digital Input support:
Set ATDn = 3
For Digital Output Low support:
Set ATDn = 4
For Digital Output High support:
Set ATDn = 5
Header
Bit set to 1 if channel is active
Bytes 2 - 3 (Channel Indicator)
na
D8
A0
A1
A2
A3
A4
A5
D7
D0
D1
D2
D3
D4
D5
D6
Byte 1
Total number of samples
bit 15
bit 0
Sample Data
DIO Line Data is first (if enabled)
ADC Line Data
ADCn MSB
ADCn LSB
7
0
1
2
3
4
5
6
X
8
X
X
X
X
X
X
相关PDF资料
XIB-E BOARD INTERFACE ETHERNET
XIB-R BOARD INTERFACE RS232/485
ZMN2400HPDB BOARD ROUTER DEV ZIGBEE 100MW
ZMN24HPDK-B KIT DEV W/ZIGBEE ZMN2400HP
ZNI1000TC IC TEMP SENSOR NI1000 SOT23-3
02110102-000 SNSR TILT RATIO 60DEG 500MA FLNG
1-5209285-2 FOPC BOA 12DB FC/UPC BP SM
2-1693560-0 BOA 20DB LC/UPC BB
相关代理商/技术参数
XBIB-U-DEV 功能描述:界面开发工具 USB XBee-PRO profes onal interface board RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
XBIB-U-SP 功能描述:界面开发工具 USB/Xbee/Xbee-Pro Inf Brd SMT Pads RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
XBIB-U-SS 功能描述:界面开发工具 USB/Xbee/Xbee-Pro Inf Brd SMT Skt RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
XBL6450BYFVR 制造商:Texas Instruments 功能描述:ECS BLUELINK - Tape and Reel
XBL6450YFHR 制造商:Texas Instruments 功能描述:
XBLYGK2 制造商:Schneider Electric 功能描述:INSERT LABELS FOR XBTGK2XXX
XBLYGK5 制造商:Schneider Electric 功能描述:INSERT LABELS FOR XBTGK5XXX
XBLYRT01 制造商:Schneider Electric 功能描述:Label inserts for XBTRT511