<?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>Kinetis MicrocontrollersのトピックRe: low power mode in the K22FN512VLH12</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340679#M16367</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 use the same board as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em; background-color: #f6f6f6;"&gt;the FRDM-K22F image at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K22F.html" style="font-family: inherit; font-size: 12px; line-height: 1.5em; font-weight: inherit; font-style: inherit; color: #6a737b;" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K22F.html&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;so what is the solution to have the same result as the datasheet!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 07:53:47 GMT</pubDate>
    <dc:creator>nesrinemhiri</dc:creator>
    <dc:date>2015-03-24T07:53:47Z</dc:date>
    <item>
      <title>low power mode in the K22FN512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340677#M16365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I'm starting working with K22FN FREEDOM board and I'm trying to mesuare current consumption in&amp;nbsp; low power mode using the KSDK demo,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a problem i found current consumption higher than the data sheet:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt; for all LLS,and VLPS i found 200µA!!!&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you for the help&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Nesrine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 12:45:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340677#M16365</guid>
      <dc:creator>nesrinemhiri</dc:creator>
      <dc:date>2015-03-23T12:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: low power mode in the K22FN512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340678#M16366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nesrine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do a comparison with the FRDM-K22F image at &lt;A href="http://www.utasker.com/kinetis/FRDM-K22F.html" title="http://www.utasker.com/kinetis/FRDM-K22F.html"&gt;http://www.utasker.com/kinetis/FRDM-K22F.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the administration menu the low power modes can be selected for comparison. Pressing SW2 will allow the processor to resume operation from LLS mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unlike the code that you have tested it is not a demo of low power operation but does incorporate low power usage in a complete framework project. It will use WAIT mode by default and dynamically switches between the RUN mode and the chosen low power mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the results are also not as low as the data sheet suggests. The &lt;STRONG&gt;P3V3_K22F&lt;/STRONG&gt; current is as follows:&lt;/P&gt;&lt;P&gt;RUN mode = 34mA (expected about 35mA at 120MHz)&lt;/P&gt;&lt;P&gt;WAIT mode = 19mA (expected about 18mA, however the processor is switching between WAIT and RUN and UARTs and USB are fully operational)&lt;/P&gt;&lt;P&gt;STOP mode = 2.6mA (expected about 2.25mA but again this is measured switching between STOP and RUN and the oscillator remains on in STOP state)&lt;/P&gt;&lt;P&gt;LLS mode = 160uA (expected &amp;lt;= 15uA)&lt;/P&gt;&lt;P&gt;VLLS3 = 120uA (expected &amp;lt;= 7.5uA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be explanations for the higher current, such as output pin or other leakage paths, that I haven't investigated.&lt;/P&gt;&lt;P&gt;In comparison however, the same code runs on KL devices and achieves results fairly close to the data sheet values. Generally my experience with K parts has shown low leakage values about an order of magnitue greater that the data sheet values - but this is using the standard boards (just using the current measurement jumper) and hasn't excluded leakage that may be involved in the board design (and/or debugger paths).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;K22: &lt;A href="http://www.utasker.com/kinetis/FRDM-K22F.html" title="http://www.utasker.com/kinetis/FRDM-K22F.html"&gt;µTasker Kinetis FRDM-K22F support&lt;/A&gt; / &lt;A href="http://www.utasker.com/kinetis/TWR-K22F120M.html" title="http://www.utasker.com/kinetis/TWR-K22F120M.html"&gt;µTasker Kinetis TWR-K22F120M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 20:43:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340678#M16366</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-03-23T20:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: low power mode in the K22FN512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340679#M16367</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 use the same board as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; line-height: 1.5em; background-color: #f6f6f6;"&gt;the FRDM-K22F image at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.utasker.com/kinetis/FRDM-K22F.html" style="font-family: inherit; font-size: 12px; line-height: 1.5em; font-weight: inherit; font-style: inherit; color: #6a737b;" target="_blank"&gt;http://www.utasker.com/kinetis/FRDM-K22F.html&lt;/A&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;so what is the solution to have the same result as the datasheet!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 07:53:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340679#M16367</guid>
      <dc:creator>nesrinemhiri</dc:creator>
      <dc:date>2015-03-24T07:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Re: low power mode in the K22FN512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340680#M16368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nesrine mhiri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Did you comment all other Port initial code, and just leave the low power enter in code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I do it like this, and my low power data on my FRDM-K22F is nearlly the same as the datasheet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VLPS: 9.4 uA (datasheet 8.7 to 27.5uA )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LLS:&amp;nbsp; 5.2uA (datasheet 3.8 to 7.5uA)&lt;/P&gt;&lt;P&gt;My low power enter code(MDK) is as follows&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14272798232532745" jivemacro_uid="_14272798232532745"&gt;
&lt;P&gt;void enter_LLS(void)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SMC_PMPROT = SMC_PMPROT_ALLS_MASK; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* Set the STOPM field to 0b011 for LLS mode&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SMC_PMCTRL &amp;amp;= ~SMC_PMCTRL_STOPM_MASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SMC_PMCTRL &amp;amp;= ~SMC_PMCTRL_RUNM(0X3);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SMC_PMCTRL |=&amp;nbsp; SMC_PMCTRL_STOPM(0x3);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /*wait for write to complete to SMC before stopping core */ &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* Now execute the stop instruction to go into VLLS */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //stop();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB-&amp;gt;SCR |= 0x4u;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* WFI instruction will start entry into STOP mode */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //asm("WFI");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __wfi();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;void enter_VLPS(void)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SMC_PMPROT = SMC_PMPROT_AVLP_MASK; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* Set the STOPM field to 0b011 for LLS mode&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SMC_PMCTRL &amp;amp;= ~SMC_PMCTRL_STOPM_MASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SMC_PMCTRL &amp;amp;= ~SMC_PMCTRL_RUNM(0X3);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SMC_PMCTRL |=&amp;nbsp; SMC_PMCTRL_STOPM(0x2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /*wait for write to complete to SMC before stopping core */ &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* Now execute the stop instruction to go into VLLS */&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //stop();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCB-&amp;gt;SCR |= 0x4u;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* WFI instruction will start entry into STOP mode */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //asm("WFI");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __wfi();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;You can use my code , and comment all other code, then try again.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&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>Wed, 25 Mar 2015 10:37:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340680#M16368</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-03-25T10:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: low power mode in the K22FN512VLH12</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340681#M16369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I pointed out in a previous post that the binary at &lt;A href="http://www.utasker.com/kinetis/FRDM-K22F.html" title="http://www.utasker.com/kinetis/FRDM-K22F.html"&gt;µTasker Kinetis FRDM-K22F support&lt;/A&gt; consumes about 120uA in LLS, which is a magnitude higher than that what is actually expected in the very worst case.&lt;/P&gt;&lt;P&gt;Therefore I decided to take a closer look to find out why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The binary that I used as reference has USB-CDC operating before moving to the LLS mode and this is a composite USB device with 3 UART bridges.&lt;/P&gt;&lt;P&gt;I tried changing some project settings and found that as soon as I reduced the number of USB-CDC devices to a single one the current went down to 4uA.&lt;/P&gt;&lt;P&gt;Since the USB is the same irrespetive of the number of CDC interfaces I then checked the UARTs being used but didn't find any loading paths on the board when they are enabled and connected to their ports.&lt;/P&gt;&lt;P&gt;By removing the UART MUX function at the pins the current also reduced to 4uA in LLS even with three UARTs configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I then found was that by touching the UART lines with my fingers I could influence the LLS current. So obviously leaving them floating was not good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I subsequently configured pull up resistors on the UART Tx and Rx lines and then the original software configuration could be set to LLS with 4uA current consumption. Note that &lt;SPAN style="text-decoration: underline;"&gt;both&lt;/SPAN&gt; Rx and Tx are important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that to ensure that the values are not higher than expected there is a fairly simple rule:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- don't let any pins configured as peripherals float when in a low leakage mode since this obviously causes quite high leakage currents to result&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- if the HW doesn't define the state, enable pull-ups or pull-downs to suit to keep them stable.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the results are as expected!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I have attached a binary for anyone interested in verifying it. The USB device can be connected and it will appear as 3 x virtual COM ports, whereby the processor current is about 20mA (it is dynamically using WAIT mode whenever it can, otherwise the RUN mode current is about 35mA).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;On the OpenSDA virtual COM at 115200 Baud move to the Administrator menu and command the LLS mode with "set_lp 5" and the USB will disconnect and the processor current drops to &amp;lt; 4uA.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Press the button SW2 and the processor wakes back to full operation and the USB connect again. Repeat as rquired.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;K22: &lt;A href="http://www.utasker.com/kinetis/FRDM-K22F.html" title="http://www.utasker.com/kinetis/FRDM-K22F.html"&gt;µTasker Kinetis FRDM-K22F support&lt;/A&gt; / &lt;A href="http://www.utasker.com/kinetis/TWR-K22F120M.html" title="http://www.utasker.com/kinetis/TWR-K22F120M.html"&gt;µTasker Kinetis TWR-K22F120M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Mar 2015 04:45:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/low-power-mode-in-the-K22FN512VLH12/m-p/340681#M16369</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-03-29T04:45:45Z</dc:date>
    </item>
  </channel>
</rss>

