<?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: KL25Z low power mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223651#M4183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying both modes differently..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First is that i am working with Normal Stop mode.&lt;/P&gt;&lt;P&gt;In which LLWU is disable.&lt;/P&gt;&lt;P&gt;I have configure one pin as e external interrupt pin using processor expert with CW10.3.&lt;/P&gt;&lt;P&gt;In main function I have called the function "mode_Select=Cpu_SetOperationMode(DOM_STOP, NULL, NULL) " to enter into stop mode. For this I have refer code "PEx_low_power_demo " from freescale webside.&lt;/P&gt;&lt;P&gt;and after this function i have written while loop for LED toggle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when interrupt occurs is it not coming out of the stop mode.LED is not toggling.&lt;/P&gt;&lt;P&gt;Please advise me if there is some other method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i have to work with LLWU pin interrupt to wake from other stop modes like VLLSx to decide which mode is suitable for my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;Amreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2014 13:16:33 GMT</pubDate>
    <dc:creator>Embionics</dc:creator>
    <dc:date>2014-01-10T13:16:33Z</dc:date>
    <item>
      <title>KL25Z low power mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223648#M4180</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;Hello,&lt;/P&gt;&lt;P&gt;I'm starting working with KL25Z board and I'm trying to find a low power mode suitable for my application.&lt;/P&gt;&lt;P&gt;I have a problem with stop mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using processor expert with Code warrior 10.3.&lt;/P&gt;&lt;P&gt;In my project I add the "BitIO" component to drive an input pin(PTD6)&lt;/P&gt;&lt;P&gt;Also made the same pin(PTD6) as a LLWU for any edge in CPU setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i call below function it goes into stop mode.&lt;/P&gt;&lt;P&gt;Cpu_SetOperationMode(DOM_STOP, NULL, NULL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not coming out of stop even by setting PTD 6 pin high or low.&lt;/P&gt;&lt;P&gt;Please help me if i am getting wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 12:43:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223648#M4180</guid>
      <dc:creator>Embionics</dc:creator>
      <dc:date>2014-01-08T12:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: KL25Z low power mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223649#M4181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amreen,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; According to our reference manual, if you want to come out of normal stop mode, you should use the interrupt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Just like the following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41716i2D236F54062778B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="23.jpg" alt="23.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have a question, did you configure the PTD6 interruption?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 01:59:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223649#M4181</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-01-09T01:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: KL25Z low power mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223650#M4182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had to deal with this and know why it's confusing. There are two wake up interrupt sources on the KL24, the &lt;SPAN class="st"&gt;AWIC and LLWU.&amp;nbsp; The &lt;/SPAN&gt;&lt;SPAN class="st"&gt;AWIC is part of the standard ARM core from Arm Ltd.&amp;nbsp; The documentation is mostly on the ARM website. The LLWU is a Kinetis (Freescale) designed module and is documented in the KL24 data sheet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very simply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The LLWU is disabled except when in a Low Leakage Stop Mode. Which means it cannot be used to wake the processor up from normal stop or standby modes. You need to use the AWIC instead.&lt;/P&gt;&lt;P&gt;The AWIC is disables in Low Leakage Stop Modes, which means you need to use the LLWU to wake up the processor from LLS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note on the KL15 which I'm using some LLWU input pins also have pin change interrupts (AWIC) and some do not.&amp;nbsp; This can be an issue if you want a pin to be able to both wake up the processor from sleep mode and low leakage sleep mode.&amp;nbsp; If possible you may want to avoid using the low leakage stop modes unless you really need ultra low sleep current.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 01:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223650#M4182</guid>
      <dc:creator>gibbon1</dc:creator>
      <dc:date>2014-01-10T01:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: KL25Z low power mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223651#M4183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying both modes differently..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First is that i am working with Normal Stop mode.&lt;/P&gt;&lt;P&gt;In which LLWU is disable.&lt;/P&gt;&lt;P&gt;I have configure one pin as e external interrupt pin using processor expert with CW10.3.&lt;/P&gt;&lt;P&gt;In main function I have called the function "mode_Select=Cpu_SetOperationMode(DOM_STOP, NULL, NULL) " to enter into stop mode. For this I have refer code "PEx_low_power_demo " from freescale webside.&lt;/P&gt;&lt;P&gt;and after this function i have written while loop for LED toggle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when interrupt occurs is it not coming out of the stop mode.LED is not toggling.&lt;/P&gt;&lt;P&gt;Please advise me if there is some other method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i have to work with LLWU pin interrupt to wake from other stop modes like VLLSx to decide which mode is suitable for my application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reg,&lt;/P&gt;&lt;P&gt;Amreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 13:16:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223651#M4183</guid>
      <dc:creator>Embionics</dc:creator>
      <dc:date>2014-01-10T13:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: KL25Z low power mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223652#M4184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amreen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; According to your demand, I write the code of wake up from normal stop base on "PEx_low_power_demo ", please find in the attachments!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I use the PTA5 , and configure the interrupt as the wake up source, after wake up from the normal stop, then red light blink.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; After test, the function is ok!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I hope it will helps you, if you still have question, please let me know!&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 03:44:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223652#M4184</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-01-13T03:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: KL25Z low power mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223653#M4185</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;Thanks for the code. Your code is very helpful and it is working with my hardware.&lt;/P&gt;&lt;P&gt;It saw that my CPU Setting are different than your CPU setting.&lt;/P&gt;&lt;P&gt;I am trying to figure out the setting from your code&amp;nbsp; which is require for my application.&lt;/P&gt;&lt;P&gt;I have attached my CPU Settings file.&lt;/P&gt;&lt;P&gt;Guide me if i am going in wrong direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 13:16:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223653#M4185</guid>
      <dc:creator>Embionics</dc:creator>
      <dc:date>2014-01-23T13:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: KL25Z low power mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223654#M4186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amreen sayyed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I would like to help you to compare and find the wrong problem, but maybe you need give me your problem project, then I can do the test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The configuration of CPU is not enough to locate your issues!&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 02:18:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223654#M4186</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-01-24T02:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: KL25Z low power mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223655#M4187</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;I have attached my project.&lt;/P&gt;&lt;P&gt;It contain some extra component like UART0 and UART1.&lt;/P&gt;&lt;P&gt;These components are future requirement of my project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i am not able to generate .hex file from your project. Is there any different setting require for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 12:28:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223655#M4187</guid>
      <dc:creator>Embionics</dc:creator>
      <dc:date>2014-01-24T12:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Re: KL25Z low power mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223656#M4188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amreen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I already help you check your code, about the configuration, it is ok, to test your low power mode, I add the following code in your main():&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13907140200546932 jive_macro_code" jivemacro_uid="_13907140200546932"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Cpu_SetOperationMode(DOM_SLEEP, NULL, NULL);&amp;nbsp; // enter normal stop&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; // Wait for clocks to stabilize&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for (i=0; i&amp;lt;20000; i++)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// printf("Woke up from Stop!! \n\n");&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //jjtest&lt;/P&gt;
&lt;P&gt;&amp;nbsp; BLUE_LED_SetVal(BLUE_LED_DeviceData);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; while(1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //after wake up then blinking, please make the PTA5 to ground to realize wake up&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RED_LED_SetVal(RED_LED_DeviceData);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for(c1=0;c1&amp;lt;10;c1++)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(c2=0;c2&amp;lt;65535;c2++);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; RED_LED_ClrVal(RED_LED_DeviceData);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; for(c1=0;c1&amp;lt;10;c1++)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(c2=0;c2&amp;lt;65535;c2++);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;You can realize wake up by connect the PTA5 to ground, then the red light will brink, it means chip already wake up.&lt;/P&gt;&lt;P&gt;Please find the new code in the attachment, I already comment the uart code, after you test the low power function is ok, you can add your uart code again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish my answer will help you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jan 2014 05:23:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223656#M4188</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-01-26T05:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Re: Re: KL25Z low power mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223657#M4189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you jing. Your code was very helpful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am trying VLLS3 mode in PEx_low_power_demo code given by you at the start of this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made following 3 changes to that code as&lt;/P&gt;&lt;P&gt;1) at power on Green LED will Glow.&lt;/P&gt;&lt;P&gt;2) Before entering into VLLS mode turn off green and turn on Blue LED.&lt;/P&gt;&lt;P&gt;3) When Come out off VLLS3 mode turn off blue LED &amp;amp; RED LED will Toggle Continuously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding, before entering into VLLS we have to set PTD6&amp;nbsp; LLWU pin&amp;nbsp; for interrupt.&lt;/P&gt;&lt;P&gt;To do this, I set PTD6 as GPIO with interrupt disable, set PTD6 a input pin and then&lt;/P&gt;&lt;P&gt;enable and select the falling edge detect type for the external wake up input pin PTD6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In&amp;nbsp; event "Cpu_OnLLSWakeUpINT", I set LPTMR access enable.&lt;/P&gt;&lt;P&gt;Also set&amp;nbsp; TCF,TEN,TIE bits in LPTMR0_CSR as LPTMR is enable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am considering that when I am giving falling edge at PTD6 the toggling of RED LED should work.&lt;/P&gt;&lt;P&gt;But the code is not coming out off VLLS3 As toggling of RED LED is not occurred &amp;amp; only BLUE LED is ON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it right method to test VLLS3 mode?&lt;/P&gt;&lt;P&gt;I have also attached the code. Please suggest if there any modification require to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 07:16:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL25Z-low-power-mode/m-p/223657#M4189</guid>
      <dc:creator>Embionics</dc:creator>
      <dc:date>2014-01-30T07:16:13Z</dc:date>
    </item>
  </channel>
</rss>

