<?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: A to D conversion is going wrong in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207045#M17499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;To all&lt;/DIV&gt;&lt;DIV&gt;I finally discover what was going wrong with my design, It has no thing rely to freescale or code. I give the explanation for knowledge.&lt;/DIV&gt;&lt;DIV&gt;The micro is powered with VDD = 5V from a ad/dc power supply. Vda and vrefa are made from another power supply (from 12V DC down converted by a linear regulator ). I have previously test big difference (+/- 1V) between these&amp;nbsp;two 5V supply and nothing occured, but if VDD is getting down bellow 4V and the analog part (Vda and Vrefa) stayed at 5V then all the AD chain is going wrong. The main power supply (VDD) was dropping down erraticaly bellow 4V and the LVDS system was set to 2.5V. So every thing seems ok but AD conversion was wrong.&lt;/DIV&gt;&lt;DIV&gt;So the trouble was using the micro out of spec (even the design was correct) !!!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thank for people who tryed to help me&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2008 13:25:41 GMT</pubDate>
    <dc:creator>pbol</dc:creator>
    <dc:date>2008-04-14T13:25:41Z</dc:date>
    <item>
      <title>A to D conversion is going wrong</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207040#M17494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I am using a S08AW32 microcontrel with 7 pinconfigured as Analog to digital channels.&lt;/DIV&gt;&lt;DIV&gt;I am sensing different level on these pins and everything seems cleans most of the time. An external IC sends me T° another gives me pressure in a bootle and&amp;nbsp; a third one a level in this bootle.&lt;/DIV&gt;&lt;DIV&gt;The "strange think" is that sometine and for a variable amout of time (very short time to 30 s) all the mesureament given by AD converter seems to be double :&lt;/DIV&gt;&lt;DIV&gt;For example T° is 25 °C&amp;nbsp; P is 50&amp;nbsp;&amp;nbsp; L is 10 in normal condition and then&lt;/DIV&gt;&lt;DIV&gt;T° is 50 °c (a value that my Ic can not give)&lt;/DIV&gt;&lt;DIV&gt;P is 70 (in that means My AD channel give FF in 8 bit mode P=50 is near the maximum)&lt;/DIV&gt;&lt;DIV&gt;L is 20&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The AD conversion is setup by PE beans with 8 values average asynchronous clock and software continious operation (interrupt by COCO bit)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any suggestion ? Hardware troubles ? software troubles ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2008 22:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207040#M17494</guid>
      <dc:creator>pbol</dc:creator>
      <dc:date>2008-03-27T22:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: A to D conversion is going wrong</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207041#M17495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Have you looked at the voltage level of these lines on an Oscope when you are getting these readings?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 01:09:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207041#M17495</guid>
      <dc:creator>allawtterb</dc:creator>
      <dc:date>2008-03-28T01:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: A to D conversion is going wrong</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207042#M17496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What is the resolution of ADC.8 bit or 10 bits ? If its 10 bit then read only 10 bits of ADC register by logical ANDing ADCR with 0x03FF.This is required because the Higher byte of ADCR has some reserved bits which sometimes gives random undocumented values.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If you are not using digital averaging filter of read ADC values, then I would suggest you adopt it as it smoothens any sudden change(spurious) in the analog input.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Denn.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 13:26:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207042#M17496</guid>
      <dc:creator>Denn</dc:creator>
      <dc:date>2008-03-28T13:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: A to D conversion is going wrong</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207043#M17497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;For scope unfortunatly I did not succedded to reproduce the troubles even with strong inrush current on main power supply or EMC perturbation. What I have seen it that th board design is poor in term of power supply filtering and One big point is that Digital supply and analog supply do not come from the same line (2 different 5V regulator) so I check result if VDD&amp;gt;VDA and VDA &amp;gt; VDD (test with value far from Absolute maximum rating) and everything is clean !!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I use 10 bit mode but on the datasheet the 6 high bit of MSB seem to be set at 0 , is there something wrong ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am using the PWM function and I saw that there is an errata mask about it. It does not seem to affect AD conversion ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In fact if I could manage to reproduce the trouble I think I could find the solution. Do you have any suggestion to put AD in trouble ??!!!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for help&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 14:18:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207043#M17497</guid>
      <dc:creator>pbol</dc:creator>
      <dc:date>2008-03-28T14:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: A to D conversion is going wrong</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207044#M17498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;HR /&gt;pbol wrote:&lt;BR /&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I use 10 bit mode but on the datasheet the 6 high bit of MSB seem to be set at 0 , is there something wrong ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV&gt;It is supposed to return 0 in 6 high bits of MSB, but sometimes it may return some random values,maybe because of reserved/unimplemented high 6 bits.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Also refer the thread.&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;thread.id=9907" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;thread.id=9907&lt;/A&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Denn.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2008 15:46:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207044#M17498</guid>
      <dc:creator>Denn</dc:creator>
      <dc:date>2008-03-28T15:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: A to D conversion is going wrong</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207045#M17499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;To all&lt;/DIV&gt;&lt;DIV&gt;I finally discover what was going wrong with my design, It has no thing rely to freescale or code. I give the explanation for knowledge.&lt;/DIV&gt;&lt;DIV&gt;The micro is powered with VDD = 5V from a ad/dc power supply. Vda and vrefa are made from another power supply (from 12V DC down converted by a linear regulator ). I have previously test big difference (+/- 1V) between these&amp;nbsp;two 5V supply and nothing occured, but if VDD is getting down bellow 4V and the analog part (Vda and Vrefa) stayed at 5V then all the AD chain is going wrong. The main power supply (VDD) was dropping down erraticaly bellow 4V and the LVDS system was set to 2.5V. So every thing seems ok but AD conversion was wrong.&lt;/DIV&gt;&lt;DIV&gt;So the trouble was using the micro out of spec (even the design was correct) !!!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;thank for people who tryed to help me&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 13:25:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/A-to-D-conversion-is-going-wrong/m-p/207045#M17499</guid>
      <dc:creator>pbol</dc:creator>
      <dc:date>2008-04-14T13:25:41Z</dc:date>
    </item>
  </channel>
</rss>

