<?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: LLS mode on K20 processor in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/LLS-mode-on-K20-processor/m-p/284350#M8985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris Paynter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad you solved the problem with lowering frequency before sleep :smileywink:&lt;/P&gt;&lt;P&gt;Regarding the current in sleep mode, if you have more questions, you had better ask them in Kinetis section of the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MartinK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2013 16:48:36 GMT</pubDate>
    <dc:creator>c0170</dc:creator>
    <dc:date>2013-03-06T16:48:36Z</dc:date>
    <item>
      <title>LLS mode on K20 processor</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/LLS-mode-on-K20-processor/m-p/284348#M8983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a MK20DX256VLL7 on a board of our own design, and trying to operate it in LLS mode with MQX.&amp;nbsp; I have created a custom BSP based on the TWRK20DN72M board support package, and I see that it has LLS mode mapped to &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;LPM_OPERATION_MODE_STOP.&amp;nbsp;&amp;nbsp; I have copied the relevant code from the low power demo for that tower board, and if functions fine in LLS mode, and I have managed to modify the init_cm.c file to allow wakeup from either the LPO or an external pin transition.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;The problem I have is that the processor still draws about 1.5 mA when in stop mode.&amp;nbsp; The external oscillator is still running off a 10 MHz crystal, and I do see a small reduction in current if I clear the EREFSTEN bit just before the processor goes to sleep, but then it doesn't wake up again.&amp;nbsp; I think in a general sense I must have to make some OS calls to set up a different clock setup before going to sleep, but am a bit vague on the mechanics of how that works. I also think that there must be some other sources of power consumption that I need to address, which I'm continuing to experiment with.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Are there any general tips for optimizing low power operation on the Kinetis parts (apart from AN4503 and AN4447), and tracking down where the consumption is coming from?&amp;nbsp; From reading the specs, I would expect that I should be able to get down in the tens of microamps in LLS mode, and still be able to wake on the LPO or an external input transition.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Chris&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 18:29:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/LLS-mode-on-K20-processor/m-p/284348#M8983</guid>
      <dc:creator>chrispaynter</dc:creator>
      <dc:date>2013-03-05T18:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: LLS mode on K20 processor</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/LLS-mode-on-K20-processor/m-p/284349#M8984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I may have answered my own question; the bsp for the twrk20d72n board comes with a couple of clock setups, the default one being 72 MHz.&amp;nbsp; If I call _lpm_set_clock_configuration(BSP_CLOCK_CONFIGURATION_2MHZ) before going to &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;LPM_OPERATION_MODE_STOP, the external oscillator is disabled, and I'm seeing processor currents of about 3.1 uA.&amp;nbsp; After waking up, I call &lt;/SPAN&gt;_lpm_set_clock_configuration(BSP_CLOCK_CONFIGURATION_72MHZ), and I'm back in business.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only weird thing now is that the initial processor current of 3.1 uA increases over several minutes to somewhere around 200 uA, but I'm guessing that there are some floating io pins which need to be tied to something or made outputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 16:06:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/LLS-mode-on-K20-processor/m-p/284349#M8984</guid>
      <dc:creator>chrispaynter</dc:creator>
      <dc:date>2013-03-06T16:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: LLS mode on K20 processor</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/LLS-mode-on-K20-processor/m-p/284350#M8985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris Paynter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad you solved the problem with lowering frequency before sleep :smileywink:&lt;/P&gt;&lt;P&gt;Regarding the current in sleep mode, if you have more questions, you had better ask them in Kinetis section of the community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MartinK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 16:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/LLS-mode-on-K20-processor/m-p/284350#M8985</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2013-03-06T16:48:36Z</dc:date>
    </item>
  </channel>
</rss>

