<?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>Processor Expert SoftwareのトピックRe: Re: Problem with timer in low power mode</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/Problem-with-timer-in-low-power-mode/m-p/296872#M2195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Perla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Yes my microcontroller successfully enters to &lt;STRONG&gt;LLS&lt;/STRONG&gt; mode.&lt;/LI&gt;&lt;LI&gt;I have configured &lt;STRONG&gt;LLWU&lt;/STRONG&gt; module to use the wake up source &lt;STRONG&gt;LLWU_P4&lt;/STRONG&gt; = &lt;STRONG&gt;LPTMR.&lt;/STRONG&gt; Based on the count of &lt;STRONG&gt;LPTMR&lt;/STRONG&gt; wake up signal will be generated to get out from &lt;STRONG&gt;LLS &lt;/STRONG&gt;mode&lt;/LI&gt;&lt;LI&gt;At power on My microcontroller will run on MCG mode &lt;STRONG&gt;PEE.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In main routine, my microcontroller enter to VLPR mode as I set MCG mode BLPI by&amp;nbsp; using&lt;/P&gt;&lt;P&gt;“Cpu_SetClockConfiguration(CPU_CLOCK_CONFIG_1);” this function.&lt;/P&gt;&lt;P&gt; After this my microcontroller entering into LLS mode using “Cpu_SetOperationMode(DOM_STOP, NULL, NULL);” this function.&lt;/P&gt;&lt;P&gt;Now when my microcontroller come out of LLS mode using wake uptimer (LPTMR) it stays in VLPR mode.&lt;/P&gt;&lt;P&gt;In VLPR mode I want use a free running timer as a counter. Also I want to use same timer when I will come out of VLPR mode.&lt;/P&gt;&lt;P&gt;Is it possible to use same timer in VLPR (MCG mode BLPI) and MCG mode PEE i.e TPM0?.&lt;/P&gt;&lt;P&gt;And while trying this I got the error as attached in my previous discussion&lt;/P&gt;&lt;P&gt;Also I am attaching my code for your reference.&lt;/P&gt;&lt;P&gt;&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, 17 Apr 2014 09:03:53 GMT</pubDate>
    <dc:creator>Embionics</dc:creator>
    <dc:date>2014-04-17T09:03:53Z</dc:date>
    <item>
      <title>Problem with timer in low power mode</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Problem-with-timer-in-low-power-mode/m-p/296870#M2193</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 am working with KL25Z freedom board.&lt;/P&gt;&lt;P&gt;I run the code for wake up from LLS mode using wakeup timer component from the component library library and its working.&lt;/P&gt;&lt;P&gt;I set the config 0 = PEE and Config 1=BLPI mode .&lt;/P&gt;&lt;P&gt;I need to run the code on config 1 (BLPI mode) and 0 both.&lt;/P&gt;&lt;P&gt;I set the configuration so that when i wakeup from LLS mode it should remain into config 1 means VLPR mode only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when i wakeup from LLS and i am in VLPR mode i need nother timer for sending the data on UART after timer expire.&lt;/P&gt;&lt;P&gt;It seems that i m not able to use LPTMR timer as it is already used by wakeup timer component.&lt;/P&gt;&lt;P&gt;alo not able use in config1 setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is it true that i cant use LPTMR again?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if i am using some other timer TPM0 and in setting i enabled config 0 and 1 for TPM0.&lt;/P&gt;&lt;P&gt;I m not able to set the counter frequency and the overrun period as shown in the attachment.&lt;/P&gt;&lt;P&gt;2) How can i use other timer in VLPR mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrds,&lt;/P&gt;&lt;P&gt;Amreen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 13:19:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Problem-with-timer-in-low-power-mode/m-p/296870#M2193</guid>
      <dc:creator>Embionics</dc:creator>
      <dc:date>2014-04-15T13:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with timer in low power mode</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Problem-with-timer-in-low-power-mode/m-p/296871#M2194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I read your post and I am trying to figure out why you have this problem, I would like to confirm with you your set up, please see information below and let me know if I get the correct idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.-Your microcontroller successfuly enter to &lt;STRONG&gt;LLS&lt;/STRONG&gt; mode&lt;/P&gt;&lt;P&gt;2.-You have configured (previously) &lt;STRONG&gt;LLWU&lt;/STRONG&gt; module to use the wake up source &lt;STRONG&gt;LLWU_P4&lt;/STRONG&gt; = &lt;STRONG&gt;LPTMR.&lt;/STRONG&gt; Based on the count of &lt;STRONG&gt;LPTMR&lt;/STRONG&gt;&amp;nbsp; wake up signal will be generated to get out from &lt;STRONG&gt;LLS &lt;/STRONG&gt;mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is were I am not sure what is going on....then I am guessing the next part...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.-Your microcontroller enter to &lt;STRONG&gt;VLPR&lt;/STRONG&gt; mode and you want to use the &lt;STRONG&gt;LLWU&lt;/STRONG&gt; whit &lt;STRONG&gt; LPTMR&lt;/STRONG&gt; or another timer like &lt;STRONG&gt;TMP0&lt;/STRONG&gt; to get out of this mode??? (please let me know if I am right)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing you mention is your MCG mode transitions, when your microcontroller is on Power mode &lt;STRONG&gt;LLS&lt;/STRONG&gt; your MCG mode should be &lt;STRONG&gt;PEE&lt;/STRONG&gt;, for change to &lt;STRONG&gt;VLPR&lt;/STRONG&gt; microcontroller mode your MCG mode should change from &lt;STRONG&gt;PEE&lt;/STRONG&gt; to &lt;STRONG&gt;PBE&lt;/STRONG&gt; and finally to &lt;STRONG&gt;BLPE &lt;/STRONG&gt;or&lt;STRONG&gt; &lt;/STRONG&gt;&lt;STRONG&gt;BLPI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could you please check if your MCG configuration modes change in the appropriate way?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I will be glad to take a look of your project if you want to share it :smileygrin:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a nic day :P,&lt;BR /&gt;Perla&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, 16 Apr 2014 20:57:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Problem-with-timer-in-low-power-mode/m-p/296871#M2194</guid>
      <dc:creator>perlam_i_au</dc:creator>
      <dc:date>2014-04-16T20:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Problem with timer in low power mode</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Problem-with-timer-in-low-power-mode/m-p/296872#M2195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Perla,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Yes my microcontroller successfully enters to &lt;STRONG&gt;LLS&lt;/STRONG&gt; mode.&lt;/LI&gt;&lt;LI&gt;I have configured &lt;STRONG&gt;LLWU&lt;/STRONG&gt; module to use the wake up source &lt;STRONG&gt;LLWU_P4&lt;/STRONG&gt; = &lt;STRONG&gt;LPTMR.&lt;/STRONG&gt; Based on the count of &lt;STRONG&gt;LPTMR&lt;/STRONG&gt; wake up signal will be generated to get out from &lt;STRONG&gt;LLS &lt;/STRONG&gt;mode&lt;/LI&gt;&lt;LI&gt;At power on My microcontroller will run on MCG mode &lt;STRONG&gt;PEE.&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;In main routine, my microcontroller enter to VLPR mode as I set MCG mode BLPI by&amp;nbsp; using&lt;/P&gt;&lt;P&gt;“Cpu_SetClockConfiguration(CPU_CLOCK_CONFIG_1);” this function.&lt;/P&gt;&lt;P&gt; After this my microcontroller entering into LLS mode using “Cpu_SetOperationMode(DOM_STOP, NULL, NULL);” this function.&lt;/P&gt;&lt;P&gt;Now when my microcontroller come out of LLS mode using wake uptimer (LPTMR) it stays in VLPR mode.&lt;/P&gt;&lt;P&gt;In VLPR mode I want use a free running timer as a counter. Also I want to use same timer when I will come out of VLPR mode.&lt;/P&gt;&lt;P&gt;Is it possible to use same timer in VLPR (MCG mode BLPI) and MCG mode PEE i.e TPM0?.&lt;/P&gt;&lt;P&gt;And while trying this I got the error as attached in my previous discussion&lt;/P&gt;&lt;P&gt;Also I am attaching my code for your reference.&lt;/P&gt;&lt;P&gt;&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, 17 Apr 2014 09:03:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Problem-with-timer-in-low-power-mode/m-p/296872#M2195</guid>
      <dc:creator>Embionics</dc:creator>
      <dc:date>2014-04-17T09:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with timer in low power mode</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/Problem-with-timer-in-low-power-mode/m-p/296873#M2196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amreen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked your project together with &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/perlam.i.au"&gt;perlam.i.au&lt;/A&gt;, and here is some feedback:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Regarding LPTMR, the Wakeup_Timer component already adds a TimerUnit_LDD component using LPTMR0 (&lt;STRONG&gt;TU1&lt;/STRONG&gt; under &lt;STRONG&gt;Referenced_Components&lt;/STRONG&gt;), so you cannot add a new component (e.g. &lt;STRONG&gt;TU2&lt;/STRONG&gt;) that uses the same LPTMR0. If you need to use LPTMR both as wake-up source and also as simple timer, then it is better if instead of Wakeup_Timer component, you simply remove it and add a TimerUnit_LDD component using LPTMR0; with this you will have full control of the timer. The disadvantage with this approach is that you will have to manually add code to enable LPTMR as LLWU wakeup source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Now, if instead of LPTMR, you decide to use TPM, the problem you showed with your picture is because the TPM Counter Frequency property (in this case 3 MHz) cannot be achieved with both Clock configurations (0 and 1). If you click in the button (...), it will open the &lt;EM&gt;Timing Dialog Box&lt;/EM&gt;. At the right side you will see the possible clock frequency options. If the list is empty, this means that there is not a common frequency you can select. To solve this you need to play with the clock configurations in the CPU component. Here are some pictures I took from your project to show you my point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Timing_Dialog_Box.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44035i74B1F8C94BF10AB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Timing_Dialog_Box.png" alt="Timing_Dialog_Box.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Timing_Dialog.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44088iC329A1F9EE576223/image-size/large?v=v2&amp;amp;px=999" role="button" title="Timing_Dialog.png" alt="Timing_Dialog.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps. Let us know if you need more details.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&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, 23 Apr 2014 02:22:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/Problem-with-timer-in-low-power-mode/m-p/296873#M2196</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-04-23T02:22:42Z</dc:date>
    </item>
  </channel>
</rss>

