<?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 K10 ADC CHIP Board voltage? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281682#M10447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #575757; font-size: 10pt;"&gt;I'm a SW developer with close to null experience with low level development and HW. So that’s the explanation for any idiotic reasoning and Please keep “newbie factor” in mind when answering.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #575757; font-size: 10pt;"&gt;We have a requirement to read board voltage. So i&lt;/SPAN&gt;&lt;SPAN&gt;s it possible to configure the internal ADC to read the 3.3 board voltage no diff pin out to sense circuit attached?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;Andreas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Dec 2013 12:40:49 GMT</pubDate>
    <dc:creator>mrandreas</dc:creator>
    <dc:date>2013-12-30T12:40:49Z</dc:date>
    <item>
      <title>K10 ADC CHIP Board voltage?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281682#M10447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #575757; font-size: 10pt;"&gt;I'm a SW developer with close to null experience with low level development and HW. So that’s the explanation for any idiotic reasoning and Please keep “newbie factor” in mind when answering.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #575757; font-size: 10pt;"&gt;We have a requirement to read board voltage. So i&lt;/SPAN&gt;&lt;SPAN&gt;s it possible to configure the internal ADC to read the 3.3 board voltage no diff pin out to sense circuit attached?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;Andreas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 12:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281682#M10447</guid>
      <dc:creator>mrandreas</dc:creator>
      <dc:date>2013-12-30T12:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: K10 ADC CHIP Board voltage?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281683#M10448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not quite sure what your statement '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;board voltage no diff pin out to sense circuit attached&lt;/SPAN&gt;' means, but I think we can assume it means there are no specific external circuits set up to measure your supply voltages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So as a 'general statement' I can say that you can 'measure' the voltage of VrefH by selecting and converting the internal bandgap reference voltage (AD27).&amp;nbsp; The ratio of the conversion result to the 'nominal' 1.195V thereof, in a bit of 'inverse math', gives you the voltage on VrefH:&amp;nbsp; VrefH_mV = (1195/*mV*/ * ADC_FULLSCALE) / ConversionResult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, that being said, I will point out that the internal 1.195V is not very stable across temperature, so you can't expect accuracy better than about +/-3%.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 15:17:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281683#M10448</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2013-12-30T15:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: K10 ADC CHIP Board voltage?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281684#M10449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;SPAN style="color: #575757; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;Andreas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;Of course. You can use MCU internal ADC to detect value of 3.3V board voltage. It is no need to use differential pin, you can use single pin directly. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: 'Arial','sans-serif';"&gt;Hope my reply can help you. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; text-align: left; color: #434343; font-style: normal; font-size: 12px; background-color: #f2f2f2; font-family: Tahoma, Arial; font-weight: bold;"&gt;&lt;SPAN class="Apple-converted-space"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; text-align: left; color: #434343; font-style: normal; font-size: 12px; background-color: #f2f2f2; font-family: Tahoma, Arial; font-weight: bold;"&gt;&lt;SPAN class="Apple-converted-space"&gt;Best Regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; text-align: left; color: #434343; font-style: normal; font-size: 12px; background-color: #f2f2f2; font-family: Tahoma, Arial; font-weight: bold;"&gt;&lt;SPAN class="Apple-converted-space"&gt;Paul&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 01:22:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281684#M10449</guid>
      <dc:creator>Paul_Tian</dc:creator>
      <dc:date>2013-12-31T01:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: K10 ADC CHIP Board voltage?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281685#M10450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, tanks for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you support me with an code example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 09:28:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281685#M10450</guid>
      <dc:creator>mrandreas</dc:creator>
      <dc:date>2014-01-03T09:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: K10 ADC CHIP Board voltage?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281686#M10451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On the whole, the Freescale demo/example projects are a 'pretty good' source to follow to get peripheral modules up and running.&amp;nbsp; Attached is my code to read a few analog pins plus the PMC 1V bandgap (I was thinking of the wrong BandGap previously, AD27 comes from the PMC 1V+/-3% point), using Vdd=VddA=VrefH=3.3V(nominal).&amp;nbsp; My actual conversion result (stored as an integer multiplied by 100000) nets a 1V reading of 0.985V, so the 'inverse millivolt math' of 3300*1000/985 (the ideal ratio in millivolts) gives me an actual VDD of 3350mV, whereas it actually measures 3330mV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I call ADC_HW_Init() early-on, and some time later ADC_ReadAll() to preset the ongoing measurement array.&amp;nbsp; You'll probably only have the ONE measurement to make...&amp;nbsp; My table of channel-info ADC_CHAN_DEFN has several power-supply dividers feeding some other analog inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then on every timer-tick I convert one of my channels with ADC_Read_Filt_One(chan) which updates a 1-part-in-100 recursive filter to make a pretty long-term average (and leads to the overall 100*1000 voltage scaling).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this code set 'comes up seriously short' of something (other than our local integer typedefs).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 19:40:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-CHIP-Board-voltage/m-p/281686#M10451</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2014-01-03T19:40:31Z</dc:date>
    </item>
  </channel>
</rss>

