Digital I/O Line Support; Analog Input; On Demand I/O Sampling - Digi XBee S2C 802.15.4 User Manual

Radio frequency module
Table of Contents

Advertisement

Operation

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:
3 is digital input
n
4 is digital output low
n
5 is digital output high
n
Pins D0 through D8 are available for digital input, but only D0 through D7 are available for digital
output.
Function SMT pin
DIO0
33
DIO1
32
DIO2
31
DIO3
30
DIO4
24
DIO5
28
DIO6
29
DIO7
25
DIO8
10

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
XBee/XBee-PRO S2C 802.15.4 RF Module User Guide
TH pin
AT command
D0 (DIO0/AD0)
20
D1 (DIO1/AD1)
19
D2 (DIO2/AD2)
18
D3 (DIO3/AD3)
17
D4 (DIO4)
11
D5 (DIO5/ASSOCIATED_INDICATOR)
15
D6 (DIO6/RTS)
16
D7 (DIO7/CTS)
12
D8 (DIO8/SLEEP_REQUEST)
9
I/O support
55

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xbee-pro s2c 802.15.4

Table of Contents