<?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: 12 bit ADC returns 3009 for VDD? in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144978#M7016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello BasePointer,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;May I stress once again that you are in breach of your Non-Disclosure Agreement with Freescale ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The people from the Forum cannot help you, as the device is not released to the public, anything specific to it should be reported to the person who gave you the engineering samples. Doing otherwise could have legal implications for your company.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Only when a product is launched the datasheet and MCUs are available to the public.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Vdd is the digital power supply.&lt;/DIV&gt;&lt;DIV&gt;Vdda is the analogue power supply.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Clarify "W" supplies with your supplier as they could be for internal test only.&lt;/DIV&gt;&lt;DIV&gt;Clarify with your supplier if the Vdd/Vdda reading should return the core voltage or pin voltage, as your MCU may use a 2.5V core.&lt;/DIV&gt;&lt;DIV&gt;In both case, this clearly needs to be clarified in the datasheet, feeding info back to your supplier should get the datasheet updated.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Feb 2007 05:12:48 GMT</pubDate>
    <dc:creator>Alban</dc:creator>
    <dc:date>2007-02-10T05:12:48Z</dc:date>
    <item>
      <title>12 bit ADC returns 3009 for VDD?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144977#M7015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I've&amp;nbsp; two batteries in my application to measure with ADC. I have some questions.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The function below returns 1483 when I select the channel as internal bandgap reference that is 1.2V. This is ok because 4095 * 1,2V / 1483 = 3.3V that is my MCU and ADC supply. If I choose the channel as VDD, VDDA, VDDSW or VDDASW (I don't excatly know what are the differences between them), same function returns 3009 for me and this correspond to 3009 * 1.2V / 1483 = 2.44V. I was expecting its to return 4095. Why does this happen?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If the MCU and ADC high reference voltages are&amp;nbsp;same and 3.3V,&amp;nbsp;and if AD0 channel is connected to a battery that is 3.6V over a 1K resistor, what should the function return for AD0 channel? Isn't it 4095?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;MCU is under &lt;SPAN style="color: #ff0000;"&gt;Non Disclosure Agreement !&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;unsigned int ReadADCChannel(unsigned char ch){&amp;nbsp; unsigned char i, resh, resl;&amp;nbsp; unsigned int result, total = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp; //low power, fbus/4, long sample, 12bit, BusClk(fBus=~6.2Mhz)&amp;nbsp; ADCCFG = 0b11010100;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADCSC2 = 0;&amp;nbsp; ch &amp;amp;= 0b00011111; // choose the channel&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0; i &amp;lt; 16; i++)&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADCSC1 = ch;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(!ADCSC1_COCO);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resh = ADCRH;&amp;nbsp;&amp;nbsp;&amp;nbsp; resl = ADCRL;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = ((unsigned int)resh &amp;lt;&amp;lt; 8) | resl;&amp;nbsp;&amp;nbsp;&amp;nbsp; total += result;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; ADCSC1 = 0b00011111; // module disable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(total / 16);}&lt;/PRE&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;nbsp;Thanks,&lt;/DIV&gt;&lt;DIV&gt;BasePointer.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Alban removed NDA info&lt;/DIV&gt;&lt;P&gt;Message Edited by Alban on &lt;SPAN class="date_text"&gt;2007-02-09&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:00 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144977#M7015</guid>
      <dc:creator>BasePointer</dc:creator>
      <dc:date>2020-10-29T08:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: 12 bit ADC returns 3009 for VDD?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144978#M7016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello BasePointer,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;May I stress once again that you are in breach of your Non-Disclosure Agreement with Freescale ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The people from the Forum cannot help you, as the device is not released to the public, anything specific to it should be reported to the person who gave you the engineering samples. Doing otherwise could have legal implications for your company.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Only when a product is launched the datasheet and MCUs are available to the public.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Vdd is the digital power supply.&lt;/DIV&gt;&lt;DIV&gt;Vdda is the analogue power supply.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Clarify "W" supplies with your supplier as they could be for internal test only.&lt;/DIV&gt;&lt;DIV&gt;Clarify with your supplier if the Vdd/Vdda reading should return the core voltage or pin voltage, as your MCU may use a 2.5V core.&lt;/DIV&gt;&lt;DIV&gt;In both case, this clearly needs to be clarified in the datasheet, feeding info back to your supplier should get the datasheet updated.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2007 05:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144978#M7016</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-02-10T05:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: 12 bit ADC returns 3009 for VDD?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144979#M7017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Alban,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The MCU&amp;nbsp;should be released on Feb, 08. I have follow the mcu since 2005, and you can't see any message here from me about it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have started the project and&amp;nbsp;I&amp;nbsp;have to&amp;nbsp;ask these questions to learn more, I'm sorry for that.&lt;/DIV&gt;&lt;DIV&gt;&lt;HR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I requested the updated datasheet. I'm waiting Embedded World 07 for it.&lt;/DIV&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Feb 2007 15:56:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144979#M7017</guid>
      <dc:creator>BasePointer</dc:creator>
      <dc:date>2007-02-10T15:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: 12 bit ADC returns 3009 for VDD?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144980#M7018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;S08LC Series are released:&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=S08LC&amp;amp;nodeId=01624684491437" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=S08LC&amp;amp;nodeId=01624684491437&lt;/A&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 20:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144980#M7018</guid>
      <dc:creator>BasePointer</dc:creator>
      <dc:date>2007-02-13T20:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: 12 bit ADC returns 3009 for VDD?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144981#M7019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi &lt;STRONG&gt;BasePointer&lt;/STRONG&gt;,&lt;/DIV&gt;&lt;DIV&gt;Yep they are. You can now talk freely about them.&lt;/DIV&gt;&lt;DIV&gt;Still for very special support, I advise you to ask your MCU provider as rare are the people on the Forum working with this part yet.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;For the Community&lt;/STRONG&gt;: The LC60 is the&amp;nbsp;first S08 with a specialist module to drive LCD.&lt;/DIV&gt;&lt;DIV&gt;As it is an S08, it is good for low power (battery operated devices) and debugging through BDM.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2007 22:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/12-bit-ADC-returns-3009-for-VDD/m-p/144981#M7019</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-02-13T22:15:29Z</dc:date>
    </item>
  </channel>
</rss>

