<?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: Trying to put a KL02 microcontroler in VLPS mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-put-a-KL02-microcontroler-in-VLPS-mode/m-p/442049#M25925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Problem solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2015 10:12:40 GMT</pubDate>
    <dc:creator>omerarregi</dc:creator>
    <dc:date>2015-04-27T10:12:40Z</dc:date>
    <item>
      <title>Trying to put a KL02 microcontroler in VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-put-a-KL02-microcontroler-in-VLPS-mode/m-p/442047#M25923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to put a KL02 microcontroler in VLPS mode (according to the datasheet the current consumption in this mode should be betwen 2 to 5 uA) but it seems that it doesn't enter in this mode properly. The current consumption is around 2mA after WFI instruction (3.6mA in normal operation)&lt;/P&gt;&lt;P&gt;I've an periodic interruption (1sec) using LPTIMER for RUN mode enter 1sec. after WFI instruction.&lt;/P&gt;&lt;P&gt;I'm trying to send the uC to VLPS mode out of this interruption with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;// set the uC in Very-Low-Power Stop mode (VLPS)&lt;/P&gt;&lt;P&gt;SMC-&amp;gt;PMPROT |= (uint8_t)SMC_PMPROT_AVLP_MASK;&amp;nbsp;&amp;nbsp;&amp;nbsp; // allow entry in low power modes&lt;/P&gt;&lt;P&gt;SMC-&amp;gt;PMCTRL |= 0x02;&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;&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; // set VLPS mode for WFI state&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCM-&amp;gt;CPO |= MCM_CPO_CPOWOI_MASK;&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; // clear CPOREQ on any interrupt or exception vector fetch&lt;/P&gt;&lt;P&gt;MCM-&amp;gt;CPO |= MCM_CPO_CPOREQ_MASK;&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; // request Compute Operation&lt;/P&gt;&lt;P&gt;while (!(MCM-&amp;gt;CPO &amp;amp; MCM_CPO_CPOACK_MASK));&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // wait until Compute operation entry has completed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;__WFI();&lt;/P&gt;&lt;P&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea about what I'm doing wrong?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2015 13:14:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-put-a-KL02-microcontroler-in-VLPS-mode/m-p/442047#M25923</guid>
      <dc:creator>omerarregi</dc:creator>
      <dc:date>2015-04-24T13:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to put a KL02 microcontroler in VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-put-a-KL02-microcontroler-in-VLPS-mode/m-p/442048#M25924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omer，&lt;/P&gt;&lt;P&gt;FSL's shared a sample code package of the FRDM-KL02 which includes a low power mode demo.&lt;/P&gt;&lt;P&gt;The demo's illustrated the ways to enter different low power modes, of course the VLPS mode in, you can refer to this demo for details.&lt;/P&gt;&lt;P&gt;Please download the sample code package through the link as below.&lt;/P&gt;&lt;P&gt;cache.freescale.com/files/32bit/software/KL02-SC.zip&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 00:41:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-put-a-KL02-microcontroler-in-VLPS-mode/m-p/442048#M25924</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2015-04-27T00:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to put a KL02 microcontroler in VLPS mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-put-a-KL02-microcontroler-in-VLPS-mode/m-p/442049#M25925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Problem solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2015 10:12:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trying-to-put-a-KL02-microcontroler-in-VLPS-mode/m-p/442049#M25925</guid>
      <dc:creator>omerarregi</dc:creator>
      <dc:date>2015-04-27T10:12:40Z</dc:date>
    </item>
  </channel>
</rss>

