Digital I/O Line Support; Analog Input; Monitor I/O Lines - Digi DigiMesh XBee S2C User Manual

Radio frequency (rf) modules
Hide thumbs Also See for DigiMesh XBee S2C:
Table of Contents

Advertisement

I/O support

Digital I/O line support

Digital I/O is available on lines DIO0 through DIO12 (D0 - D9 and P0 - P2). 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
Function
Pin
DIO0
TH pin 20/SMT pin 33
DIO1
TH pin 19/SMT pin 32
DIO2
TH pin 18/SMT pin 31
DIO3
TH pin 17/SMT pin 30
DIO4
TH pin 11/SMT pin 24
DIO5
TH pin 15/SMT pin 28
DIO6
TH pin 16/SMT pin 29
DIO7
TH pin 12/SMT pin 25
DIO8
TH pin 9/SMT pin 10
DI09
DIO10
TH pin 6/SMT pin 7
DIO11
TH pin 7/SMT pin 8
DIO12
TH pin 4/SMT pin 5

Analog input

Analog input is available on D0 through D3. To use analog input, set these parameters to 2.

Monitor I/O lines

You can use
IS command
no inputs are defined, the command returns an ERROR.
If you send the IS command from Command mode, then the device returns a carriage return delimited
list containing the following fields.
Field
Name
1
Sample
sets
XBee S2C DigiMesh 2.4 User Guide
to query the current state of all digital input and ADC lines on the device. If
Description
Number of sample sets in the packet. Always set to 1.
Command
D0 (DIO0/AD0)
D1 (DIO1/AD1)
D2 (DIO2/AD2)
D3 (DIO3/AD3)
D4 (DIO4)
D5 (DIO5/ASSOCIATED_INDICATOR)
D6 (DIO6/RTS)
D7 (DIO7/CTS)
D8 (DIO8/DTR/SLEEP_REQUEST)
D9 (ON_SLEEP)
P0 (DIO10/RSSI/PWM0 Configuration)
P1 (DIO11/PWM1 Configuration)
P2 (DIO12/SPI_MISO Configuration)
Digital I/O line support
45

Advertisement

Table of Contents
loading

Table of Contents