I/O support Output sample data
Digi XBee3® 802.15.4 RF Module User Guide
56
Output sample data
If a device receives an I/O sample whose address matches that set byIA (I/O Input Address), 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 settingIU commandto 0. This
only suppresses I/O samples that trigger line passing, a sample generated from a device whose
address does not match theIAaddress is sent regardless ofIU.
Output control
IO command controls the output levels of D0 command through D7 command 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
set low during sleep and SPI pins are set high. Peripheral and SPI pins resume normal operation upon
wake.
Digital I/O lines that have been set using I/O line passing hold their values during sleep, however the
digital timeout timer (T0 through T9, and Q0 through Q2) are suspended during sleep and resume
upon wake.
Analog and PWM I/O Lines
Lines configured as analog inputs or PWM output are not affected during sleep. PWM lines are shut
down (set low) during sleep and resume normal operation upon wake.
PWM output pins set by analog line passing are shutdown during sleep and revert to their preset
values (M0 and M1) on wake. This happens regardless of whether the timeout has expired or not.