<?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 Re: High ADC offset on MC9S08QB4 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258924#M19940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, you are saying, you have 0V on the pin PTA0 (checked by the multimeter) and ADC sees value of some 550? Strange to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is nothing visibly wrong with the code.&lt;/P&gt;&lt;P&gt;What about output impedance of your source?&lt;/P&gt;&lt;P&gt;Can you test the same in 8bit mode? There is errata related to ADC on QB summary page, however I guess it might be something hardwired on the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&amp;nbsp; can you also lift the pin up from PCB to disconnect it completely from the source and tie it to ground (rather Vrefl).&lt;/P&gt;&lt;P&gt;now make your ADC measurement - if you see 0 in there, just take the multimeter and look to the net where the pin was previously connected to - it was a leakage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pavel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Aug 2013 08:15:28 GMT</pubDate>
    <dc:creator>pavel_sadek</dc:creator>
    <dc:date>2013-08-19T08:15:28Z</dc:date>
    <item>
      <title>High ADC offset on MC9S08QB4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258921#M19937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just noticed, that my ADC has a very high offset when measuring 0V. It is about 550d. Measuring 3.3V does not make problems, I usually get the 4095d. I also tried 1V and 2V, both were measured correctly.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the title says, I am working on a QB4 with V_DD = 3.3V.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some ideas what might cause this problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 09:52:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258921#M19937</guid>
      <dc:creator>benthie</dc:creator>
      <dc:date>2013-08-16T09:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: High ADC offset on MC9S08QB4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258922#M19938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADC sees minimal value of 0.44V for whatever reason.&lt;/P&gt;&lt;P&gt;How is your device / ADC pin connected? &lt;/P&gt;&lt;P&gt;first of all check your circuit (schematic / test it with multimeter for expected voltages),&lt;/P&gt;&lt;P&gt;next, I would do bunch of measurements, that can help with diagnostics&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do the measurement of&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Vrefl should be 0,&lt;/LI&gt;&lt;LI&gt;Vrefh should be your full scale (mentioned 4095) - this still does not say you anything about the reality of your issue&lt;/LI&gt;&lt;LI&gt;internal bandgap - that is internally connected reference of some 1.17V on AD27,&amp;nbsp; Selecting the internal bandgap channel requires BGBE = 1 in SPMSC1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40474i5C691302A9736F60/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC_1.png" alt="ADC_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Pavel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 11:34:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258922#M19938</guid>
      <dc:creator>pavel_sadek</dc:creator>
      <dc:date>2013-08-16T11:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: High ADC offset on MC9S08QB4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258923#M19939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;measuring V_REFL, V_REFH and V_BG worked properly. Every value was as expected. I also tested the input of my pin with a multimeter and the voltage is also applied. Between pin and voltage source is nothing that could cause such a voltage drop. They are directly connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it is a software problem. I attached my adc.c file, the measurement is done there in the ADC_measureChannel() method. It is called with parameter "1", so channel 0 is measured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 13:03:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258923#M19939</guid>
      <dc:creator>benthie</dc:creator>
      <dc:date>2013-08-16T13:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: High ADC offset on MC9S08QB4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258924#M19940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, you are saying, you have 0V on the pin PTA0 (checked by the multimeter) and ADC sees value of some 550? Strange to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is nothing visibly wrong with the code.&lt;/P&gt;&lt;P&gt;What about output impedance of your source?&lt;/P&gt;&lt;P&gt;Can you test the same in 8bit mode? There is errata related to ADC on QB summary page, however I guess it might be something hardwired on the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You&amp;nbsp; can you also lift the pin up from PCB to disconnect it completely from the source and tie it to ground (rather Vrefl).&lt;/P&gt;&lt;P&gt;now make your ADC measurement - if you see 0 in there, just take the multimeter and look to the net where the pin was previously connected to - it was a leakage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pavel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 08:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258924#M19940</guid>
      <dc:creator>pavel_sadek</dc:creator>
      <dc:date>2013-08-19T08:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: High ADC offset on MC9S08QB4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258925#M19941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay - I have found the problem. Another IC caused it. Was not easy to find because the system is working with two different ground potentials.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 08:15:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/High-ADC-offset-on-MC9S08QB4/m-p/258925#M19941</guid>
      <dc:creator>benthie</dc:creator>
      <dc:date>2013-08-19T08:15:46Z</dc:date>
    </item>
  </channel>
</rss>

