<?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 Incorrect Voltage Readings in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-Incorrect-Voltage-Readings/m-p/1087251#M57637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've notice that voltage readings are off by almost half a volt when reading a 0V channel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First the channel was set to 8V and the ADC measurement was made. Then, the channel was set to 0V, ensured in a steady state, and then 10 ADC conversations were made. Both the ADC reading and the oscilloscope show that the 0V ADC reading is almost ~500 mV off, the first read and then ~50mv off on the remaining reads:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TEK00000.BMP"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/110115i3DC89D254E2CFFE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="TEK00000.BMP" alt="TEK00000.BMP" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Each pair of "spikes" correspond directly to an ADC read.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It would make sense that the first reading is off perhaps due to internal ADC capacitance, but it doesn't quite explain why the subsequent reads are always at ~40 mV. Bottom line: it is never reading the true 0V like it should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The ADC calibration offset is 0, and the ADC calibration gain is ~1.022,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The ADC conversation is set to 1 sample in high-speed conversation mode with a conversation time of 6.25 us&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;The 0v reading is connected to a 100kOhm pull-down resistor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - It is also connected in parallel to &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;a 392kOhm resistor with a MOSFET in the off-state to the 8v channel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2020 14:38:38 GMT</pubDate>
    <dc:creator>danebouchie</dc:creator>
    <dc:date>2020-08-12T14:38:38Z</dc:date>
    <item>
      <title>K10 ADC Incorrect Voltage Readings</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-Incorrect-Voltage-Readings/m-p/1087251#M57637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've notice that voltage readings are off by almost half a volt when reading a 0V channel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First the channel was set to 8V and the ADC measurement was made. Then, the channel was set to 0V, ensured in a steady state, and then 10 ADC conversations were made. Both the ADC reading and the oscilloscope show that the 0V ADC reading is almost ~500 mV off, the first read and then ~50mv off on the remaining reads:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TEK00000.BMP"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/110115i3DC89D254E2CFFE8/image-size/large?v=v2&amp;amp;px=999" role="button" title="TEK00000.BMP" alt="TEK00000.BMP" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Each pair of "spikes" correspond directly to an ADC read.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It would make sense that the first reading is off perhaps due to internal ADC capacitance, but it doesn't quite explain why the subsequent reads are always at ~40 mV. Bottom line: it is never reading the true 0V like it should be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The ADC calibration offset is 0, and the ADC calibration gain is ~1.022,&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The ADC conversation is set to 1 sample in high-speed conversation mode with a conversation time of 6.25 us&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;The 0v reading is connected to a 100kOhm pull-down resistor&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - It is also connected in parallel to &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: break-word; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;a 392kOhm resistor with a MOSFET in the off-state to the 8v channel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2020 14:38:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-Incorrect-Voltage-Readings/m-p/1087251#M57637</guid>
      <dc:creator>danebouchie</dc:creator>
      <dc:date>2020-08-12T14:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: K10 ADC Incorrect Voltage Readings</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-Incorrect-Voltage-Readings/m-p/1087252#M57638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Dane,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These voltage disturbances (voltage drops/peaks) at the ADC input can be reduced by choosing the correct conversion time and external RC components. I recommend you to check the following application note that provides guidelines to achieve optimal performance in these circumstances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN4373.pdf" title="https://www.nxp.com/docs/en/application-note/AN4373.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN4373.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2020 17:48:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-Incorrect-Voltage-Readings/m-p/1087252#M57638</guid>
      <dc:creator>FelipeGarcia</dc:creator>
      <dc:date>2020-08-18T17:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: K10 ADC Incorrect Voltage Readings</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-Incorrect-Voltage-Readings/m-p/1087253#M57639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That application note was exactly our issue. Thanks for the help! &lt;BR /&gt;&lt;BR /&gt;Increasing the conversion time solved the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 15:21:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K10-ADC-Incorrect-Voltage-Readings/m-p/1087253#M57639</guid>
      <dc:creator>danebouchie</dc:creator>
      <dc:date>2020-08-25T15:21:53Z</dc:date>
    </item>
  </channel>
</rss>

