I´m working with 2 variants of same project using XBee PRO programmable (Freescale S08QE32 core).
The #1 is a remote temperature sensor configured to sleep for several minutes between each data transfer. It uses one ADC and the I2C bus. No GPIOs. It draw less than 1mA when sleeping. Works fine.
The #2 is a variant of #1, but uses 2 ADC channels, and one GPIO (pin 16). No I2C bus. It draw 2mA when begins to sleep, and 3mA some minutes later. Except for this detail, works fine.
The firmware is almost the same for both, except for the GPIO/I2C difference.
In the #2 I tried several changes in ADC channels and various GPIOs choices. I can get a greater current draw, but I cant find a way to make it draw less than 1mA, like #1 does.
I guess the problem is an undisered interaction between EM250 and S08 GPIO settings (tri-states, pull-ups setings, etc), but I´m unable to find it.
Does anybody have a clue for it?
Thank´s in advance,