<?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: LPC55S69 : temperature measurement example in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-temperature-measurement-example/m-p/977944#M38620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/xiangjun.rong"&gt;xiangjun.rong&lt;/A&gt;‌ !&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have idea if I need those 2 lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Disable LDOGPADC power down */&lt;BR /&gt; POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC);&lt;BR /&gt; /* Disable Temperature sensor power down. */&lt;BR /&gt; POWER_DisablePD(kPDRUNCFG_PD_TEMPSENS);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I wakeup from PowerDown, refresh Clock settings init ADC and take 3-4 samples asap ?&lt;/P&gt;&lt;P&gt;They looks as prevention of sensor sleep. But in my case I wakeup every 1-10s and measure temperature meanwile main functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How fast ADC can stabilize after initialization ? May be I should wait few hundred microseconds ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2020 06:33:02 GMT</pubDate>
    <dc:creator>EugeneHiihtaja</dc:creator>
    <dc:date>2020-03-04T06:33:02Z</dc:date>
    <item>
      <title>LPC55S69 : temperature measurement example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-temperature-measurement-example/m-p/977942#M38618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi !&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;I can see in lpadc_temperature measurement example you divide main clock to 16&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLOCK_SetClkDiv(kCLOCK_DivAdcAsyncClk, &lt;STRONG&gt;16&lt;/STRONG&gt;U, true);&lt;BR /&gt; CLOCK_AttachClk(kMAIN_CLK_to_ADC_CLK);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the same divisor can't be more than &lt;STRONG&gt;8&lt;/STRONG&gt; if I use ConfigTool what is part of MCUExpresso IDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SDK and IDE have latest versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I have put MCU to PowerDown mode sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I understand right and I should reinitialize ADC in full way like in this SDK example ?&lt;/P&gt;&lt;P&gt;And even skip 2 nonstable values of temperature after initialization.&lt;/P&gt;&lt;P&gt;Does BIAS have sense to keep running when I go to PowerDown mode ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can be right ( and minimal) ADC re initialization sequence after PowerDown mode ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 15:14:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-temperature-measurement-example/m-p/977942#M38618</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2020-03-03T15:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 : temperature measurement example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-temperature-measurement-example/m-p/977943#M38619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Eugene,&lt;/P&gt;&lt;P&gt;Regarding the ADC clock divider, this is a right configuration:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_SetClkDiv(kCLOCK_DivAdcAsyncClk, 8U, true);&lt;/P&gt;&lt;P&gt;From the screenshot, you can see the divider is set up as 7.&lt;/P&gt;&lt;P&gt;but it is okay to use the line also:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CLOCK_SetClkDiv(kCLOCK_DivAdcAsyncClk, 16U, true);&lt;/P&gt;&lt;P&gt;Because the divider is written with 15, only 3 last bits can be written, so the divider is also 7. I have tested.&lt;/P&gt;&lt;P&gt;Regarding the ADC module after power-down, during power down mode, the ADC is turned off, so after waking-up, you have to reinitialize the ADC so that it can function.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&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/103071i8C6C59F09704C425/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 05:28:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-temperature-measurement-example/m-p/977943#M38619</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2020-03-04T05:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 : temperature measurement example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-temperature-measurement-example/m-p/977944#M38620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/xiangjun.rong"&gt;xiangjun.rong&lt;/A&gt;‌ !&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have idea if I need those 2 lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Disable LDOGPADC power down */&lt;BR /&gt; POWER_DisablePD(kPDRUNCFG_PD_LDOGPADC);&lt;BR /&gt; /* Disable Temperature sensor power down. */&lt;BR /&gt; POWER_DisablePD(kPDRUNCFG_PD_TEMPSENS);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I wakeup from PowerDown, refresh Clock settings init ADC and take 3-4 samples asap ?&lt;/P&gt;&lt;P&gt;They looks as prevention of sensor sleep. But in my case I wakeup every 1-10s and measure temperature meanwile main functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How fast ADC can stabilize after initialization ? May be I should wait few hundred microseconds ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 06:33:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-temperature-measurement-example/m-p/977944#M38620</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2020-03-04T06:33:02Z</dc:date>
    </item>
  </channel>
</rss>

