<?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: Problem in Wakeup from LLS mode using Wakeup timer in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-in-Wakeup-from-LLS-mode-using-Wakeup-timer/m-p/311931#M13487</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; Thank you for your interesting in our product, I would like to provide service for you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I already checked your code, I find you missed some code when you are using the LPTMR as the wake up source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please add some code in your events.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the Cpu_OnLLSWakeUpINT function should be like the following:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13970231168762421 jive_macro_code" jivemacro_uid="_13970231168762421" modifiedtitle="true"&gt;
&lt;P&gt;void Cpu_OnLLSWakeUpINT(void)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* Write your code here ... */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_LPTMR_MASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPTMR0_CSR |=&amp;nbsp; LPTMR_CSR_TCF_MASK;&amp;nbsp;&amp;nbsp; // write 1 to TCF to clear the LPT timer compare flag&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPTMR0_CSR = ( LPTMR_CSR_TEN_MASK | LPTMR_CSR_TIE_MASK | LPTMR_CSR_TCF_MASK&amp;nbsp; );&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;then when you run your code, you will find your red light will blinking after wakeup.&lt;/P&gt;&lt;P&gt;If you still not OK, please get the attached code, this is modifed by me based on your code.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact with me !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;(my name)&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>Wed, 09 Apr 2014 06:03:30 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2014-04-09T06:03:30Z</dc:date>
    <item>
      <title>Problem in Wakeup from LLS mode using Wakeup timer</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-in-Wakeup-from-LLS-mode-using-Wakeup-timer/m-p/311930#M13486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying LLS mode for KL25Z freedom board.&lt;/P&gt;&lt;P&gt;To wake up from interrupt I am using wake up timer.&lt;/P&gt;&lt;P&gt;For this I m referring “PEx_low_power_demo “code from KL25_SC.exe&lt;/P&gt;&lt;P&gt;This code is working.&lt;/P&gt;&lt;P&gt;But when I prepare my own code with same CPU and timer setting my code is not working.&lt;/P&gt;&lt;P&gt;I compare generated files related to timer both are exactly same through my code is not working&lt;/P&gt;&lt;P&gt;I have attached my code in which RED led will continuously blink after coming out of the LLS mode.&lt;/P&gt;&lt;P&gt;Please let me know if any changes required in code or in setting?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Amreen&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337320"&gt;Sensor_Base_Code.rar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 13:45:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-in-Wakeup-from-LLS-mode-using-Wakeup-timer/m-p/311930#M13486</guid>
      <dc:creator>Embionics</dc:creator>
      <dc:date>2014-04-07T13:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Wakeup from LLS mode using Wakeup timer</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-in-Wakeup-from-LLS-mode-using-Wakeup-timer/m-p/311931#M13487</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; Thank you for your interesting in our product, I would like to provide service for you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I already checked your code, I find you missed some code when you are using the LPTMR as the wake up source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please add some code in your events.c&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; the Cpu_OnLLSWakeUpINT function should be like the following:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13970231168762421 jive_macro_code" jivemacro_uid="_13970231168762421" modifiedtitle="true"&gt;
&lt;P&gt;void Cpu_OnLLSWakeUpINT(void)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* Write your code here ... */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_LPTMR_MASK;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPTMR0_CSR |=&amp;nbsp; LPTMR_CSR_TCF_MASK;&amp;nbsp;&amp;nbsp; // write 1 to TCF to clear the LPT timer compare flag&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPTMR0_CSR = ( LPTMR_CSR_TEN_MASK | LPTMR_CSR_TIE_MASK | LPTMR_CSR_TCF_MASK&amp;nbsp; );&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;then when you run your code, you will find your red light will blinking after wakeup.&lt;/P&gt;&lt;P&gt;If you still not OK, please get the attached code, this is modifed by me based on your code.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact with me !&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;(my name)&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>Wed, 09 Apr 2014 06:03:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-in-Wakeup-from-LLS-mode-using-Wakeup-timer/m-p/311931#M13487</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-04-09T06:03:30Z</dc:date>
    </item>
  </channel>
</rss>

