# Scaled analog value?

**URL:** <https://forums.digi.com/t/scaled-analog-value/1465>\
**Category:** XBee - 802.15.4\
**Created:** [February 10, 2010, 5:27pm UTC](https://forums.digi.com/t/scaled-analog-value/1465 "2010-02-10T17:27:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PPA94](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@PPA94](https://forums.digi.com/u/PPA94)\
**Post date:** [February 10, 2010, 5:27pm UTC](https://forums.digi.com/t/scaled-analog-value/1465/1 "2010-02-10T17:27:44Z")

</div>

Hi,

I’m using analogs and I have a strange behavior:  
If Vref = Vcc = 3.3V, the value reaches 1023 at 2.16V.  
This seems to be about a 2/3 ratio regarding the theoritical 1023 for 3.3V!

And amazing:  
If Vref = not connected, 1023 is reached for 1.75V!  
If Vref = GND, 1023 is reached for 1.28V!

I’ve two parts and they have the same behavior…

Any idea?

(X-CTU reports: XBP24 - XBEE PRO 802.15.4 - firmware version 10E6)

Regards,  
Philippe.

---

<div class="post-metadata">

**Author:** ![johnf](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@johnf](https://forums.digi.com/u/johnf)\
**Post date:** [February 10, 2010, 7:41pm UTC](https://forums.digi.com/t/scaled-analog-value/1465/2 "2010-02-10T19:41:59Z")

</div>

My only thought is to ask whether you have a decoupling capacitor fitted between the analog input and VREF. The need for it is mentioned in footnote 1 on page 8 of the 1xEx manual, and it’s quite easy to miss. The capacitor should be in the range 0.01 to 0.1 microfarads.

Hmm. Now that I’ve looked at it again, it actually says VREFL so maybe the capacitor should be connected between the analog pin and ground. Does anyone know whether it matters?

---

<div class="post-metadata">

**Author:** ![PPA94](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@PPA94](https://forums.digi.com/u/PPA94)\
**Post date:** [February 10, 2010, 8:08pm UTC](https://forums.digi.com/t/scaled-analog-value/1465/3 "2010-02-10T20:08:08Z")

</div>

Hi,  
The source has a very low impedance and has decoupling.  
Nevertheless, I don’t see how this would do with a 2/3 ratio.  
Returned value is very stable (no noise).

About where to put a decoupling cap: IMHO to put a cap between signal and Vref is a good way, it makes a kind of common mode rejection. But it depends on where the signal is referenced - on Vref or on Gnd (Vref- is not available: this VSSad reference in the manuals is meaningless).

Regards,  
Philippe.

---

<div class="post-metadata">

**Author:** ![PPA94](https://avatars.discourse-cdn.com/v4/letter/p/3be4f8/32.png) [@PPA94](https://forums.digi.com/u/PPA94)\
**Post date:** [February 16, 2010, 2:59pm UTC](https://forums.digi.com/t/scaled-analog-value/1465/4 "2010-02-16T14:59:25Z")

</div>

Hi,  
Nobody has ideas?  
Should I assume that my parts have some trouble?

Regards,  
Philippe.

---

<div class="post-metadata">

**Author:** ![johnf](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@johnf](https://forums.digi.com/u/johnf)\
**Post date:** [February 16, 2010, 7:34pm UTC](https://forums.digi.com/t/scaled-analog-value/1465/5 "2010-02-16T19:34:26Z")

</div>

You could wait a little to see whether there are any other responses, but in the absence of a helpful resopnse here I believe the kind folks at Digi will be happy for you to raise a support request directly.

My own XBees behave sanely in this respect. Getting the same behaviour on two parts would seem to indicate a circuit problem in general.

Oh! Wait a minute. On the lines to which they apply, pullup resistors are enabled by default. That includes all the analog inputs except number 5. Does input 5 behave differently, and/or what value do you have set for the PR parameter?
