<?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: ADC samples fluctation for Constant input voltage in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029239#M56458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vaibhavi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One tip to improve the ADC accuracy is to do the measurements in low power mode, this will reduce the internal noise generated by the MCU. Also I will suggest to check the following application notes for more tips for ADC improvement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5250.pdf"&gt;How to Increase the Analog-to-Digital Converter Accuracy in an Application&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4373.pdf"&gt;AN4373, Cookbook for SAR ADC Measurements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jan 2020 21:21:34 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2020-01-02T21:21:34Z</dc:date>
    <item>
      <title>ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029238#M56457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Hi,&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;I am working on 12 bit ADC with custom board which has MK22FX512AVLQ controller. When I am giving a constant voltage to ADC, I am observing a considerable fluctuation in the samples.&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;The 3.3 V supply to the controller is stable. The voltage at the ADC input pin is also constant.&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;On the hardware side:&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;I have a RC on the ADC pin with R = 100Ohm and C = 220pF. I have also tried changing this capacitor to 1uF keeping R the same. I also tried adding 100nF Capacitor on VREF_OUT pin (pin number 37). But no improvement was observed.&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;On software side:&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Clock configuration is as follows :&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Core clock : 80MHz&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Bus clock: 40MHz&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;ADC configuration is as follows:&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; adc16_config_t s_adc_config;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EnableIRQ(ADC0_IRQn);&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC16_GetDefaultConfig(&amp;amp;s_adc_config);&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_adc_config.clockSource = kADC16_ClockSourceAlt0;/*Bus clock 40 Mhz*/&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_adc_config.clockDivider = kADC16_ClockDivider4;/*Divided by 4*/&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s_adc_config.longSampleMode = kADC16_LongSampleDisabled;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t ui32_freq;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ui32_freq = CLOCK_GetFreq(kCLOCK_BusClk);&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC16_Init(ADC_BASE, &amp;amp;s_adc_config);&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(kStatus_Success != ADC16_DoAutoCalibration( ADC_BASE ));&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(ADC16_GetStatusFlags(ADC_BASE))&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf("Failed");&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t ui32_temp;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ui32_temp = &amp;nbsp;ADC16_GetChannelConversionValue(ADC_BASE, ADC_CHANNEL_GROUP);&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC16_EnableHardwareTrigger(ADC_BASE, false); /* Make sure the software trigger is used. */&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC16_EnableDMA(ADC_BASE, true);&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;I have tried doing following modification on the software side,&lt;/P&gt;&lt;OL&gt;&lt;LI style="margin-bottom: 10.0pt;"&gt;Changing Buc clock frequency&lt;/LI&gt;&lt;LI style="margin-bottom: 10.0pt;"&gt;Changing prescaler of the ADC clock&lt;/LI&gt;&lt;LI style="margin-bottom: 10.0pt;"&gt;Changing the sampling period (long sampling enabled)&lt;/LI&gt;&lt;LI style="margin-bottom: 10.0pt;"&gt;Adding an intentional delay after the auto caliberation function returns Success status&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Still the fluctations persist.&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;I have attached the schematic and test results data for the reference.&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Please help in resolving the issue.&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Vaibhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2019 10:47:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029238#M56457</guid>
      <dc:creator>vaibhavi_padwal</dc:creator>
      <dc:date>2019-12-31T10:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029239#M56458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vaibhavi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One tip to improve the ADC accuracy is to do the measurements in low power mode, this will reduce the internal noise generated by the MCU. Also I will suggest to check the following application notes for more tips for ADC improvement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5250.pdf"&gt;How to Increase the Analog-to-Digital Converter Accuracy in an Application&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4373.pdf"&gt;AN4373, Cookbook for SAR ADC Measurements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2020 21:21:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029239#M56458</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-01-02T21:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029240#M56459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you for your suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot put the controller in Low power mode while doing the ADC measurements due to reuirement constrains in my application. I have gone through the documents you suggested. The&amp;nbsp;ripple on VDD and analog input signal is very low. Also I have added external RC as I mentioned in the query.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem still persists. Can you suggest some other things that should be taken care of, both in software and hardware, for accurate ADC measurements? Please suggest any change in hardware or software configuration is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vaibhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jan 2020 06:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029240#M56459</guid>
      <dc:creator>vaibhavi_padwal</dc:creator>
      <dc:date>2020-01-11T06:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029241#M56460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vaibhabi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have other peripherals running in your custom board at the same time? Maybe you could try disabling anything else or test one of the ADC examples to see if this spikes are also present. You could try using the adc16_continuous_edma&amp;nbsp;as usually using the continuous conversion improve the sampling rate after the first conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2020 01:56:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029241#M56460</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-01-15T01:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029242#M56461</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;Sorry for replying late.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As there are no examples in the sdk which I am using, I referred to an example (adc16_interrupt) from FRDM K22 evalution board sdk.&lt;/P&gt;&lt;P&gt;I have tried similar ADC configuration in my code for MK22FX512AVLQ12. I have disabled all other modules and I am sampling only 1 channel (ADC0 SE11).&lt;/P&gt;&lt;P&gt;There's no ripple present in the signal on the pin. But I am still getting 3 to 4 samples which are way out of the expected DC value. Continuous conversion enabling had no significant improvements in results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the source code and test results as well as the schematic for controller peripherals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clock configuration: Core clock 80MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Bus clock 10MHz&lt;/P&gt;&lt;P&gt;RC on ADC input Pin : 100Ohm and 0.01uF (As suggested in Refernce maunal of the controller)&lt;/P&gt;&lt;P&gt;Capacitor on VREF pin: 0.1uF (&lt;SPAN&gt;As suggested in Refernce maunal of the controller)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help in resolving the issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/tag/kerry zhou/tg-p"&gt;#kerry zhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vaibhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jan 2020 06:32:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029242#M56461</guid>
      <dc:creator>vaibhavi_padwal</dc:creator>
      <dc:date>2020-01-25T06:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029243#M56462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vaibhavi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this&amp;nbsp;in the FRDM Board without the filter and the measurement stay in a narrow range, maybe this could be due to some noise causing in your development board.&amp;nbsp;Maybe you could monitor the ADC input if there's some ripple in it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 15:47:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029243#M56462</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-01-28T15:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029244#M56463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried the same configuration as I have used in the attached code?&lt;/P&gt;&lt;P&gt;Can you please share the code and the results for FRDM board so that I can verify the same results on my FRDM K22?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank and Regards,&lt;/P&gt;&lt;P&gt;Vaibhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2020 08:26:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029244#M56463</guid>
      <dc:creator>vaibhavi_padwal</dc:creator>
      <dc:date>2020-02-07T08:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029245#M56464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/kerryzhou"&gt;kerryzhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Hi kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrding this ADC issue we are not able to get any reason for the same. Since we are using the evaluation board to check the fluctutation&amp;nbsp; in ADC so ther should be any noise.&lt;/P&gt;&lt;P&gt;We are simply providing DC inout to the ADC using RC filter mentioned above, But still getting the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are not able to proceed for the development board since it is not getting resolved and we are not able to proceed further for our product development. It is on higher priority since we are in 3rd phase of product development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/alexisandalon"&gt;alexisandalon&lt;/A&gt;&amp;nbsp;‌&lt;/P&gt;&lt;P&gt;Please share the code to check the fluctuation on FRDM board first. Also share the results if possible and snapshot of the setupt you have used for testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaurav More&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2020 04:24:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029245#M56464</guid>
      <dc:creator>gauravmore</dc:creator>
      <dc:date>2020-02-13T04:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029246#M56465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/gauravmore"&gt;gauravmore&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To improve the accuracy for the sampling there's some configurations in the ADC that you could try:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Set the hardware average (ADC16_SetHardwareAverage(ADC_Type *base, adc16_hardware_average_mode_t mode))&lt;/LI&gt;&lt;LI&gt;Set the Long Sample mode.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With the hardware average I have the better results setting to the lowest average (kADC16_HardwareAverageCount4), if you don't want the sampling period to get affected I will suggest to decrease the divider feeding the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2020 22:56:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029246#M56465</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2020-02-17T22:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029247#M56466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gaurav&lt;/P&gt;&lt;P&gt;We are experiencing something similiar with our i.MX RT.&lt;/P&gt;&lt;P&gt;See &lt;A href="https://community.nxp.com/message/1271640"&gt;https://community.nxp.com/message/1271640&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you found a solution in the meantime?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2020 07:59:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029247#M56466</guid>
      <dc:creator>dh1</dc:creator>
      <dc:date>2020-02-24T07:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029248#M56467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vaibhavi&lt;/P&gt;&lt;P&gt;We also had strange positive peaks in the range of 40 digits.&lt;/P&gt;&lt;P&gt;By trial and error, we found out that the async clock was the culprit.&lt;/P&gt;&lt;P&gt;Try if the following helps:&lt;/P&gt;&lt;P&gt;k_adcConfig.enableAsynchronousClockOutput = false;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2020 11:02:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029248#M56467</guid>
      <dc:creator>dh1</dc:creator>
      <dc:date>2020-02-24T11:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029249#M56468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the controller I am using, I have used BUS clock as the Clock source for ADC module.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;s_adc_config.clockSource = kADC16_ClockSourceAlt0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have tried changing this to asyncronus clock also but issue is the same irrespective of the clock in case of my controller.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Current Configuration of ADC I am using is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt; config-&amp;gt;referenceVoltageSource = kADC16_ReferenceVoltageSourceVref;&lt;BR /&gt; config-&amp;gt;clockSource = kADC16_ClockSourceAlt0; //Bus clock with frequency 20MHz&lt;BR /&gt; config-&amp;gt;enableAsynchronousClock = false;&lt;BR /&gt; config-&amp;gt;clockDivider = kADC16_ClockDivider2;//Clock divider of 2&lt;BR /&gt; config-&amp;gt;resolution = kADC16_ResolutionSE12Bit;&lt;BR /&gt; config-&amp;gt;longSampleMode = kADC16_LongSampleDisabled;&lt;BR /&gt; config-&amp;gt;enableHighSpeed = false;&lt;BR /&gt; config-&amp;gt;enableLowPower = false;&lt;BR /&gt; config-&amp;gt;enableContinuousConversion = false;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Can you please review the software configuration of ADC I am using and suggest some other changes with respect to your configuration?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Also Please check the schematic I have attached with query and let me know if there's some difference with respect to&amp;nbsp; hardware .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Vaibhavi&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 10:20:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029249#M56468</guid>
      <dc:creator>vaibhavi_padwal</dc:creator>
      <dc:date>2020-02-26T10:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029250#M56469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vaibhavi&lt;/P&gt;&lt;P&gt;We use a completely different processor, RT 1060. So the settings are probably not comparable.&lt;/P&gt;&lt;P&gt;But I remember that a colleague mentioned, that he had to set high speed conversion to true, to get reasonable results.&lt;/P&gt;&lt;P&gt;What I did to find our problem, is set up a firmware that quickly made 3000 samples and after that printed the average, min and max values to the console. This way, I could very rapidly try different adc settings, to see which one helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 08:39:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029250#M56469</guid>
      <dc:creator>dh1</dc:creator>
      <dc:date>2020-02-27T08:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029251#M56470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming that you can not beat the hardware into submission (I've yet to find any on Micro ADC work to my satisfaction), the best way I've found to deal with any sensor input practically is a 13 sample Median filter, for which code can be found here:&lt;BR /&gt;&lt;BR /&gt;&lt;A class="link-titled" href="https://embeddedgurus.com/stack-overflow/2010/10/median-filtering/" title="https://embeddedgurus.com/stack-overflow/2010/10/median-filtering/"&gt;Median filtering « Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://embeddedgurus.com/stack-overflow/2015/09/peak-detection-of-a-time-series/" title="https://embeddedgurus.com/stack-overflow/2015/09/peak-detection-of-a-time-series/"&gt;Peak detection of a time series « Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathematician Georg Cantor tells us there will be 'noise'&amp;nbsp; between samples in any system given a long enough sample time.&lt;BR /&gt;&lt;BR /&gt;Double check the Reference, again.&amp;nbsp; Be cognizance of ground-bounce in any psychical setup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 13:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029251#M56470</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2020-03-03T13:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029252#M56471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the same&amp;nbsp;software configuration of ADC in my code for both my custom board MK22FX512AVLQ12 and FRDM K22 board. But the pattern for only 2 or 3 samples giving sudden difference of 20-25 counts (as in the results in excel sheet attached above) was not observed in case of FRDM K22.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I have checked that there is no significant ripple in the input signal on my custom board.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I request you to please review the schematic that is attached as well as the hardware components specification mentioned&amp;nbsp;in the above communication and suggest if some changes with respect to hardware are required.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also it would be really helpful if you can share the code for which you have tested the FRDM K22 board on your side, So that I can verify and implement for my custom board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help in resolving the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Best Regards,&lt;/P&gt;&lt;P&gt;Vaibhavi P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2020 04:44:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029252#M56471</guid>
      <dc:creator>vaibhavi_padwal</dc:creator>
      <dc:date>2020-04-11T04:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: ADC samples fluctation for Constant input voltage</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029253#M56472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have used&amp;nbsp;PE micro debugger and the board was connected to debugger while I&amp;nbsp;took the samples. Did you take the samples while the debugger was connected or the board was already programmed and you took samples by simple power up and using UART? Also which IDE are you using to test? Please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I will request you do take a larger sample set of 10,000 or 100,000 samples and see if few samples are showing very high difference with respect to expected value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Request you to share the code and results of your testing on FRDM K22 board along with set up details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vaibhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 05:23:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/ADC-samples-fluctation-for-Constant-input-voltage/m-p/1029253#M56472</guid>
      <dc:creator>vaibhavi_padwal</dc:creator>
      <dc:date>2020-04-27T05:23:20Z</dc:date>
    </item>
  </channel>
</rss>

