<?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>8-bit MicrocontrollersのトピックRe: Enable ICS for RTC module in Stop3 mode (Problem)</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Enable-ICS-for-RTC-module-in-Stop3-mode-Problem/m-p/500389#M21967</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could be wrong but I don't think you can use the bus clock to exit STOP3 mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this (also noting: "The system integration module (SIM) holds the CPU in a non-clocked state"):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24140iD7B0184A7924E53A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2016 13:43:55 GMT</pubDate>
    <dc:creator>tonyp</dc:creator>
    <dc:date>2016-03-23T13:43:55Z</dc:date>
    <item>
      <title>Enable ICS for RTC module in Stop3 mode (Problem)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Enable-ICS-for-RTC-module-in-Stop3-mode-Problem/m-p/500388#M21966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi ,&lt;/P&gt;&lt;P&gt;I am trying to wake up from Stop3 mode by internal interrupt from RTC module in a MC9S08PA MCU.&lt;/P&gt;&lt;P&gt;Setting up the&amp;nbsp; RTC module Clock Source Select work with LPO(~1KHz) working properly in Stop3 mode so RTC waking up the MCU after desired time, BUT while I am setting the RTC module with the Bus clock as Selected Clock Source, the RTC module dose not wake up the MCU.&lt;/P&gt;&lt;P&gt;As I read in Stop3 state :&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;" &lt;EM&gt;To enter stop3, the user must execute a STOP instruction with stop mode enabled&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;(SOPT1[STOPE] = 1). &lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: #606060; text-decoration: underline;"&gt;Upon entering the stop3 mode, all of the clocks in the MCU are&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM style="color: #606060; text-decoration: underline;"&gt;halted by default, but OSC clock and internal reference clock can be turned on by setting&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;SPAN style="color: #606060; text-decoration: underline;"&gt;the ICS control registers&lt;/SPAN&gt;.&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that's the reason RTC dose not generate wake up situation.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that I have to Enable ICS in Stop3 mode in order to make the RTC module work with Bus Clock timing.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I read in Chapter 8: Clock Managment:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;"8.2.2.7 Stop (STOP)&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;In stop mode, the FLL is disabled and the internal clock source can be enabled or&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;disabled. The BDC clock is not available and the ICS does not provide MCU clock&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;source.&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;Stop mode is entered whenever the MCU enters a stop state. In this mode, all ICS clock&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;signals are static except in the following cases:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;EM&gt;• ICSIRCLK will be active in stop mode when all of the following conditions occur:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&lt;EM&gt;• ICS_C1[IRCLKEN] bit is written to 1&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&lt;EM&gt;• ICS_C1[IREFSTEN] bit is written to 1&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;EM&gt;• OSCOUT will be active in stop mode when all of the following conditions occur:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&lt;EM&gt;• ICS_OSCSC[OSCEN] bit is written to 1&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 120px;"&gt;&lt;EM&gt;• ICS_OSCSC[OSCSTEN] bit is written to 1&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 330px;"&gt;&lt;EM&gt;NOTE&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 150px;"&gt;&lt;EM&gt;The DCO frequency changes from the pre-stop value to its reset&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 150px;"&gt;&lt;EM&gt;value and the FLL need to re-acquire the lock before the&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 150px;"&gt;&lt;EM&gt;frequency is stable. Timing sensitive operations must wait for&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 150px;"&gt;&lt;EM&gt;the FLL acquisition time, tAquire, before executing."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The Problem is that until now I cannot start the ICS&amp;nbsp; in Stop3 mode in any way , while I have already done what the above informs me.&lt;/P&gt;&lt;P&gt;Please tell me if I miss something in order to start the ICS module in a Stop3 situation.&lt;/P&gt;&lt;P&gt;It is very critical for me to timing the RTC module with Bus Clock while we need more precise time on wake up situation, than LPO can give.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.s. : I have already test that ICS work without FLL but direct with ICR(Internal Reference Clock) (ICS_C1_CLKS=01), and work properly, so the only problem is to make ICS module work at Stop3.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pelekis Marios&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Intelco Electronics&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 12:36:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Enable-ICS-for-RTC-module-in-Stop3-mode-Problem/m-p/500388#M21966</guid>
      <dc:creator>mariospelekis</dc:creator>
      <dc:date>2016-03-23T12:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Enable ICS for RTC module in Stop3 mode (Problem)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Enable-ICS-for-RTC-module-in-Stop3-mode-Problem/m-p/500389#M21967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could be wrong but I don't think you can use the bus clock to exit STOP3 mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this (also noting: "The system integration module (SIM) holds the CPU in a non-clocked state"):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24140iD7B0184A7924E53A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 13:43:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Enable-ICS-for-RTC-module-in-Stop3-mode-Problem/m-p/500389#M21967</guid>
      <dc:creator>tonyp</dc:creator>
      <dc:date>2016-03-23T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Enable ICS for RTC module in Stop3 mode (Problem)</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Enable-ICS-for-RTC-module-in-Stop3-mode-Problem/m-p/500390#M21968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tony&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;CPU is like module for MCUs and is clocked from the ICS. Bus Clock is not generated from CPU but from ICS module as image above informs us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="CPU.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24100iCA88BF05858E1E0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="CPU.png" alt="CPU.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the Bus Clock that is controlled from ICS and it is equal to ICSCLK, must be on at Wati mode &lt;/P&gt;&lt;P&gt;and Optionally On at Stop3 mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 14:51:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Enable-ICS-for-RTC-module-in-Stop3-mode-Problem/m-p/500390#M21968</guid>
      <dc:creator>mariospelekis</dc:creator>
      <dc:date>2016-03-23T14:51:02Z</dc:date>
    </item>
  </channel>
</rss>

