<?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 Is it bug or specification? Wake up from the low power mode by RTC overflow interrupt. in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-bug-or-specification-Wake-up-from-the-low-power-mode-by/m-p/354006#M17607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a strange behavior which seems to be bug on FRDM-K20D50M board,&lt;BR /&gt;When Kinetis MCU wake up from the low power mode by RTC overflow interrupt, bit 28 of NVIC interrupt pending register (i.e. NVIC_ISPR0 and NVIC_ICPR0) will be set instead of bit 29. Although the interrupt enable (NVIC_ICER0) bit of the overflow interrupt is set, it will be ignored.&lt;BR /&gt;Therefore LLWU_ME should be assigned by the value of LLWU_RTCA_ME (i.e. 0x20) instead of LLWU_RTCS_ME (i.e. 0x80).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think right way to set RTC overflow interrupt for wake up would be as following.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; enable_irq(LLWU_irq_no);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; enable_irq(RTCS_irq_no);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LLWU_ME =LLWU_RTCS_ME;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I actually set as following to work successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; enable_irq(LLWU_irq_no);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LLWU_ME =LLWU_RTCA_ME;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to get comments from the Kinetis MCU (Kinetis K20 only?) designer.&lt;BR /&gt;For your information, even on FRDM-KL25Z, the situation was the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yasuhiko Koumoto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Sep 2014 12:58:16 GMT</pubDate>
    <dc:creator>yasuhikokoumoto</dc:creator>
    <dc:date>2014-09-29T12:58:16Z</dc:date>
    <item>
      <title>Is it bug or specification? Wake up from the low power mode by RTC overflow interrupt.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-bug-or-specification-Wake-up-from-the-low-power-mode-by/m-p/354006#M17607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a strange behavior which seems to be bug on FRDM-K20D50M board,&lt;BR /&gt;When Kinetis MCU wake up from the low power mode by RTC overflow interrupt, bit 28 of NVIC interrupt pending register (i.e. NVIC_ISPR0 and NVIC_ICPR0) will be set instead of bit 29. Although the interrupt enable (NVIC_ICER0) bit of the overflow interrupt is set, it will be ignored.&lt;BR /&gt;Therefore LLWU_ME should be assigned by the value of LLWU_RTCA_ME (i.e. 0x20) instead of LLWU_RTCS_ME (i.e. 0x80).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think right way to set RTC overflow interrupt for wake up would be as following.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; enable_irq(LLWU_irq_no);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; enable_irq(RTCS_irq_no);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LLWU_ME =LLWU_RTCS_ME;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I actually set as following to work successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; enable_irq(LLWU_irq_no);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; LLWU_ME =LLWU_RTCA_ME;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to get comments from the Kinetis MCU (Kinetis K20 only?) designer.&lt;BR /&gt;For your information, even on FRDM-KL25Z, the situation was the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yasuhiko Koumoto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 12:58:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-bug-or-specification-Wake-up-from-the-low-power-mode-by/m-p/354006#M17607</guid>
      <dc:creator>yasuhikokoumoto</dc:creator>
      <dc:date>2014-09-29T12:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it bug or specification? Wake up from the low power mode by RTC overflow interrupt.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-bug-or-specification-Wake-up-from-the-low-power-mode-by/m-p/354007#M17608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the following is my conclusion.&lt;/P&gt;&lt;P&gt;Both RTC overflow interrupt and RTC alarm interrupt use the common vector of RTC alarm.&lt;/P&gt;&lt;P&gt;RTC time seconds interrupt causes only by RTC_TSR change when RTC_IER[TSIE] is set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Yasuhiko Koumoto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 12:18:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Is-it-bug-or-specification-Wake-up-from-the-low-power-mode-by/m-p/354007#M17608</guid>
      <dc:creator>yasuhikokoumoto</dc:creator>
      <dc:date>2014-10-01T12:18:19Z</dc:date>
    </item>
  </channel>
</rss>

