AT commands
I/O settings commands
XBee/XBee-PRO S2C 802.15.4 RF Module User Guide
97
Default
0xFF
Example
Sending the command
ATPR 6F
turn bits 0, 1, 2, 3, 5 and 6 ON, and bits 4 and 7 OFF. The binary
equivalent of
0x6F
is
01101111
. Bit 0 is the last digit in the bit field.
PD (Pull Up/Down Direction)
The resistor pull direction bit field (1 = pull-up, 0 = pull-down) for corresponding I/O lines that are set
by the
PR
command.
See
PR (Pull-up/Down Resistor Enable)
for the bit mappings.
Parameter range
0x0 - 0xFF
Default
0xFF
IU (I/O Output Enable)
The
IU
command disables or enables I/O UART output. When enabled (
IU
= 1), received I/O line data
packets are sent out the UART. The data is sent using an API frame regardless of the current
AP
parameter value.
Enable or disable the serial output of received I/O sample data when I/O line passing is enabled.
IU
only affects the device’s behavior when
IA
is set to a non-default value.
When
IU
is enabled, any received I/O sample data is sent out the UART/SPI interface using an API
frame. Sample data is only generated if the local device is operating in API mode (
AP
= 1 or 2).
Parameter range
0 - 1
Parameter
Description
0
Disabled
1
Enabled
Default
1
IT (Samples before TX)
Sets or displays the number of samples to collect before transmitting data. The maximum number of
samples is dependent on the number of enabled I/O lines and the maximum payload available.
If
IT
is set to a number too big to fit in the maximum payload, it is reduced such that it will fit. A query
of
IT
after setting it reports the actual number of samples in a packet.
Parameter range
0x1 - 0xFF