<?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>Kinetis MicrocontrollersのトピックRe: Kinetis: Using OSERCLK with High Range Crystal (8-32 MHz)</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Using-OSERCLK-with-High-Range-Crystal-8-32-MHz/m-p/1149384#M57994</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13847" target="_self"&gt;lsrbigfoot&lt;/A&gt;，&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; Which IDE you are using?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; If you are using the MCUXPresso IDE, you can check the clock diagram, whether your PLL output is in the 110Mhz to 240Mhz range.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124462i6A6385A169E02F16/image-size/large?v=v2&amp;amp;px=999" role="button" title="12.jpg" alt="12.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;From your stuck point, it is related to the PLL is not locked OK.&lt;/P&gt;
&lt;P&gt;You also can check the related PLL factor, whether the output will exceed the datasheet's range or not.&lt;/P&gt;
&lt;P&gt;After you enable the load capacitor, it has the improvement, whether the issue can be solved?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/P&gt;
&lt;P&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Sep 2020 02:57:41 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2020-09-07T02:57:41Z</dc:date>
    <item>
      <title>Kinetis: Using OSERCLK with High Range Crystal (8-32 MHz)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Using-OSERCLK-with-High-Range-Crystal-8-32-MHz/m-p/1071911#M57311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using either KV58 (MKV58F1M0VLQ24) or K22 (&lt;SPAN class=""&gt;MK22FX512AVLQ12&lt;/SPAN&gt;), I ran into a common issue where it appears that Boot Clock initialization call CLOCK_BootToPeeMode() fails only if I attempt to enable OSERCLK while using a 12 MHz crystal in high gain mode. 12 MHz crystal was connected to MCU only with 1 Mohm resistor (Rf) in parallel. In both cases the PLL was configured to drive processor clock no faster than 120 MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without paying too much attention, workarounds used included steps to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Disable and avoid OSERCLK altogether, using HF External Oscillator in High Gain Mode, or&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Enable OSERCLK, using HF External Oscillator in Low Power Mode&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is difference between using External Oscillator in Low Power Mode vs. High Gain Mode?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why can't&amp;nbsp;OSERCLK be enabled&amp;nbsp;using 12 MHz&amp;nbsp;&lt;SPAN&gt;External Oscillator in High Gain Mode?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2020 20:40:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Using-OSERCLK-with-High-Range-Crystal-8-32-MHz/m-p/1071911#M57311</guid>
      <dc:creator>lsrbigfoot</dc:creator>
      <dc:date>2020-08-27T20:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis: Using OSERCLK with High Range Crystal (8-32 MHz)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Using-OSERCLK-with-High-Range-Crystal-8-32-MHz/m-p/1132937#M57939</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_13" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13847" target="_self"&gt;lsrbigfoot&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Oscillator crystal or resonator frequency — high frequency mode (high range)&amp;nbsp;(MCG_C2[RANGE]=1x) is 8Mhz to 32Mhz.&lt;/P&gt;
&lt;P&gt;Your 12Mhz is the high frequency, if you use the high gain mode(HGO=1), then the feedback is 1M resistor.&lt;/P&gt;
&lt;P&gt;About the different OSC module modes, please check the chip reference manual, take K22 as an example, please check chapter&amp;nbsp;26.8.2 OSC module modes.&lt;/P&gt;
&lt;P&gt;26.8.2.3 High-Frequency, High-Gain Mode&lt;BR /&gt;In high-frequency, high-gain mode, the oscillator uses a simple inverter-style amplifier.&lt;BR /&gt;The gain is set to achieve rail-to-rail oscillation amplitudes. This mode provides low pass&lt;BR /&gt;frequency filtering as well as hysteresis for voltage filtering and converts the output to&lt;BR /&gt;logic levels. In this mode, the internal capacitors could be used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;26.8.2.4 High-Frequency, Low-Power Mode&lt;BR /&gt;In high-frequency, low-power mode, the oscillator uses a gain control loop to minimize&lt;BR /&gt;power consumption. As the oscillation amplitude increases, the amplifier current is&lt;BR /&gt;reduced. This continues until a desired amplitude is achieved at steady-state. In this&lt;BR /&gt;mode, the internal capacitors could be used, the internal feedback resistor is connected,&lt;BR /&gt;and no external resistor should be used.&lt;BR /&gt;The oscillator input buffer in this mode is differential. It provides low pass frequency&lt;BR /&gt;filtering as well as hysteresis for voltage filtering and converts the output to logic levels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you have issues, do you check your crystal pin, whether it is oscillating or not?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 07:39:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Using-OSERCLK-with-High-Range-Crystal-8-32-MHz/m-p/1132937#M57939</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-01T07:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis: Using OSERCLK with High Range Crystal (8-32 MHz)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Using-OSERCLK-with-High-Range-Crystal-8-32-MHz/m-p/1149176#M57988</link>
      <description>&lt;P&gt;Using 12 MHz crystal in High Gain mode, if I try enabling OSERCLK, then function call CLOCK_BootToPeeMode() always gets stuck in below section of code:&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;&lt;FONT face="courier new,courier" size="3"&gt;/* Change to use PLL output clock. */&amp;nbsp;&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="courier new,courier" size="3"&gt;MCG-&amp;gt;C1 = (MCG-&amp;gt;C1 &amp;amp; ~MCG_C1_CLKS_MASK) | MCG_C1_CLKS(kMCG_ClkOutSrcOut);&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="courier new,courier" size="3"&gt;while (MCG_S_CLKST_VAL != kMCG_ClkOutStatPll)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="courier new,courier" size="3"&gt;{&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT face="courier new,courier" size="3"&gt;}&lt;/FONT&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Crystal pins were checked and 12 MHz frequency was there.&lt;/DIV&gt;&lt;DIV&gt;Issue does not occur if I use 12MHz crystal in Low Power mode.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;At the time error was occurring, I forgot to mention that the internal load capacitors were not enabled. Crystal was rated for 18 pF load capacitance. After enabling load capacitors the frequency error greatly improved. I am still using Low Power Mode and haven't tried High Gain Mode since.&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Sep 2020 22:44:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Using-OSERCLK-with-High-Range-Crystal-8-32-MHz/m-p/1149176#M57988</guid>
      <dc:creator>lsrbigfoot</dc:creator>
      <dc:date>2020-09-04T22:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Kinetis: Using OSERCLK with High Range Crystal (8-32 MHz)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Using-OSERCLK-with-High-Range-Crystal-8-32-MHz/m-p/1149384#M57994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/13847" target="_self"&gt;lsrbigfoot&lt;/A&gt;，&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; Which IDE you are using?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; If you are using the MCUXPresso IDE, you can check the clock diagram, whether your PLL output is in the 110Mhz to 240Mhz range.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124462i6A6385A169E02F16/image-size/large?v=v2&amp;amp;px=999" role="button" title="12.jpg" alt="12.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;From your stuck point, it is related to the PLL is not locked OK.&lt;/P&gt;
&lt;P&gt;You also can check the related PLL factor, whether the output will exceed the datasheet's range or not.&lt;/P&gt;
&lt;P&gt;After you enable the load capacitor, it has the improvement, whether the issue can be solved?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you!&lt;/P&gt;
&lt;P&gt;If you still have questions about it, please kindly let me know!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;/P&gt;
&lt;P&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;/P&gt;
&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 02:57:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Kinetis-Using-OSERCLK-with-High-Range-Crystal-8-32-MHz/m-p/1149384#M57994</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2020-09-07T02:57:41Z</dc:date>
    </item>
  </channel>
</rss>

