<?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: Sudden increase in temperature reading with KL16 ADC in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sudden-increase-in-temperature-reading-with-KL16-ADC/m-p/891723#M52707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="338945" data-username="balkrishanaa@hcl.com" href="https://community.nxp.com/people/balkrishanaa@hcl.com"&gt;Balkrishna Amrutrao&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then you can try it on your side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BTW, you also can find another power supply, just test different power supply have the same problem or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Any updated information from your side, please kindly let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 May 2019 02:44:10 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2019-05-16T02:44:10Z</dc:date>
    <item>
      <title>Sudden increase in temperature reading with KL16 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sudden-increase-in-temperature-reading-with-KL16-ADC/m-p/891720#M52704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For KL16 ADC , 6 channels are read one after another in DMA interrupt(ADC channel to be read is configured in DMA interrupt).&amp;nbsp;One of the channel reads system temperature. But I am seeing &lt;STRONG&gt;sudden rise of up to 5 degree C in temperature reading using ADC which is confirmed wrong&lt;/STRONG&gt;, this happens when system is run for long time and it happens sporadically. &lt;STRONG&gt;Conversion time for each channel is 16.8us.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sample code:&lt;/P&gt;&lt;P&gt;ADC_init()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;resolution = 12 bit;&lt;/P&gt;&lt;P&gt;longSampleMode =&amp;nbsp;kADC16_LongSampleCycle24;&lt;/P&gt;&lt;P&gt;continuous conversion = disabled;&lt;/P&gt;&lt;P&gt;Hardware average count = 4;&lt;/P&gt;&lt;P&gt;differential conversion = false;&lt;/P&gt;&lt;P&gt;ADC hardware trigger = true;&lt;/P&gt;&lt;P&gt;//configure and start ADC converison using&amp;nbsp;ADC16_SetChannelConfig();&lt;/P&gt;&lt;P&gt;Enable ADC mux;&lt;/P&gt;&lt;P&gt;Enable DMA = true;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DMA_handler()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;//clear DMA channel status&lt;/P&gt;&lt;P&gt;//read ADC data using&amp;nbsp;DMA_PrepareTransfer();&lt;/P&gt;&lt;P&gt;//save the data for channel&lt;/P&gt;&lt;P&gt;//call DMA_settransfer_config()&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//configure and start ADC converison using&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ADC16_SetChannelConfig();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 09:20:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sudden-increase-in-temperature-reading-with-KL16-ADC/m-p/891720#M52704</guid>
      <dc:creator>balkrishanaa</dc:creator>
      <dc:date>2019-05-13T09:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sudden increase in temperature reading with KL16 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sudden-increase-in-temperature-reading-with-KL16-ADC/m-p/891721#M52705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balkrishna Amrutrao,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you check the VREF, whether the reference voltage have the pulse after the long time or not? The reference voltage stability will influence the ADC result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From my own opinion,&amp;nbsp; I suggest you open the Hardware Average function,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81058i157A9347AA7C2701/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.png" alt="pastedImage_10.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Take an example, if you choose 32 samples averaged, then even if you have the sudden rise of up to 5 degree, then after divide by 32, it will be just 0.15625 degree, this error should can be acceptable. Actually, just use hardware average function to filter your sudden rise up degree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 08:05:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sudden-increase-in-temperature-reading-with-KL16-ADC/m-p/891721#M52705</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-05-14T08:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sudden increase in temperature reading with KL16 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sudden-increase-in-temperature-reading-with-KL16-ADC/m-p/891722#M52706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;1. As I have mentioned in query, currently we are using hardware averaging of 4&amp;nbsp;which gives&amp;nbsp;conversion time of 16.8us. Changing hardware averaging to 32 will make conversion time 128us and we need to monitor 6 different channels.&amp;nbsp;So is this solution viable&lt;/P&gt;&lt;P&gt;2. We are monitoring&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;VREF but since issue happens sporadically,could not confirm about this yet. Will update regarding this&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 May 2019 10:19:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sudden-increase-in-temperature-reading-with-KL16-ADC/m-p/891722#M52706</guid>
      <dc:creator>balkrishanaa</dc:creator>
      <dc:date>2019-05-15T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sudden increase in temperature reading with KL16 ADC</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sudden-increase-in-temperature-reading-with-KL16-ADC/m-p/891723#M52707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="338945" data-username="balkrishanaa@hcl.com" href="https://community.nxp.com/people/balkrishanaa@hcl.com"&gt;Balkrishna Amrutrao&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then you can try it on your side.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BTW, you also can find another power supply, just test different power supply have the same problem or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Any updated information from your side, please kindly let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 02:44:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Sudden-increase-in-temperature-reading-with-KL16-ADC/m-p/891723#M52707</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-05-16T02:44:10Z</dc:date>
    </item>
  </channel>
</rss>

