<?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 K82 : wakeup from LLS3 mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-wakeup-from-LLS3-mode/m-p/836532#M50574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When MCU wake up from LLS3 mode , some LLWU interrupts should be cleaned as it mentioned in example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what about waiting some time for clock stabilisation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;power_user_config_t targetConfig;&lt;BR /&gt; targetConfig.enableLpoClock = true;&lt;BR /&gt; targetConfig.mode = kAPP_PowerModeLls;&lt;BR /&gt; PM_PowerModeSwitch(&amp;amp;targetConfig, NULL);&lt;BR /&gt; //&lt;BR /&gt; // ... LLS3 ....&lt;BR /&gt; //&lt;BR /&gt; // Wakeup -&amp;gt; continue execution&lt;BR /&gt; //&lt;BR /&gt; // LLS3 –&amp;gt; RUN — 6.3 μs, see specification for exact clocks and etc.&lt;BR /&gt; //&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;/* Wait for PLL lock. MCG in PEE mode in RUN. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; while (!(kMCG_Pll0LockFlag &amp;amp; CLOCK_GetStatusFlags()))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; CLOCK_SetPeeMode();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;/* Power mode change. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; SMC_SetPowerModeRun(SMC); // No need ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; while (kSMC_PowerStateRun != SMC_GetPowerModeState(SMC))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Does this red color part is right one ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Eugene&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2018 08:29:24 GMT</pubDate>
    <dc:creator>EugeneHiihtaja</dc:creator>
    <dc:date>2018-12-05T08:29:24Z</dc:date>
    <item>
      <title>K82 : wakeup from LLS3 mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-wakeup-from-LLS3-mode/m-p/836532#M50574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When MCU wake up from LLS3 mode , some LLWU interrupts should be cleaned as it mentioned in example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what about waiting some time for clock stabilisation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;power_user_config_t targetConfig;&lt;BR /&gt; targetConfig.enableLpoClock = true;&lt;BR /&gt; targetConfig.mode = kAPP_PowerModeLls;&lt;BR /&gt; PM_PowerModeSwitch(&amp;amp;targetConfig, NULL);&lt;BR /&gt; //&lt;BR /&gt; // ... LLS3 ....&lt;BR /&gt; //&lt;BR /&gt; // Wakeup -&amp;gt; continue execution&lt;BR /&gt; //&lt;BR /&gt; // LLS3 –&amp;gt; RUN — 6.3 μs, see specification for exact clocks and etc.&lt;BR /&gt; //&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;/* Wait for PLL lock. MCG in PEE mode in RUN. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; while (!(kMCG_Pll0LockFlag &amp;amp; CLOCK_GetStatusFlags()))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; CLOCK_SetPeeMode();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;/* Power mode change. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; SMC_SetPowerModeRun(SMC); // No need ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; while (kSMC_PowerStateRun != SMC_GetPowerModeState(SMC))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Does this red color part is right one ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Eugene&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2018 08:29:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-wakeup-from-LLS3-mode/m-p/836532#M50574</guid>
      <dc:creator>EugeneHiihtaja</dc:creator>
      <dc:date>2018-12-05T08:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: K82 : wakeup from LLS3 mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-wakeup-from-LLS3-mode/m-p/836533#M50575</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;If previous mode is VLPR and you want going to RUN mode, you should call this function. Otherwise, this function have no impact to system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 07:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K82-wakeup-from-LLS3-mode/m-p/836533#M50575</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2018-12-06T07:50:23Z</dc:date>
    </item>
  </channel>
</rss>

