<?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: Problems with Sleep Mode on KL05Z in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266492#M8679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have my board enabled on stop mode and can be triggered to exit stop mode using external interrupt through LLWU pins. I want to trigger it through UART. I am facing problem here. Please help me&amp;nbsp; to enable llwu interrupt to wake up the controller by sending active edge through UART.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Apr 2014 10:26:44 GMT</pubDate>
    <dc:creator>joginderrana</dc:creator>
    <dc:date>2014-04-12T10:26:44Z</dc:date>
    <item>
      <title>Problems with Sleep Mode on KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266486#M8673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having problems waking up from sleep/stop mode,I set the external pin in LLWU&amp;nbsp; setting enabled and in the routine of detecting that interrupt set&lt;/P&gt;&lt;P&gt;Cpu_SetOperationMode(DOM_RUN, NULL, NULL); but I think the processor isn't detecting any interrupt. Also when entering the stop mode (VLLS) the board losses connection . All I need is a blinking led and via an external interrupt(falling edge) to set the processor in sleep and wake it up when rising edge on the interrupt is detected. I am using processor expert. &lt;/P&gt;&lt;P&gt; main looks like this : &lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Write your local variable definition here */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; /*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/&lt;/P&gt;&lt;P&gt;&amp;nbsp; PE_low_level_init();&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; EInt1_Enable();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Cpu_VLPModeEnable();&lt;/P&gt;&lt;P&gt;&amp;nbsp; while(1){&lt;/P&gt;&lt;P&gt;&amp;nbsp; Bit1_SetVal();WAIT1_Waitms(100);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Bit1_ClrVal();WAIT1_Waitms(100);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in events.c &lt;/P&gt;&lt;P&gt;void EInt1_OnInterrupt(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; WAIT1_Waitms(100);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (EInt1_GetVal())&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Cpu_SetOperationMode(DOM_RUN, NULL, NULL);/* Write your code here ... */}&lt;/P&gt;&lt;P&gt; else {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; Cpu_SetOperationMode(DOM_STOP, NULL, NULL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt; Also tried this :&lt;/P&gt;&lt;P&gt;void Cpu_OnLLSWakeUpINT(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;v = Cpu_SetOperationMode(DOM_RUN, NULL, NULL);// v is a char &lt;/P&gt;&lt;P&gt;Bit1_SetVal();WAIT1_Waitms(100);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Bit1_ClrVal();WAIT1_Waitms(100);// just to see if it is entering this function&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;This is my configuration of CPU&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119595i2485A538D03EF6DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 09:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266486#M8673</guid>
      <dc:creator>saliheberisha</dc:creator>
      <dc:date>2013-07-11T09:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Sleep Mode on KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266487#M8674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saliheberisha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, what debugger are you using?&amp;nbsp; Some debuggers will lose connection when entering low power modes because the debug circuitry is turned off when you enter debug mode.&amp;nbsp; Other debuggers will simply force the part to enter a pseudo low power mode.&amp;nbsp; So in either case, it is not recommended to enter a low power mode when debugging.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, it sounds like maybe you are not handling ACKISO properly.&amp;nbsp; Remember that Processor Expert does not handle this for you.&amp;nbsp; So you will need to add some start-up code BEFORE the Processor Expert initialization runs.&amp;nbsp; See the screenshot below.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="UserCodeB4Init.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119594iD2B98D23D2DBC950/image-size/large?v=v2&amp;amp;px=999" role="button" title="UserCodeB4Init.png" alt="UserCodeB4Init.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 14:19:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266487#M8674</guid>
      <dc:creator>chris_brown</dc:creator>
      <dc:date>2013-07-11T14:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Sleep Mode on KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266488#M8675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what if I want to use LPTMR0 as an wake up timer for the sleep mode, how can i set the time( as i read it says on compare register ) and where should i set it, like if i want the timer interrupt to happen every 3s and i am using an external 32kHz oscillator. should i add a component for doing that or just write the code and select enable at LLWU settings ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 07:39:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266488#M8675</guid>
      <dc:creator>donejtaelshani</dc:creator>
      <dc:date>2013-07-12T07:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Sleep Mode on KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266489#M8676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I am using MK20DX128VLH5 microcontroller. I am not able to enable sleep mode in this controller. Please help to get rid of this problem. I will be grateful if you provide me with snap shot of cpu settings and syntax parameters for Cpu_SetOperationMode();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 08:18:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266489#M8676</guid>
      <dc:creator>joginderrana</dc:creator>
      <dc:date>2014-03-29T08:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Sleep Mode on KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266490#M8677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe this examples helps you:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/03/16/starting-point-for-kinetis-low-power-lls-mode/" title="http://mcuoneclipse.com/2014/03/16/starting-point-for-kinetis-low-power-lls-mode/"&gt;http://mcuoneclipse.com/2014/03/16/starting-point-for-kinetis-low-power-lls-mode/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 08:31:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266490#M8677</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-03-29T08:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Sleep Mode on KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266491#M8678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been through the example code and have my controller enabled on sleep mode now.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 10:14:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266491#M8678</guid>
      <dc:creator>joginderrana</dc:creator>
      <dc:date>2014-03-29T10:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with Sleep Mode on KL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266492#M8679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have my board enabled on stop mode and can be triggered to exit stop mode using external interrupt through LLWU pins. I want to trigger it through UART. I am facing problem here. Please help me&amp;nbsp; to enable llwu interrupt to wake up the controller by sending active edge through UART.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2014 10:26:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-with-Sleep-Mode-on-KL05Z/m-p/266492#M8679</guid>
      <dc:creator>joginderrana</dc:creator>
      <dc:date>2014-04-12T10:26:44Z</dc:date>
    </item>
  </channel>
</rss>

