IOs and ADC for XBEE 802.15.4 (1mW)

, , ,

Hi, I am almost at the end of a design and I need to add an ADC, either by external chips or by the XBEE integreted ADC. But the doc about IOs and ADCs is not clear.
NOTE : I am not using the API instructions, just sending/receiving chars.

I will use an external ADC that may have a more stable Vref than the ADC on the XBEE (Assumption not verified, but the chip I will use has a stable vref source)
So I will manage 3 bit signals : Shutdown, Chips Select, Clock, and an output bit the other way.

But my questions, necessary for finishing my project, are also of general interest. Please, you can answer in the reply billow the question, and other replies start from the most recent posted answers.

  1. Can a receiving BASE request a slave to send IO samples (other than setting a sample freq on slave),
    the sending slave device needs to send at least a char in order to send a sample?
    (if so we would send a char requesting to send an ACK char)

(An example is when the external ADC sends back in series the 10 bits results.
Maybe the next bit will be the same as the previous one, so no change to trigger an update, but we need to read it, namely after we sent an hi-and-falling edge for the clock)

  1. In DIO setups set as outputs : What is the meaning of Dn Low and Dn High (I suppose it sets states, but beside being set by the other device, when do we use them, are they more persistant, or it is just a way to set them locally?) ?

  2. While the XBEE is in sleep, what are the values of the Outbut IOs?
    (Will it keep them as they were last received?)
    (During sleep, my ADC Shutdown line needs to be Low and Chip select High)

  3. What are Output states when we wake up the XBEE?

  4. (Maybe related) What happens if we do not set a pullup with PR on the IO’s, is it the same with both Inputs and outputs)? (Does it set a default state?)

  5. When we wake up the XBEE, it will sample its IO’s, will it send a packet, or I need to send a char in order to send that info?

7 ) IT Sample before TX : is it the amount of output/input bits or amount of bytes?

8 ) On page 17 : « To enable the outputs to be updated, the IA (I/O Input Address) parameter must be setup with the address of the module that has the appropriate inputs enabled. This effectively binds the outputs to a particular module’s input. This does not affect the ability of the module to receive I/O line data from other modules - only its ability to update enabled outputs. »

This is difficult to understand and the module allows to define only one AI address.

Less urgent questions :

About integretad ADCs :

  1. Can we send it to the device attached to the XBEE (so, not for sending it to a remote device)?

  2. When an ADC send its value, how do we get it in its numeric form at the other device, if the recipient is not a PWM pin?

  3. About the ADC on the XBEE :
    (delays, variation with temperature variations, reference voltage precision)


Yes there is a Change detect function that you can use to sample enabled DIO lines.

That refers to the default state of the DnOut line. If its default state is high or low. The n refers to the specific DIO line that is used.

They are in their default states

The Input controls the line. Not enabling the pull up resistors on an output line can cause the line to be floating and not pulled to a high state.

If you want to know on the UART. you need to use API mode and it will send out an API frame indicating the change.

The DIO function is not Data In out but Digital IO in and Out. So it is neither a bit or a byte.

I am not sure I understand your question 9. The radio does Analog to Digital. Not Analog to digital to analog.