<?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 reading problem in LPC54628  in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924298#M36864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;your Table 1026 mentions source impedance.&lt;/P&gt;&lt;P&gt;What is the source impedance of the signal connected to channel 5?&lt;/P&gt;&lt;P&gt;Regards, Rainald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2019 14:42:45 GMT</pubDate>
    <dc:creator>rainald_koch</dc:creator>
    <dc:date>2019-07-19T14:42:45Z</dc:date>
    <item>
      <title>ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924293#M36859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hello Team,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i have&amp;nbsp;ADC driver version 2.3.1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used ADC0 channel number 4 and 5&lt;/P&gt;&lt;P&gt;if i changed value of channel 4 using potentiometer that is affect &lt;SPAN&gt;channel&amp;nbsp;&lt;/SPAN&gt;number 5&lt;/P&gt;&lt;P&gt;so i didnot getting actual result of&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;channel&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;number 5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i attached source code. so plz review it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;let me know if any solution for that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Thanks and best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Nitin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 06:21:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924293#M36859</guid>
      <dc:creator>nitin_kanani</dc:creator>
      <dc:date>2019-07-16T06:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924294#M36860</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;It is possible that your issue is caused by the fact that the readings between both channels is too fast that it affects the other channel's readings, or that the LPC suffers from cross talk interference on its pins. In order to minimize this issue, you can enable Bypass Calibration to true, and increase the &lt;SPAN&gt;Sample Time Number&lt;/SPAN&gt; (I increase it to 13).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Bypass calibration is just&amp;nbsp;for re-calibration of the ADC, and the Sample Time Number provides more the time between adc readings and thus&amp;nbsp;allows the reduction of the noise in your adc values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;static&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;ADC_Configuration&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    adc_config_t adcConfigStruct&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
    adc_conv_seq_config_t adcConvSeqConfigStruct&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;

&lt;SPAN class="property macro token"&gt;#if defined(FSL_FEATURE_ADC_HAS_CTRL_BYPASSCAL) &amp;amp; FSL_FEATURE_ADC_HAS_CTRL_BYPASSCAL&lt;/SPAN&gt;
    adcConfigStruct&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;enableBypassCalibration &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; true&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#endif &lt;/SPAN&gt;&lt;SPAN class="comment token"&gt;/* FSL_FEATURE_ADC_HAS_CTRL_BYPASSCAL */&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#if defined(FSL_FEATURE_ADC_HAS_CTRL_TSAMP) &amp;amp; FSL_FEATURE_ADC_HAS_CTRL_TSAMP&lt;/SPAN&gt;
    adcConfigStruct&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sampleTimeNumber &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;13U&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Here is a description of why a cross talk happens:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;IMG alt="pastedImage_1.png" src="https://community.nxp.com/t5/image/serverpage/image-id/81759iED6D594E3F47EDD2/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #51626f; border: 0px; font-size: 14px;"&gt;&lt;DIV class="" style="border: 0px; font-weight: inherit; margin: 20px 0px;"&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Best Regards,&lt;/P&gt;&lt;P style="border: 0px; font-weight: inherit;"&gt;Ricardo Delsordo&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #51626f; background: #ffffff; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: none; border-left: none; border-right: none; font-size: 14px; padding: 23px 0px 0px;"&gt;&lt;H2 id="toc-hId-1846953618" style="color: #999999; border: 0px; font-weight: 600; font-size: 0.7857rem; margin: 0px 0px 15px;"&gt;ATTACHMENTS&lt;/H2&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 14:24:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924294#M36860</guid>
      <dc:creator>nxf51211</dc:creator>
      <dc:date>2020-11-02T14:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924295#M36861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Ricardo Delsordo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for quick reply.&lt;/P&gt;&lt;P&gt;I have checked based on your input.I have modified "&lt;STRONG&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;enable Bypass Calibration to true, and increase the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Sample Time Number&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;(I increase it to 13)&lt;/SPAN&gt;&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Because&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sample Time Number has only three bits. &lt;STRONG&gt;I have checked for value 6&lt;/STRONG&gt;.&amp;nbsp;&lt;SPAN&gt;Bypass Calibration to true is also done.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Still I am not getting expected&amp;nbsp;result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;ADC value still affecting other channel.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;kindly let me know other feedback on this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Thank You,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Nitin Kanani&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 07:08:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924295#M36861</guid>
      <dc:creator>nitin_kanani</dc:creator>
      <dc:date>2019-07-18T07:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924296#M36862</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 would like to ask the following questions so I can get a better understanding of your current situation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) What is the maximum voltage level you are inserting to your ADC inputs? (The one you are modifying with the potentiometer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Where did you see that the sampleTimeNumber argument has only three bits? (I checked on its structure and I've seen that is is delared at fsl_adc.h as type uint32_t)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Once you enabled the Bypass Calibration, and set the sampleTimeNumber to 6, did you see any improvement on the values read by the ADC channels?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ricardo Delsordo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 16:38:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924296#M36862</guid>
      <dc:creator>nxf51211</dc:creator>
      <dc:date>2019-07-18T16:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924297#M36863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;1)maximum input is 3.3v.&lt;/P&gt;&lt;P&gt;2)I attached image plz see that for&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;sampleTimeNumber.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="color: #51626f;"&gt;3)I&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f;"&gt;enabled&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f;"&gt;the Bypass Calibration thats give some improvement&amp;nbsp;but not getting expected result in other channel.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="adc_image.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82168iFC6644F565136588/image-size/large?v=v2&amp;amp;px=999" role="button" title="adc_image.png" alt="adc_image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="adc_ctrl.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82205i37889C69AA9B6188/image-size/large?v=v2&amp;amp;px=999" role="button" title="adc_ctrl.png" alt="adc_ctrl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Thank You,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Nitin Kanani&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 05:02:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924297#M36863</guid>
      <dc:creator>nitin_kanani</dc:creator>
      <dc:date>2019-07-19T05:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924298#M36864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;your Table 1026 mentions source impedance.&lt;/P&gt;&lt;P&gt;What is the source impedance of the signal connected to channel 5?&lt;/P&gt;&lt;P&gt;Regards, Rainald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 14:42:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924298#M36864</guid>
      <dc:creator>rainald_koch</dc:creator>
      <dc:date>2019-07-19T14:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924299#M36865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;1) Would it be possible for you to show me the hardware implementation you are using on your project (from your voltage source to your connections to the ADC pins including the potentiometer).&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;2) You are correct, sorry for my confusion on the number of bits for the sampleTimeNumber (I've changed the value to 7U or 3'b111 on my side for trying your code).&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;3) How big is the error on the accuracy of the readings you get on your ADC pins?&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I've done some tests on my side (based on the project you shared, and enabling BypassCalibration and setting sampleTimeNumber to 7U) and the error I get is minimal (which is caused by the noise I mentioned on my first reply). In the following image I inserted 1.0 V to one ADC pin (that is equal to 1241 approx on the values you get from the LPC) and the other I connect it to GND; I then repeated the experiment but the other way around:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82204i6BA6C30AA72232FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;As you can see from the readings I got, the ADC value presents a small accuracy error. You can attempt to get better results if you calculate and average value from a certain amount of readings (ex: you can get the average ADC value for every 5 readings you get).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ricardo Delsordo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 16:31:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924299#M36865</guid>
      <dc:creator>nxf51211</dc:creator>
      <dc:date>2019-07-19T16:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924300#M36866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;I used&amp;nbsp; OM13098: LPCXpresso54628 Development Board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)I give 3.3v and ground from the above board. output pin of&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;potentiometer which is connected ADC0 channel no 4.&lt;BR /&gt;and ADC0 channel i give ground.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ISSUE: when i changing value of&amp;nbsp;&lt;SPAN&gt;potentiometer, ADC0 channel 5 also change.&lt;/SPAN&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;3)i got approx 100 to 400 count variation&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;if possible then perform other test also which is i &lt;SPAN style="background-color: #ffffff;"&gt;mentioned&amp;nbsp;&lt;/SPAN&gt;in below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;=&amp;gt;provide fix 1v&amp;nbsp; to AD0 &lt;SPAN style="background-color: #ffffff;"&gt;channel&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;5&amp;nbsp; then change input of channel 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;its give approx 300 count variation in&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;channel&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;5.&lt;/SPAN&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;Thank You&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;Nitin Kanani&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 11:15:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924300#M36866</guid>
      <dc:creator>nitin_kanani</dc:creator>
      <dc:date>2019-07-22T11:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924301#M36867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;300 count variation is a lot.&lt;/P&gt;&lt;P&gt;I'm running out of ideas, last try: Ground means ADC GND? (Should not be that much different on a development board)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 15:17:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924301#M36867</guid>
      <dc:creator>rainald_koch</dc:creator>
      <dc:date>2019-07-22T15:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924302#M36868</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;Based on what you've described me, I did a new experiment where I provided 1.0 V to one channel (through an external voltage source) while I provided the other with a voltage of 3.3 V (from the board itself) divided with a potentiometer. In the following images you can see the results I got and the connections I did to my board:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83005i06E91D9A5C946A89/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/83042i1F4D31A3D82FBBD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see, I'm still getting small variations on the constant input of 1.0 V and the accuracy error is minimal. I did the previous experiments with the same code you uploaded and enabling Bypass Calibration and sampleTimeNumber to 7U.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this last experiment, I'm still not sure of what could be the cause of your problem. Would it be possible for you to show a picture of the connections you have on your board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ricardo Delsordo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 16:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924302#M36868</guid>
      <dc:creator>nxf51211</dc:creator>
      <dc:date>2019-07-22T16:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924303#M36869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your quick reply.&lt;/P&gt;&lt;P&gt;i attached my connection and ADC reading log. plz see it.&lt;/P&gt;&lt;P&gt;my sensor o/p is 0 to 10v. that o/p is give to voltage divider. its generate 0 to 3.3v according sensor o/p(0 to 10v). that 0 to 3.3v i gave in AD0_CH4.&lt;/P&gt;&lt;P&gt;In ADC0_CH5 connected approx 1v(from POT).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ISSUE: if my sensor&amp;nbsp;o/p is change.it is affect in AD0_CH5 count.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I attached&amp;nbsp;ADC count reading log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Nitin Kanani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMG_20190723_115956.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82373iB2FE13811563E785/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_20190723_115956.jpg" alt="IMG_20190723_115956.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 06:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924303#M36869</guid>
      <dc:creator>nitin_kanani</dc:creator>
      <dc:date>2019-07-23T06:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924304#M36870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what are the resistor values of the voltage divider at the origin of the orange wire?&lt;/P&gt;&lt;P&gt;If the impedance of that point is too high, its potential is influenced via the capacity between the multiplexer and the ADC leading to crosstalk from the channel sampled before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to test whether this is the disturbing mechanism by sampling CH_5 twice. I expect the second result being less affected by the voltage at CH_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rainald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 09:03:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924304#M36870</guid>
      <dc:creator>rainald_koch</dc:creator>
      <dc:date>2019-07-23T09:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924305#M36871</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;What Rainald says could explain why you are getting so much noise on your ADC readings. You can also try and change the voltage divider made with resistors for an OpAmp configuration that lowers your voltage to a maximum of 3.3 V (this would solve any problems caused by impedance).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ricardo Delsordo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 15:27:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924305#M36871</guid>
      <dc:creator>nxf51211</dc:creator>
      <dc:date>2019-07-23T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: ADC reading problem in LPC54628</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924306#M36872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I attached revised image.which have value of&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;resistor.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;please see it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Nitin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="IMG_20190723_115956.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82590iDC190113FEDD787D/image-size/large?v=v2&amp;amp;px=999" role="button" title="IMG_20190723_115956.jpg" alt="IMG_20190723_115956.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jul 2019 06:25:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/ADC-reading-problem-in-LPC54628/m-p/924306#M36872</guid>
      <dc:creator>nitin_kanani</dc:creator>
      <dc:date>2019-07-24T06:25:26Z</dc:date>
    </item>
  </channel>
</rss>

