I/O support
Output sample data
Digi XBee® 3 802.15.4 RF Module User Guide
103
AT command
Parameter value
0x7D0 (2 seconds)
0013A200
12345678
Every two seconds, an I/O sample frame is generated and sent to the address specified by
DH
and
DL
.
The receiver is configured with the following settings:
AT command
Parameter value
P0
2 (PWM output)
M0
0
PT
0x12C (30 seconds)
IA
0013A20087654321
When this device receives an incoming I/O sample, if the source address matches the one set by
IA
,
the device sets the PWM output of
P0
to match the ADC input of
D0
of the receiver. This output level
holds for thirty seconds before the pin returns to a digital output low state.
Output sample data
If a device receives an I/O sample whose address matches that set by
, it
triggers line passing. Line passing operates whether the receiving device is operating in API or
Transparent mode.
By default, if the receiver is configured for API mode, it outputs the I/O sample frame in addition to
affecting output pins. You can suppress the I/O sample frame output by setting
to
0
. This only suppresses I/O samples that trigger line passing, a sample generated from a
device whose address does not match the
IA
address is sent regardless of
IU
.
Output control
controls the output levels of
D0 (DIO0/ADC0/Commissioning Configuration)
through
that are configured as output pins (either
4
or
5
). These values
override the configured output levels of the pins until they are changed again (the pins do not
automatically revert to their configured values after a timeout.)
You can use
IO
to trigger a sample on change detect.
I/O behavior during sleep
When the device sleeps (
SM !
=
0
) the I/O lines are optimized for a minimal sleep current.
Digital I/O lines
Digital I/O lines set as digital output high or low maintain those values during sleep. Disabled or input
pins continue to be controlled by the
PR
/
PD
settings. Peripheral pins (with the exception of CTS) are