<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic HS08QG8, ADC and Vhref drop in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HS08QG8-ADC-and-Vhref-drop/m-p/190868#M14624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've a problem, caused by a bad design (not mine). Now I'm looking for a solution that does not involve HW redesign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using one channel of the QG8 ADC module to read the voltage from a temperature sensor (a LM20 from National). The problem is that the QG8 Vdd is connected directly to a 3V battery. So when the battery voltage drops, it drops the Vdd, the Vddad and of course the Vhref. So the range of the AD shrinks and I read different values even if the temperature does not change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is: there is a (sw) way to solve this? I think that the internal bandgap reference can have a major role in this, but I don't see how...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any hint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bye Jack&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2009 20:41:54 GMT</pubDate>
    <dc:creator>jag</dc:creator>
    <dc:date>2009-06-17T20:41:54Z</dc:date>
    <item>
      <title>HS08QG8, ADC and Vhref drop</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HS08QG8-ADC-and-Vhref-drop/m-p/190868#M14624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've a problem, caused by a bad design (not mine). Now I'm looking for a solution that does not involve HW redesign.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using one channel of the QG8 ADC module to read the voltage from a temperature sensor (a LM20 from National). The problem is that the QG8 Vdd is connected directly to a 3V battery. So when the battery voltage drops, it drops the Vdd, the Vddad and of course the Vhref. So the range of the AD shrinks and I read different values even if the temperature does not change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question is: there is a (sw) way to solve this? I think that the internal bandgap reference can have a major role in this, but I don't see how...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any hint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bye Jack&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 20:41:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HS08QG8-ADC-and-Vhref-drop/m-p/190868#M14624</guid>
      <dc:creator>jag</dc:creator>
      <dc:date>2009-06-17T20:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: HS08QG8, ADC and Vhref drop</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HS08QG8-ADC-and-Vhref-drop/m-p/190869#M14625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jack,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are correct about needing to use the bandgap reference to compensate for Vdd differences.&amp;nbsp; I would suggest that you immediately follow each measurement of the temperature sensor with a measurement of the bandgap channel.&amp;nbsp; To reduce the effects of any hum/noise on the Vdd line, you might also consider taking multiple pairs of readings, and then averaging the results prior to any calculations using the results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now consider the following formulas, where N represents the (10-bit) ADC reading -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vt = Vdd * Nt / 1024&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vr = Vdd * Nr / 1024&amp;nbsp;&lt;/P&gt;&amp;nbsp;&lt;P&gt;Combining these -&lt;/P&gt;&lt;P&gt;Vt = Vr * Nt / Nr&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can see that the result is no longer dependent on Vdd (provided it is the same for each pair of data).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 09:07:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HS08QG8-ADC-and-Vhref-drop/m-p/190869#M14625</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2009-06-18T09:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: HS08QG8, ADC and Vhref drop</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/HS08QG8-ADC-and-Vhref-drop/m-p/190870#M14626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mmhh, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel a little stupid, I should have known something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bye Jack&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 15:09:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/HS08QG8-ADC-and-Vhref-drop/m-p/190870#M14626</guid>
      <dc:creator>jag</dc:creator>
      <dc:date>2009-06-18T15:09:21Z</dc:date>
    </item>
  </channel>
</rss>

