<?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 Re: Activating the XTAL output on K61 chip in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218161#M3867</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Are you using a while loop to check MCG_S[OSCINIT0] status, and the code is pending there for it is never set?&amp;nbsp; Please make sure that MCG swithed to FBE/BLPE mode correctly after you have seen the external clock activated. And also, you may share your code with us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2012 01:16:13 GMT</pubDate>
    <dc:creator>zhaohuiliu</dc:creator>
    <dc:date>2012-12-31T01:16:13Z</dc:date>
    <item>
      <title>Activating the XTAL output on K61 chip</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218158#M3864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have built a custom board that has a MK61FN1M0CAA12 chip.&amp;nbsp; We want to use the OSC0 external crystal as the reference for the system clocks, but we cannot get the chip to activate the crystal, and by activate I mean put a DC voltage on the XTAL0 pin.&amp;nbsp; Without the DC voltage the crystal does not, of course, oscillate.&amp;nbsp; I have rechecked the layout and actual hardware and everything looks correct as far as I can tell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have done the following:&lt;/P&gt;&lt;P&gt;1) Verify that PORTA_PCR18 and PORTA_PCR19 (the pins that XTAL0 and EXTAL0 use) are 0.&lt;/P&gt;&lt;P&gt;2) Write 0xA2 to OSC_CR (enable the oscillator, introduce an 8 pF load).&lt;/P&gt;&lt;P&gt;3) Write 0x1C to MCG_C2 (crystal, high-gain, high frequency range)&lt;/P&gt;&lt;P&gt;4) Write 0xA0 to MCG_C1 (selects external reference as system clock source, sets FRDIV such that clock is in right range, enables oscillator)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing all of these things from CodeWarrior using the Multilink Universal debugger.&amp;nbsp; I assume that the chip's clocking state machine can transition in this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The one clear mistake that we have made is to pick a 20 MHz crystal oscillator, which can't be divided down to 32 kHz.&amp;nbsp; We will replace it with a 16 MHz crystal, or some other appropriate frequency.&amp;nbsp; But seeing as how the crystal isn't even oscillating yet, I don't think that that is the problem at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: I forgot to mention that the MCG_S[OSCINIT0] value never goes to 1, which is expected since the crystal never oscillates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jim Clay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 14:00:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218158#M3864</guid>
      <dc:creator>jimclay</dc:creator>
      <dc:date>2012-12-27T14:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Activating the XTAL output on K61 chip</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218159#M3865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Comments for step 3)&lt;/P&gt;&lt;P&gt; a. should set to very high range 0x2C(high range is from 8-32MHz, if you have K61 datasheet, you can get these values)&lt;/P&gt;&lt;P&gt; b. make sure you have the feedback resistors as datasheet mentioned if you set high gain mode, otherwise, just use low gain mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Commets for step 4)&lt;/P&gt;&lt;P&gt; a. Make sure MCG_S[OSCINIT0] is set before you want to change MCG mode by writing MCG_C1 with 0xA0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Feel free to let us know your result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 01:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218159#M3865</guid>
      <dc:creator>zhaohuiliu</dc:creator>
      <dc:date>2012-12-28T01:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Activating the XTAL output on K61 chip</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218160#M3866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;zhaohuiliu,&lt;/P&gt;&lt;P&gt;Writing 0x2C instead of 0x1C did the trick.&amp;nbsp; The crystal is now being activated and oscillates nicely.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCG_S[OSCINIT0] is still not being set, though.&amp;nbsp; Do you know what could cause that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 15:04:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218160#M3866</guid>
      <dc:creator>jimclay</dc:creator>
      <dc:date>2012-12-28T15:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Activating the XTAL output on K61 chip</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218161#M3867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Are you using a while loop to check MCG_S[OSCINIT0] status, and the code is pending there for it is never set?&amp;nbsp; Please make sure that MCG swithed to FBE/BLPE mode correctly after you have seen the external clock activated. And also, you may share your code with us.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 01:16:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218161#M3867</guid>
      <dc:creator>zhaohuiliu</dc:creator>
      <dc:date>2012-12-31T01:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Activating the XTAL output on K61 chip</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218162#M3868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can we tell if it has transitioned to FBE/BLPE correctly?&amp;nbsp; I was just doing the register manipulations "by hand" via the Codewarrior debugger, so the debugger may not have updated the register value correctly.&amp;nbsp; I will try it via code soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 16:21:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Activating-the-XTAL-output-on-K61-chip/m-p/218162#M3868</guid>
      <dc:creator>jimclay</dc:creator>
      <dc:date>2013-01-03T16:21:31Z</dc:date>
    </item>
  </channel>
</rss>

