Analog and digital IO lines IO sampling
XBee/XBee-PRO ZigBee RF Modules User Guide 105
To convert the A/D reading to mV, do the following:
AD(mV) = (A/D reading * 1200mV) / 1023
The reading in the sample frame represents voltage inputs of 1143.75 and 342.1875mV for AD0 and AD1
respectively.
Queried sampling
The IS command can be sent to a device locally, or to a remote device using the API remote command frame; see
API operation on page 108 for details. When the IS command is sent, the receiving device samples all enabled
digital IO and analog input channels and returns an IO sample. If IS is sent locally, the IO sample is sent out the
UART. If the IS command was received as a remote command, the IO sample is sent over-the-air to the device that
sent the IS command.
If the IS command is issued in AT firmware, the module returns a carriage return-delimited list containing the
above-listed fields. The API firmware returns an AT command response packet with the IO data included in the
command data portion of the response frame.