I/O support
Digital line passing
Digi XBee® 3 802.15.4 RF Module User Guide
102
Digital line passing is only available on pins
D0
through
P3
. You cannot use UART and SPI pins for line
passing.
Example: Digital line passing
A sampling XBee 3 802.15.4 RF Module is configured with the following settings:
AT command
Parameter value
D2 (DIO2/ADC2/TH_SPI_CLK Configuration)
3 (digital input)
0x7D0 (2 seconds)
0013A200
12345678
Every two seconds, an I/O sample is generated and sent to the address specified by
DH
and
DL
. The
receiver is configured with the following settings:
AT command
Parameter value
D2 (DIO2/ADC2/TH_SPI_CLK Configuration)
5 (digital output low)
0x64 (10 seconds)
0013A20087654321
When this device receives an incoming I/O sample, if the source address matches the one set by
IA
,
the device sets the output of
D2
to match the input of
D2
of the receiver. This output level holds for
ten seconds before the pin returns to a digital output low state.
Analog line passing
Similar to digital line passing, analog line passing pairs the
of one device to a PWM
output of another. There are two PWM output pins that can simulate the voltage measured by the
ADC inputs. Be aware that ADC inputs are on different pins than the corresponding PWM outputs:
corresponds to
, and
corresponds to
. See
for the pinouts.
You can set the analog line passing timeout value with
, which affects both
. You can explicitly set a PWM output level using the
commands, when an I/O sample is received that affects a PWM output pin, it
returns to its configured state after the
PT
timeout period expires.
Example: Analog line passing
A sampling device is configured with the following settings:
AT command
Parameter value
2 (ADC input)