AG Electronica XBee 2 Series Manual page 34

Table of Contents

Advertisement

www.agelectronica.com
XBee Series 2 ZigBee OEM RF Modules v1.x2x [2007.07.019]
www.agelectronica.com
Table 4‐08.
Module Pin Names Module Pin Numbers Configuration Command
RTS/DIO6
16
AD3/DIO3
17
AD2/DIO2
18
AD1/DIO1
19
AD0/DIO0
20
Setting the configuration command that corresponds to a particular pin will configure the pin.
Parameters for the pin configuration commands typically include the following:
.
Table 4‐09.
Pin Command Parameter
0
1
2
3
4
5
6-9
See the command table for more information. Pullup resistors for each digital input can be enabled
using the PR command.
Sampling A/D and Digital Input Lines
The IS command can be used to sample the current value of all enabled A/D and digital input
lines. .
Bytes
1
Sample sets in packet
2
Digital Channel Mask
1
Analog Channel Mask
Var
Sampled Data Set
© 2007 Digi International, Inc.
D6
D3
D2
DI
D0
Description
Unmonitored digital input
Reserved for pin-specific alternate functionalities
Analog input, single ended (A/D pins only)
Digital input, monitored
Digital output, default low
Digital output, default high
Alternate functionalities, where applicable
Name
Number of sample sets in the packet
Each bit in the digital channel mask corresponds to one digital IO line. The
bits, from LSB to MSB, correspond to DOI0-DOI5 on the module.
For example a digital channel mask of 0x002F means DIO0,1,2,3, and 5 are
enabled as digital input lines.
Each bit in the analog channel mask corresponds to one analog channel. The
bits from LSB to MSB correspond to AIN0-AIN7 on the module.
For example, if the analog channel mask is 0x06, AINI and AIN3 are enabled
as analog input lines.
A sample set consisting of 1 sample for each enabled ADC and/or DIO
channel. If any digital input lines are enabled, the first two bytes indicate the
state of all enabled digital input lines. Each bit in these two bytes corresponds
to one digital IO line, similar to the way each bit in the diglossia channel mask
corresponds. Note: only the digital input line that are enabled in the detail
channel mask have valid readings. Channels that are not enabled as digital
input lines will return a 0 in the sampled data set. If no pins are configured as
digital inputs, these 2 bytes will be omitted.
Following the digital input data, if any, each enabled analog channel will return
2 bytes (10bits). The analog data is scaled such that 0 represents 0V, and
0x3FF=1.2V. The analog input lines cannot measure more than 1.2V.
Information for each enabled analog channel is returned in order, starting with
AIN0 and finishing with AIN4. Only enabled analog input channels will return
data.
www.agelectronica.com
Chapter 4 ‐ RF Module Configuration
Description
     33
www.agelectronica.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xb24-buit-004

Table of Contents