<?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 OS Time Change in SleepMode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-in-SleepMode/m-p/1323606#M61228</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my project we configured different frequencies as below for&amp;nbsp;MK20FX512VMD12&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Y1 = 16 MHz crystal oscillator&lt;/LI&gt;&lt;LI&gt;Load capacitance set by OSA0_CR registers = 10 pF&lt;/LI&gt;&lt;LI&gt;Clock input is selected to EXTAL0 (16MHz)&lt;/LI&gt;&lt;LI&gt;PLL pre-divider = 2, multiplier = 30&lt;/LI&gt;&lt;LI&gt;OUTDIV1 = 0 OUTDIV2 = 1 OUTDIV3 = 2&amp;nbsp;&amp;nbsp; OUTDIV4 = 5&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Module Clocks&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PLL = 240 MHz (16 MHz / 2 * 30)&lt;/LI&gt;&lt;LI&gt;MCGOUTCLK = PLL / 2 = 120 MHz&lt;/LI&gt;&lt;LI&gt;Core Clock = MCGOUTCLK / OUTDIV1 (0) = 120 MHz&lt;/LI&gt;&lt;LI&gt;Bus Clock = MCGOUTCLK / OUTDIV2 (1) = 60 MHz&lt;/LI&gt;&lt;LI&gt;FlexBus Clock = MCGOUTCLK / OUTDIV3 (2) = 40 MHz&lt;/LI&gt;&lt;LI&gt;SRAM Clock = MCGOUTCLK / OUTDIV4 (5) = 20 MHz&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MCG_C1 0x20 (External reference clock is selected)&lt;/P&gt;&lt;P&gt;Enabled the sleep mode by setting the&amp;nbsp;LPTMR TEN and TIE bits of LPTMR register&lt;/P&gt;&lt;P&gt;Low Leakage Stop Mode in SMC_PMCTRL register&lt;/P&gt;&lt;P&gt;SLEEPEEP bit in&amp;nbsp;System Control Register&lt;/P&gt;&lt;P&gt;After WFI instruction it waits for interrupt, after this point what is the system/core clock frequency?&lt;/P&gt;&lt;P&gt;As it was configured to use external reference clock in low power mode can I consider 16MHz as the clock used as System/Core clock during this sleep mode?&lt;/P&gt;&lt;P&gt;But from the reference manual it is given as System/Core clock will become divide by 8, which is correct? does it uses external reference clock or it divides the frequency by 8 for computation?&lt;/P&gt;&lt;P&gt;Please see&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-after-coming-out-from-SleepMode/td-p/1323839" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-after-coming-out-from-SleepMode/td-p/1323839&lt;/A&gt;&amp;nbsp;for more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkata&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2021 12:12:48 GMT</pubDate>
    <dc:creator>somesh_malla</dc:creator>
    <dc:date>2021-08-18T12:12:48Z</dc:date>
    <item>
      <title>OS Time Change in SleepMode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-in-SleepMode/m-p/1323606#M61228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my project we configured different frequencies as below for&amp;nbsp;MK20FX512VMD12&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Y1 = 16 MHz crystal oscillator&lt;/LI&gt;&lt;LI&gt;Load capacitance set by OSA0_CR registers = 10 pF&lt;/LI&gt;&lt;LI&gt;Clock input is selected to EXTAL0 (16MHz)&lt;/LI&gt;&lt;LI&gt;PLL pre-divider = 2, multiplier = 30&lt;/LI&gt;&lt;LI&gt;OUTDIV1 = 0 OUTDIV2 = 1 OUTDIV3 = 2&amp;nbsp;&amp;nbsp; OUTDIV4 = 5&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Module Clocks&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PLL = 240 MHz (16 MHz / 2 * 30)&lt;/LI&gt;&lt;LI&gt;MCGOUTCLK = PLL / 2 = 120 MHz&lt;/LI&gt;&lt;LI&gt;Core Clock = MCGOUTCLK / OUTDIV1 (0) = 120 MHz&lt;/LI&gt;&lt;LI&gt;Bus Clock = MCGOUTCLK / OUTDIV2 (1) = 60 MHz&lt;/LI&gt;&lt;LI&gt;FlexBus Clock = MCGOUTCLK / OUTDIV3 (2) = 40 MHz&lt;/LI&gt;&lt;LI&gt;SRAM Clock = MCGOUTCLK / OUTDIV4 (5) = 20 MHz&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;MCG_C1 0x20 (External reference clock is selected)&lt;/P&gt;&lt;P&gt;Enabled the sleep mode by setting the&amp;nbsp;LPTMR TEN and TIE bits of LPTMR register&lt;/P&gt;&lt;P&gt;Low Leakage Stop Mode in SMC_PMCTRL register&lt;/P&gt;&lt;P&gt;SLEEPEEP bit in&amp;nbsp;System Control Register&lt;/P&gt;&lt;P&gt;After WFI instruction it waits for interrupt, after this point what is the system/core clock frequency?&lt;/P&gt;&lt;P&gt;As it was configured to use external reference clock in low power mode can I consider 16MHz as the clock used as System/Core clock during this sleep mode?&lt;/P&gt;&lt;P&gt;But from the reference manual it is given as System/Core clock will become divide by 8, which is correct? does it uses external reference clock or it divides the frequency by 8 for computation?&lt;/P&gt;&lt;P&gt;Please see&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-after-coming-out-from-SleepMode/td-p/1323839" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-after-coming-out-from-SleepMode/td-p/1323839&lt;/A&gt;&amp;nbsp;for more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkata&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 12:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-in-SleepMode/m-p/1323606#M61228</guid>
      <dc:creator>somesh_malla</dc:creator>
      <dc:date>2021-08-18T12:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: OS Time Change in SleepMode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-in-SleepMode/m-p/1324853#M61260</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/110966"&gt;@somesh_malla&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The RTOS tick is the operating system time unit. RTOS measures time in ticks, instead of in seconds and milliseconds.&amp;nbsp; &amp;nbsp;Which RTOS you are using?&amp;nbsp; FreeRTOS or MQX RTOS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 15:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-in-SleepMode/m-p/1324853#M61260</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2021-08-17T15:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: OS Time Change in SleepMode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-in-SleepMode/m-p/1325114#M61267</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Daniel,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;We are using Micrium RTOS, Also attached the register settings read in normal mode and low power mode.&lt;/P&gt;&lt;TABLE width="726"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="79"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="79"&gt;Normal Mode&lt;/TD&gt;&lt;TD width="79"&gt;Low Power Mode&lt;/TD&gt;&lt;TD width="255"&gt;Normal Mode&lt;/TD&gt;&lt;TD width="234"&gt;Low Power Mode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MCG_C1&lt;/TD&gt;&lt;TD&gt;00100000&lt;/TD&gt;&lt;TD&gt;00001110&lt;/TD&gt;&lt;TD width="255"&gt;FRDIV=16&lt;BR /&gt;External reference clock is selected.&lt;/TD&gt;&lt;TD width="234"&gt;FRDIV=2&lt;BR /&gt;Slow Internal Reference clock is selected&lt;BR /&gt;Internal Reference Clock Enable&lt;BR /&gt;Internal Reference Stop Enable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MCG_C2&lt;/TD&gt;&lt;TD&gt;10010100&lt;/TD&gt;&lt;TD&gt;00000111&lt;/TD&gt;&lt;TD width="255"&gt;High frequency range selected for the crystal oscillator&lt;BR /&gt;FLL or PLL is not disabled in bypass modes&lt;BR /&gt;Slow internal reference clock selected.&lt;/TD&gt;&lt;TD width="234"&gt;Low frequency range selected for the crystal oscillator&lt;BR /&gt;FLL or PLL is disabled in bypass modes (lower power)&lt;BR /&gt;Fast internal reference clock selected&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MCG_C5&lt;/TD&gt;&lt;TD&gt;00000001&lt;/TD&gt;&lt;TD&gt;10000000&lt;/TD&gt;&lt;TD width="255"&gt;Selects OSC0 clock source as its external reference clock&lt;BR /&gt;PRDIV0 = 2&lt;/TD&gt;&lt;TD width="234"&gt;Selects OSC1 clock source as its external reference clock&lt;BR /&gt;PRDIV0 = 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MCG_S&lt;/TD&gt;&lt;TD&gt;01101110&lt;/TD&gt;&lt;TD&gt;00000111&lt;/TD&gt;&lt;TD width="255"&gt;PLL0 has acquired lock.&lt;BR /&gt;Source of PLLS clock is PLLCS output clock&lt;BR /&gt;Output of the PLL is selected&lt;BR /&gt;Source of internal reference clock is the slow clock (32 kHz IRC).&lt;/TD&gt;&lt;TD width="234"&gt;Source of PLLS clock is FLL clock&lt;BR /&gt;Internal reference clock is selected.&lt;BR /&gt;Source of internal reference clock is the fast clock (4 MHz IRC).&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Somesh&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 12:14:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/OS-Time-Change-in-SleepMode/m-p/1325114#M61267</guid>
      <dc:creator>somesh_malla</dc:creator>
      <dc:date>2021-08-18T12:14:20Z</dc:date>
    </item>
  </channel>
</rss>

