<?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: FRDM-KL25Z LLS Mode</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-LLS-Mode/m-p/1687851#M65294</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220365"&gt;@Robin4&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll look into your questions.&lt;/P&gt;
&lt;P&gt;Meanwhile I would like to do some recommendations:&lt;/P&gt;
&lt;P&gt;Change your development to MCUXpresso IDE instead of kinetis design studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please read this application notes&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4503.pdf" target="_self"&gt;Power Management for Kinetis MCUs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5088.pdf" target="_self"&gt;Power Management for Kinetis L Family&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4470.pdf" target="_self"&gt;Using Low Power Modes on Kinetis Family&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards, Miguel.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 18:53:51 GMT</pubDate>
    <dc:creator>Miguel04</dc:creator>
    <dc:date>2023-07-13T18:53:51Z</dc:date>
    <item>
      <title>FRDM-KL25Z LLS Mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-LLS-Mode/m-p/1687307#M65289</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using the FRDM-KL25Z board for building up a motocycle alarm system (including the accelerometer).&lt;/P&gt;&lt;P&gt;Using Kinetis Design Studio with SDK 1.x&lt;/P&gt;&lt;P&gt;Not using Processor Expert. Coding all myself.&lt;/P&gt;&lt;P&gt;The problem is that in it's default settings, this board drains my battery empty very fast, so I want to configure a Low Power Mode (LLS).&lt;/P&gt;&lt;P&gt;The manual says:&lt;/P&gt;&lt;P&gt;To make a transition from RUN to LLS the following trigger conditions need to occur:&lt;/P&gt;&lt;P&gt;PMPROT[ALLS]=1, PMCTRL[STOPM]=011, Sleep-now or&lt;BR /&gt;sleep-on-exit modes entered with SLEEPDEEP set, which is&lt;BR /&gt;controlled in System Control Register in ARM core&lt;/P&gt;&lt;P&gt;So in my code at the beginning, right after setting up clock modes, I put&lt;/P&gt;&lt;P&gt;SMC_PMPROT |= (1&amp;lt;&amp;lt;3);&lt;/P&gt;&lt;P&gt;SCB-&amp;gt;SCR |= SCB_SCR_SLEEPDEEP_Msk;&lt;/P&gt;&lt;P&gt;At some point I want to enter the LLS mode with&lt;/P&gt;&lt;P&gt;SMC_PMCTRL |= 0x3U;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The controller however remains in RUN mode.&lt;/P&gt;&lt;P&gt;Reading&amp;nbsp;SMC_PMSTAT delivers 0b00000001 (current power mode is RUN)&lt;/P&gt;&lt;P&gt;and also the Stop Aborted bit in SMC_PMCTRL register remains zero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong? Do I have to implement a Wake Up routine first otherwise LLS (or other stop modes) are not allowed? Wrong order when writing the registers?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 08:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-LLS-Mode/m-p/1687307#M65289</guid>
      <dc:creator>Robin4</dc:creator>
      <dc:date>2023-07-13T08:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KL25Z LLS Mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-LLS-Mode/m-p/1687851#M65294</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220365"&gt;@Robin4&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll look into your questions.&lt;/P&gt;
&lt;P&gt;Meanwhile I would like to do some recommendations:&lt;/P&gt;
&lt;P&gt;Change your development to MCUXpresso IDE instead of kinetis design studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please read this application notes&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4503.pdf" target="_self"&gt;Power Management for Kinetis MCUs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5088.pdf" target="_self"&gt;Power Management for Kinetis L Family&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4470.pdf" target="_self"&gt;Using Low Power Modes on Kinetis Family&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards, Miguel.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 18:53:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-LLS-Mode/m-p/1687851#M65294</guid>
      <dc:creator>Miguel04</dc:creator>
      <dc:date>2023-07-13T18:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KL25Z LLS Mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-LLS-Mode/m-p/1687881#M65295</link>
      <description>&lt;P&gt;Thanks, I will consider using that IDE.&lt;/P&gt;&lt;P&gt;Solved the problem. Found an example code showing that it is also necessary to use an assembler command&lt;/P&gt;&lt;P&gt;__asm("WFI")&lt;/P&gt;&lt;P&gt;to enter LLS mode.&lt;/P&gt;&lt;P&gt;Now it works. Just have to figure out now how to activate the Low Power Timer LPTMR0 and use it as wake up interrupt.&lt;/P&gt;&lt;P&gt;Wanted to use one of the 2 Accelerometer interrupt signals but unfortunately they are not connected to any LLWU Pins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 20:18:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-LLS-Mode/m-p/1687881#M65295</guid>
      <dc:creator>Robin4</dc:creator>
      <dc:date>2023-07-13T20:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-KL25Z LLS Mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-LLS-Mode/m-p/1690598#M65306</link>
      <description>&lt;P&gt;LLS and Wake-up are now fully functional. However, I damaged the MCU when I was trying to lower the power consumption of the KL25Z-Board, which was extremely high (~20 mA) for battery-powered applications.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed these instructions:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2013/10/20/tutorial-using-the-frdm-kl25z-as-low-power-board/" target="_blank"&gt;https://mcuoneclipse.com/2013/10/20/tutorial-using-the-frdm-kl25z-as-low-power-board/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which worked well until I probably accidentally connected my power supply to the wrong pin.&lt;/P&gt;&lt;P&gt;As my KL25Z was gone, I used the KL43Z instead and repeated all steps. This time I used a direct, unregulated 3.3V input instead of 9V input for power supply.&lt;/P&gt;&lt;P&gt;The KL43Z MCU itself now drains about 2 uA thanks to LLS mode.&lt;/P&gt;&lt;P&gt;The KL43Z-Board however drained about 10,8 mA from the 3.3V input pin, even with openSDA module disabled. At this point my KL25Z-Board was far better with a current drain of &amp;lt; 4 mA (through the 9V_in pin).&lt;/P&gt;&lt;P&gt;I found out that the Magnetometer was consuming 10 mA of current and after removing it from the PCB and some optimizing of the accelerometer usage (fortunately the accelerometer interrupt can wake up the KL43Z MCU), I got a total current drain of ~70 uA now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 18:32:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL25Z-LLS-Mode/m-p/1690598#M65306</guid>
      <dc:creator>Robin4</dc:creator>
      <dc:date>2023-07-21T18:32:30Z</dc:date>
    </item>
  </channel>
</rss>

