<?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: Using crystal instead of clock generator with K60F120M</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369478#M19082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RTC oscillator is needed for such case, that might add a little bit cost for a 32.768KHz crystal, but you may configure the clock as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46190i7878821DD851ECA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also successfully implemented it based on TWR-K70, you may try it as well on TWR-K60F120M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&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>Mon, 22 Sep 2014 08:42:32 GMT</pubDate>
    <dc:creator>Kan_Li</dc:creator>
    <dc:date>2014-09-22T08:42:32Z</dc:date>
    <item>
      <title>Using crystal instead of clock generator with K60F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369473#M19077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom board based on the K60F120M tower board, which has an clock generator on XTAL0/EXTAL0, and a crystal on XTAL1/EXTAL1.&amp;nbsp; I left off the external clock, and have only the crystal, but unfortunately I left it on XTAL1/EXTAL1, and now it seems like that won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I change to use XTAL0/EXTAL0, the basic tower board demo projects don't run anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is it possible to run the device off a crystal on XTAL1/EXTAL1 pins only?&amp;nbsp; From reviewing the reference manual, it looks like XTAL1/EXTAL1 can only drive some peripherals, and not all internal clocks.&amp;nbsp; Is this right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Assuming I move the crystal to the XTAL0/EXTAL0 pins, is there some clock configuration change I need to make to work off the crystal as opposed to a clock input?&amp;nbsp; I noticed some settings such as gain, etc., but I tried various things and couldn't get it starting.&amp;nbsp; It stalls in __pe_initialize_hardware of bsp_cm.c in a while loop waiting for a required clock condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 03:37:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369473#M19077</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2014-09-16T03:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using crystal instead of clock generator with K60F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369474#M19078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it is possible to run the device off a crystal on XTAL1/EXTAL1 pins only, MCGPLL1CLK is one of the alternative clock sources for MCGOUTCLK, so it can be used to drive all the on-chip peripherals. and if you move the crystal to XTAL0/EXTAL0 pins， there should be changes in the code for original reference clock configuration, you may refer to the demos in C:\Freescale\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\Kinetis\TWR-K40X256 for details, since TWR-K40X256 uses a 8MHz crystal connected with XTAL/EXTAL pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&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>Tue, 16 Sep 2014 05:30:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369474#M19078</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-09-16T05:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using crystal instead of clock generator with K60F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369475#M19079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Kan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I couldn't find that folder in CW10.5 so I'll install 10.6 and check again.&amp;nbsp; In the meantime I tried to create a new PE project to let it generate code for my configuration and see what it looks like, but I wasn't too sure about how it should be configured since there are so many options.&amp;nbsp; Going through the manual is somewhat helping but again there is a lot going on and I'm not familiar enough with the entire clock tree to know what options to use, e.g. FEI, FEE, PBE, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If I leave the crystal on the same XTAL1/ETXAL1 pins I have it on now, what registers should I be looking at to change it from external clock to crystal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 17:48:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369475#M19079</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2014-09-16T17:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using crystal instead of clock generator with K60F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369476#M19080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to my experience on PE, I think you may configure the clock source from ref clock to crystal by the following steps:&lt;/P&gt;&lt;P&gt;1. change system oscillator:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46007iF7276A06CFC7DC86/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.change MCG mode and PLLx&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46008iF6F282C377E32CB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3.Set PLL output freq:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46009iFFA86D2F4360B50A/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;4.Set system clocks:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46010iAE66CC5329E466F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&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, 17 Sep 2014 05:40:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369476#M19080</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-09-17T05:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using crystal instead of clock generator with K60F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369477#M19081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Kan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It looks like you have it set to use XTAL0.&amp;nbsp; If I try to set it up using XTAL1, I'm not able to select oscillator 1 for the MCG reference clock.&amp;nbsp; Please see the attached image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Using the demo project for the K60 tower board, on my custom board that has a 12MHz crystal on XTAL1, and nothing on XTAL0, the crystal oscillates but the device doesn't run.&amp;nbsp; I tried to redirect the clock to MCG (as shown in the image, and also changing MCG control registers directly), but I can't get it to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If I rewire the crystal to XTAL0, it doesn't oscillate.&amp;nbsp; I enabled the PORTA_PCR19 MUX (since it was getting a reference clock on one pin only and not a crystal connection on the tower), and I enabled the oscillator (EREFS0=1 in MCG_C2), but I still don't get the crystal oscillating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm not sure what to try next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="K60 PE clock setup.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46018i4D161A72954F450E/image-size/large?v=v2&amp;amp;px=999" role="button" title="K60 PE clock setup.jpg" alt="K60 PE clock setup.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 14:43:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369477#M19081</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2014-09-17T14:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using crystal instead of clock generator with K60F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369478#M19082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The RTC oscillator is needed for such case, that might add a little bit cost for a 32.768KHz crystal, but you may configure the clock as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46190i7878821DD851ECA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also successfully implemented it based on TWR-K70, you may try it as well on TWR-K60F120M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&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>Mon, 22 Sep 2014 08:42:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369478#M19082</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-09-22T08:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using crystal instead of clock generator with K60F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369479#M19083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you know if this would mean that I still need an oscillator on XTAL1?&amp;nbsp; I.e. the PLL reference select options are OSC0 or OSC1, so I assume I can't just run everything off the RTC crystal only, correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 13:56:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369479#M19083</guid>
      <dc:creator>ARQuattr</dc:creator>
      <dc:date>2014-09-26T13:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using crystal instead of clock generator with K60F120M</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369480#M19084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angelo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the crystal on XTAL1 is still needed , with a RTC crystal on the RTC oscillator you may use PLL1 in PEE mode, and generate system clock, bus clock , DDR2 clock for associated modules.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&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>Sun, 28 Sep 2014 02:19:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Using-crystal-instead-of-clock-generator-with-K60F120M/m-p/369480#M19084</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2014-09-28T02:19:24Z</dc:date>
    </item>
  </channel>
</rss>

