<?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: MK10 ADC input sampling waveform in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-ADC-input-sampling-waveform/m-p/831417#M50276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;I updated the thread yesterday but then I found that I couldn't see your reply anymore, so I reply to you today.&lt;/P&gt;&lt;P&gt;I also tried another probe, it is the same result.&lt;/P&gt;&lt;P&gt;Our origin test setup is a resistor devider, but I found out that at some voltage the error is larger.&amp;nbsp;So I disconnected the resistor and tried a voltage calibrator, and then I found out during I increase the input voltage by 10mV step, the error of ADC&amp;nbsp;&amp;nbsp;will reach a peak ever 100mV, then decrease then after increased another 100mV reach another error peak.&lt;/P&gt;&lt;P&gt;I also read the AN4373 guide, it mentioned below details in page 4:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;EM&gt;In a case of redistribution charging architecture of SAR ADC or if a presampling circuit is used, then the initial voltage can be equal to VREFL or VREFH. In some special cases, this value can be set to (VREFH - VREFL)/2 in order to ensure lower voltage stress of capacitor. Usually when sequential sampling is used, then the initial voltage VCSH0 is equal to the previous channel voltage conversion.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this means it is the internal presampling circuit that caused this behaviour? Maybe the internal circuit detect the input voltage first(using comparator etc,.) and then judge which nearst voltage level the sampling capacitor should be charged to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks and regards!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Wei Xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2018 07:16:09 GMT</pubDate>
    <dc:creator>wei_xu1</dc:creator>
    <dc:date>2018-09-20T07:16:09Z</dc:date>
    <item>
      <title>MK10 ADC input sampling waveform</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-ADC-input-sampling-waveform/m-p/831415#M50274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;We are using MK10DN512VLQ10 in our system. During ADC testing, I found that ADC error will change according&amp;nbsp;to external input voltage. So I&amp;nbsp;removed all external capacitors and applied a standard voltage source to the input circuit ,&lt;/P&gt;&lt;P&gt;then I measured the voltage on the pin and saved the screenshots as below(probe was AC coupled with short spring type ground):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SG14.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69073i5FF6FC4C1C382235/image-size/large?v=v2&amp;amp;px=999" role="button" title="SG14.PNG" alt="SG14.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SG16.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69023i8FA6809852734B9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="SG16.PNG" alt="SG16.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SG18.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/68968i937DE86C16D54BEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="SG18.PNG" alt="SG18.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I thought a typical ADC sampling waveform should only contain negative spike(due to charging of internal sampling capacitor), but I also captured some positive spike and sometimes even change from positive to negative(the last screenshot above). I also didn't expect the first unusual high level spike.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The modified external circuit just like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69169i52903753F17CE6CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the test setup, this is a NTC sensor circuit with capacitor removed and NTC disconnected. The voltage is given by a voltage generator, I also checked the output of the voltage generator, no spike was found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69040iCCCF1668D9B7D3D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Are those behavior caused by the internal design of the MCU?&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards!&lt;/P&gt;&lt;P&gt;Wei Xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 08:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-ADC-input-sampling-waveform/m-p/831415#M50274</guid>
      <dc:creator>wei_xu1</dc:creator>
      <dc:date>2018-09-17T08:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 ADC input sampling waveform</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-ADC-input-sampling-waveform/m-p/831416#M50275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wei Xu,&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;probe was AC coupled with short spring type ground&lt;/EM&gt;&lt;/SPAN&gt;)&lt;BR /&gt;Have you try to use other type of probe?&lt;BR /&gt;Or other voltage signal, something like resistor divider:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="resistor divider.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69640iB09850D09533531B/image-size/large?v=v2&amp;amp;px=999" role="button" title="resistor divider.jpg" alt="resistor divider.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A typical ADC sampling waveform should only contain negative spike(As described in &lt;A href="https://www.nxp.com/docs/en/application-note/AN4373.pdf"&gt;AN4373 Cookbook for SAR ADC measurements&lt;/A&gt;), I have never noticed there will be positive spike.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you please edit this thread and attached the test project, so that I can test it on TWR-K60D100M board.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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>Tue, 18 Sep 2018 06:48:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-ADC-input-sampling-waveform/m-p/831416#M50275</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-09-18T06:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 ADC input sampling waveform</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-ADC-input-sampling-waveform/m-p/831417#M50276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;I updated the thread yesterday but then I found that I couldn't see your reply anymore, so I reply to you today.&lt;/P&gt;&lt;P&gt;I also tried another probe, it is the same result.&lt;/P&gt;&lt;P&gt;Our origin test setup is a resistor devider, but I found out that at some voltage the error is larger.&amp;nbsp;So I disconnected the resistor and tried a voltage calibrator, and then I found out during I increase the input voltage by 10mV step, the error of ADC&amp;nbsp;&amp;nbsp;will reach a peak ever 100mV, then decrease then after increased another 100mV reach another error peak.&lt;/P&gt;&lt;P&gt;I also read the AN4373 guide, it mentioned below details in page 4:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;EM&gt;In a case of redistribution charging architecture of SAR ADC or if a presampling circuit is used, then the initial voltage can be equal to VREFL or VREFH. In some special cases, this value can be set to (VREFH - VREFL)/2 in order to ensure lower voltage stress of capacitor. Usually when sequential sampling is used, then the initial voltage VCSH0 is equal to the previous channel voltage conversion.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this means it is the internal presampling circuit that caused this behaviour? Maybe the internal circuit detect the input voltage first(using comparator etc,.) and then judge which nearst voltage level the sampling capacitor should be charged to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Thanks and regards!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Wei Xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 07:16:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-ADC-input-sampling-waveform/m-p/831417#M50276</guid>
      <dc:creator>wei_xu1</dc:creator>
      <dc:date>2018-09-20T07:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: MK10 ADC input sampling waveform</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-ADC-input-sampling-waveform/m-p/831418#M50277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will check it with AE team. If you can attached your test project, that would be better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 01:55:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK10-ADC-input-sampling-waveform/m-p/831418#M50277</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2018-09-21T01:55:05Z</dc:date>
    </item>
  </channel>
</rss>

