<?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>Kinetis MicrocontrollersのトピックRe: ADC range short of voltage reference high</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-range-short-of-voltage-reference-high/m-p/496503#M30876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the answer:&amp;nbsp; This code was ported from a larger pin count processor.&amp;nbsp;&amp;nbsp; The tricky bit was that the default ADC reference selection behavior changes when you go from large pin count processor packages to small pin count processor packages.**&amp;nbsp; For example, if you were using voltage-high-ref and voltage-low-ref on a large pin count processor package, your code would now be using internal-voltage-ref on a small pin count processor package.&amp;nbsp; I was surprised when I finally figured this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: You do have to be careful when using the Freescale specifications.&amp;nbsp; The section which talks about setting the bits to select an ADC reference only uses the terms Default and Alternate.&amp;nbsp; These terms abstract the fact that Default means different things on different sized pin count packages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2016 20:19:12 GMT</pubDate>
    <dc:creator>rickstuart</dc:creator>
    <dc:date>2016-02-11T20:19:12Z</dc:date>
    <item>
      <title>ADC range short of voltage reference high</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-range-short-of-voltage-reference-high/m-p/496502#M30875</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;I've a KL17 QFN32 processor who's ADC appears to have a voltage range of about 1/6th of the expected 0 to 3 volts.&amp;nbsp; 3 volts is what can be measured at the Voltage Reference High pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The setup is to convert the ADC input into a 12 bit output using the Voltage Reference High and Low pins (8 and 7 on this package).&amp;nbsp; This is done by setting the ADC0_CFG1 register MODE bits to 0b01.&amp;nbsp; (i.e. "ADC0_CFG1 |= ADC_CFG1_MODE(1);").&amp;nbsp; But not until I run the voltage at the analog input pin down to ~500mV does the ADC start reducing it's value from the pegged 4095.&amp;nbsp; When I finally hit 0 volts the ADC is giving me values in the 40s and 50s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was expecting were changes in the values from 0 volts all the way up to 3 volts.&amp;nbsp; For example, 0 volts would have an ADC value of about zero and 1.5 volts would have an ADC value of about 2048 and 3 volts would have an ADC value of about 4096.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what I might check would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2016 00:41:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-range-short-of-voltage-reference-high/m-p/496502#M30875</guid>
      <dc:creator>rickstuart</dc:creator>
      <dc:date>2016-02-09T00:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: ADC range short of voltage reference high</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-range-short-of-voltage-reference-high/m-p/496503#M30876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found the answer:&amp;nbsp; This code was ported from a larger pin count processor.&amp;nbsp;&amp;nbsp; The tricky bit was that the default ADC reference selection behavior changes when you go from large pin count processor packages to small pin count processor packages.**&amp;nbsp; For example, if you were using voltage-high-ref and voltage-low-ref on a large pin count processor package, your code would now be using internal-voltage-ref on a small pin count processor package.&amp;nbsp; I was surprised when I finally figured this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: You do have to be careful when using the Freescale specifications.&amp;nbsp; The section which talks about setting the bits to select an ADC reference only uses the terms Default and Alternate.&amp;nbsp; These terms abstract the fact that Default means different things on different sized pin count packages.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 20:19:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-range-short-of-voltage-reference-high/m-p/496503#M30876</guid>
      <dc:creator>rickstuart</dc:creator>
      <dc:date>2016-02-11T20:19:12Z</dc:date>
    </item>
  </channel>
</rss>

