<?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: Problem with bandgap V conversion in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358746#M18062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandro Mores,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; That good to hearing your problem is solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It doesn't matter about the correct answer marking, it just demonstrate your question is soved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you don't understand the datesheet, you can refer to our sample code.:smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 07:32:00 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2014-10-29T07:32:00Z</dc:date>
    <item>
      <title>Problem with bandgap V conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358742#M18058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having troubles with the conversion in subject: I'm using Kinetis MKE02Z32VLH4 (2N22J), mounted on our custom board.&lt;/P&gt;&lt;P&gt;We are supplying VDDA/VREFH and VDD pins with 5V. &lt;/P&gt;&lt;P&gt;The ADC module is set to 12-Bit conversion, with these settings:&lt;/P&gt;&lt;P&gt;- Input clock select: Bus clock/2&lt;/P&gt;&lt;P&gt;- Prescaler: 8 (è frequency ~1048 kHz)&lt;/P&gt;&lt;P&gt;- Long sample time: Enabled&lt;/P&gt;&lt;P&gt;- Low power mode: Disabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading Channel No 23 (bandgap), we read a value of 1442 on 4096 (12Bit). Considering that, from datasheet, the bandagap voltage should be about 1.16V, we obtain a Vdd voltage of 3.3V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we are supplying with 5V... Am I mistaking something? I would expect a value about of 950 corresponding to 1.16V with Vdd = 5V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance to all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 16:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358742#M18058</guid>
      <dc:creator>sys</dc:creator>
      <dc:date>2014-10-28T16:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bandgap V conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358743#M18059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran into a problem with measuring the bandgap on a KE06, did you enable the bandgap in the Power Management Control?&amp;nbsp; It's not obvious that it has to be enabled first, and for me I was seeing unstable, far off results because it was reading something that wasn't connected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 17:03:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358743#M18059</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2014-10-28T17:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bandgap V conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358744#M18060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandro Mores,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1: You should make sure that you already enable the bandgap in PMC.&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14145611249481582 jive_text_macro jive_macro_code" jivemacro_uid="_14145611249481582" modifiedtitle="true"&gt;
&lt;P&gt;PMC_SPMSC1 |= PMC_SPMSC1_BGBE_MASK;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2: Test your VDDA and Vrefh, whether it is 5V.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3: Check your configuration code, I test it on our FRDM-KE02Z40M, my bandgap ADC resut is 985 with 5V VDDA, when I test my VDDA, I find it is actually 4.85V.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then my bandgap is : (985/4096)*4.85=1.166V, it meets the Vbg data in our datasheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can refer to my test code to check your code,&amp;nbsp; please find the test code from the attachment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you still have question please let me know!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 05:47:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358744#M18060</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-10-29T05:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bandgap V conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358745#M18061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that was the problem! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone, real fast and useful answers!&lt;/P&gt;&lt;P&gt;Sorry &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jingjing..both was Correct Answer..but I can select only one :smileyhappy:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have great day u too&lt;/P&gt;&lt;P&gt;Sandro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: It is not clear to understand this setting reading datasheet..just a suggestion for next revision :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 07:27:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358745#M18061</guid>
      <dc:creator>sys</dc:creator>
      <dc:date>2014-10-29T07:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bandgap V conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358746#M18062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandro Mores,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; That good to hearing your problem is solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It doesn't matter about the correct answer marking, it just demonstrate your question is soved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you don't understand the datesheet, you can refer to our sample code.:smileyhappy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 07:32:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358746#M18062</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-10-29T07:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with bandgap V conversion</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358747#M18063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jingjing, I have to concur that the ADC section of the user's manual makes no mention of having to enable the bandgap buffer first to use it.&amp;nbsp;&amp;nbsp; Something that should maybe be considered for a manual addendum.&amp;nbsp; The analog comparator section does make mention of this when using it for the reference, but if someone was trying to use the ADC, they would not know unless they happened to read the chapter on the PMC or the ACMP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:26:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-bandgap-V-conversion/m-p/358747#M18063</guid>
      <dc:creator>davidsherman</dc:creator>
      <dc:date>2014-10-29T12:26:59Z</dc:date>
    </item>
  </channel>
</rss>

