<?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: Problem configuring K20 to use an external crystal... in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198059#M2767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I have no scope right now where I am, sorry.&lt;/P&gt;&lt;P&gt;I mean if you take off the R25 resistor, the clock settings *have* to use low power mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I mean is that the HGO0 bit below must be set to zero:&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* MCG_C2: LOCRE0=0,??=0,RANGE0=2,HGO0=0,EREFS0=1,LP=0,IRCS=1 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; MCG_C2 = (MCG_C2_RANGE0(0x02) | MCG_C2_EREFS0_MASK | MCG_C2_IRCS_MASK);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;See &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/2012/10/07/tutorial-usb-cdc-with-the-kl25z-freedom-board/"&gt;Tutorial: USB CDC with the KL25Z Freedom Board | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Erich&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2012 19:49:48 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2012-10-25T19:49:48Z</dc:date>
    <item>
      <title>Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198050#M2758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We've had trouble nailing down our system clock speed when the board heats up (turns out there's an errata on that) but, fortunately, we've got a 32k crystal hooked up to [E]XTAL32 for a RTC we didn't end up using. So, as far as I can tell, we can route the RTC through to the FLL clock to get a 96Mhz system clock.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My original code didn't work, and neither did the code I pulled from processorexpert so I'm left assuming I've stuffed up somewhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I've pulled from PE:&lt;/P&gt;&lt;DIV class="lia-spoiler-container"&gt;&lt;A class="lia-spoiler-link" href="http://forums.freescale.com/#" rel="nofollow"&gt;Spoiler&lt;/A&gt;&lt;NOSCRIPT&gt;(Highlight to read)&lt;/NOSCRIPT&gt;&lt;DIV class="lia-spoiler-border"&gt;&lt;DIV class="lia-spoiler-content"&gt;&lt;P&gt;SIM_SCGC6 |= (uint32_t)0x20000000UL;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if ((RTC_CR &amp;amp; RTC_CR_OSCE_MASK) == 0u) { /* Only if the OSCILLATOR is not already enabled */&lt;BR /&gt;&amp;nbsp; /* RTC_CR: SC2P=0,SC4P=1,SC8P=1,SC16P=0 */&lt;BR /&gt;&amp;nbsp; RTC_CR &amp;amp;= (uint32_t)~0x3C00UL;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; RTC_CR|=(0b0110&amp;lt;&amp;lt;10);&lt;BR /&gt;&amp;nbsp; /* RTC_CR: OSCE=1 */&lt;BR /&gt;&amp;nbsp; RTC_CR |= (uint32_t)0x0100UL;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; /* RTC_CR: CLKO=1 */&lt;BR /&gt;&amp;nbsp; RTC_CR |= (uint32_t)0x0200UL;&amp;nbsp;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Disable the WDOG module */&lt;BR /&gt;/* WDOG_UNLOCK: WDOGUNLOCK=0xC520 */&lt;BR /&gt;WDOG_UNLOCK = (uint16_t)0xC520U; /* Key 1 */&lt;BR /&gt;/* WDOG_UNLOCK : WDOGUNLOCK=0xD928 */&lt;BR /&gt;WDOG_UNLOCK = (uint16_t)0xD928U; /* Key 2 */&lt;BR /&gt;/* WDOG_STCTRLH: ??=0,DISTESTWDOG=0,BYTESEL=0,TESTSEL=0,TESTWDOG=0,??=0,STNDBYEN=1,WAITEN=1,STOPEN=1,DBGEN=0,ALLOWUPDATE=1,WINEN=0,IRQRSTEN=0,CLKsrc=1,WDOGEN=0 */&lt;BR /&gt;WDOG_STCTRLH = (uint16_t)0x01D2U;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;/* System clock initialization */&lt;BR /&gt;/* SIM_CLKDIV1: OUTDIV1=0,OUTDIV2=1,OUTDIV3=3,OUTDIV4=3,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0 */&lt;BR /&gt;SIM_CLKDIV1 = (uint32_t)0x01330000UL; /* Update system prescalers */&lt;BR /&gt;/* SIM_CLKDIV2: USBDIV=1,USBFRAC=0 */&lt;BR /&gt;SIM_CLKDIV2 = (uint32_t)((SIM_CLKDIV2 &amp;amp; (uint32_t)~0x0DUL) | (uint32_t)0x02UL); /* Update USB clock prescalers */&lt;BR /&gt;/* SIM_SOPT2: PLLFLLSEL=0 */&lt;BR /&gt;SIM_SOPT2 &amp;amp;= (uint32_t)~0x00010000UL; /* Select FLL as a clock source for various peripherals */&lt;BR /&gt;/* SIM_SOPT1: OSC32KSEL=1 */&lt;BR /&gt;SIM_SOPT1 |= (uint32_t)0x00080000UL; /* RTC oscillator drives 32 kHz clock for various peripherals */&lt;BR /&gt;/* Switch to FEE Mode */&lt;BR /&gt;/* OSC_CR: ERCLKEN=0,??=0,EREFSTEN=0,??=0,SC2P=0,SC4P=0,SC8P=0,SC16P=0 */&lt;BR /&gt;OSC_CR = (uint8_t)0x00U;&amp;nbsp;&lt;BR /&gt;/* SIM_SOPT2: MCGCLKSEL=1 */&lt;BR /&gt;SIM_SOPT2 |= (uint32_t)0x01UL;&lt;BR /&gt;SIM_SOPT2=1;&lt;BR /&gt;&lt;BR /&gt;/* MCG_C2: ??=0,??=0,RANGE=0,HGO=0,EREFS=0,LP=0,IRCS=0 */&lt;BR /&gt;MCG_C2 = (uint8_t)0x00U;&amp;nbsp;&lt;BR /&gt;/* MCG_C1: CLKS=0,FRDIV=0,IREFS=0,IRCLKEN=1,IREFSTEN=0 */&lt;BR /&gt;MCG_C1 = (uint8_t)0x00U;&amp;nbsp;&lt;BR /&gt;/* MCG_C4: DMX32=1,DRST_DRS=3 */&lt;BR /&gt;MCG_C4 |= (uint8_t)0xE0U;&amp;nbsp;&lt;BR /&gt;/* MCG_C5: ??=0,PLLCLKEN=0,PLLSTEN=0,PRDIV=0 */&lt;BR /&gt;MCG_C5 = (uint8_t)0x00U;&amp;nbsp;&lt;BR /&gt;/* MCG_C6: LOLIE=0,PLLS=0,CME=0,VDIV=0 */&lt;BR /&gt;MCG_C6 = (uint8_t)0x00U;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while((MCG_S &amp;amp; MCG_S_IREFST_MASK) != 0x00U); /* Check that the source of the FLL reference clock is the external reference clock. */&lt;BR /&gt;while((MCG_S &amp;amp; 0x0CU) != 0x00U); /* Wait until output of the FLL is selected */&lt;/P&gt;&lt;/DIV&gt;&lt;NOSCRIPT&gt;&lt;DIV class="lia-spoiler-noscript-container"&gt;&lt;DIV class="lia-spoiler-noscript-content"&gt;SIM_SCGC6 |= (uint32_t)0x20000000UL;&amp;nbsp;if ((RTC_CR &amp;amp; RTC_CR_OSCE_MASK) == 0u) { /* Only if the OSCILLATOR is not already enabled */&amp;nbsp; /* RTC_CR: SC2P=0,SC4P=1,SC8P=1,SC16P=0 */&amp;nbsp; RTC_CR &amp;amp;= (uint32_t)~0x3C00UL;&amp;nbsp;&amp;nbsp; RTC_CR|=(0b0110&amp;lt;&amp;lt;10);&amp;nbsp; /* RTC_CR: OSCE=1 */&amp;nbsp; RTC_CR |= (uint32_t)0x0100UL;&amp;nbsp;&amp;nbsp; /* RTC_CR: CLKO=1 */&amp;nbsp; RTC_CR |= (uint32_t)0x0200UL;&amp;nbsp;}/* Disable the WDOG module *//* WDOG_UNLOCK: WDOGUNLOCK=0xC520 */WDOG_UNLOCK = (uint16_t)0xC520U; /* Key 1 *//* WDOG_UNLOCK : WDOGUNLOCK=0xD928 */WDOG_UNLOCK = (uint16_t)0xD928U; /* Key 2 *//* WDOG_STCTRLH: ??=0,DISTESTWDOG=0,BYTESEL=0,TESTSEL=0,TESTWDOG=0,??=0,STNDBYEN=1,WAITEN=1,STOPEN=1,DBGEN=0,ALLOWUPDATE=1,WINEN=0,IRQRSTEN=0,CLKsrc=1,WDOGEN=0 */WDOG_STCTRLH = (uint16_t)0x01D2U;&amp;nbsp;/* System clock initialization *//* SIM_CLKDIV1: OUTDIV1=0,OUTDIV2=1,OUTDIV3=3,OUTDIV4=3,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0 */SIM_CLKDIV1 = (uint32_t)0x01330000UL; /* Update system prescalers *//* SIM_CLKDIV2: USBDIV=1,USBFRAC=0 */SIM_CLKDIV2 = (uint32_t)((SIM_CLKDIV2 &amp;amp; (uint32_t)~0x0DUL) | (uint32_t)0x02UL); /* Update USB clock prescalers *//* SIM_SOPT2: PLLFLLSEL=0 */SIM_SOPT2 &amp;amp;= (uint32_t)~0x00010000UL; /* Select FLL as a clock source for various peripherals *//* SIM_SOPT1: OSC32KSEL=1 */SIM_SOPT1 |= (uint32_t)0x00080000UL; /* RTC oscillator drives 32 kHz clock for various peripherals *//* Switch to FEE Mode *//* OSC_CR: ERCLKEN=0,??=0,EREFSTEN=0,??=0,SC2P=0,SC4P=0,SC8P=0,SC16P=0 */OSC_CR = (uint8_t)0x00U;&amp;nbsp;/* SIM_SOPT2: MCGCLKSEL=1 */SIM_SOPT2 |= (uint32_t)0x01UL;SIM_SOPT2=1;/* MCG_C2: ??=0,??=0,RANGE=0,HGO=0,EREFS=0,LP=0,IRCS=0 */MCG_C2 = (uint8_t)0x00U;&amp;nbsp;/* MCG_C1: CLKS=0,FRDIV=0,IREFS=0,IRCLKEN=1,IREFSTEN=0 */MCG_C1 = (uint8_t)0x00U;&amp;nbsp;/* MCG_C4: DMX32=1,DRST_DRS=3 */MCG_C4 |= (uint8_t)0xE0U;&amp;nbsp;/* MCG_C5: ??=0,PLLCLKEN=0,PLLSTEN=0,PRDIV=0 */MCG_C5 = (uint8_t)0x00U;&amp;nbsp;/* MCG_C6: LOLIE=0,PLLS=0,CME=0,VDIV=0 */MCG_C6 = (uint8_t)0x00U;&amp;nbsp;while((MCG_S &amp;amp; MCG_S_IREFST_MASK) != 0x00U); /* Check that the source of the FLL reference clock is the external reference clock. */while((MCG_S &amp;amp; 0x0CU) != 0x00U); /* Wait until output of the FLL is selected */&lt;/DIV&gt;&lt;/DIV&gt;&lt;/NOSCRIPT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code hangs on the second-last line there, waiting for the status bit to set to show the external reference has been selected. Debugger shows the MCG_C1-&amp;gt;IREFS=0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jan 2012 12:04:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198050#M2758</guid>
      <dc:creator>Alex_HMBE</dc:creator>
      <dc:date>2012-01-16T12:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198051#M2759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with the FRDM-KL25Z board and I'm having the same problem trying to make it work with an 8 MHz external crystal. The code stops at the same line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you able to solve this? I'd appreciate any helpful tips.&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, 23 Oct 2012 16:17:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198051#M2759</guid>
      <dc:creator>luisgallegos</dc:creator>
      <dc:date>2012-10-23T16:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198052#M2760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a problem with the clock circuits on two boards: one had a 1 MOhm Resistor populated, one not. Because of this, I had to configure to 'low power' mode if the resistor was not present, and in 'high gain' mode if the resistor was present (see the R25 resistor in this post: &lt;A href="http://mcuoneclipse.wordpress.com/2012/10/07/tutorial-usb-cdc-with-the-kl25z-freedom-board/" title="http://mcuoneclipse.wordpress.com/2012/10/07/tutorial-usb-cdc-with-the-kl25z-freedom-board/"&gt;Tutorial: USB CDC with the KL25Z Freedom Board | MCU on Eclipse&lt;/A&gt;). Otherwise the code was hanging in exact that location.&lt;/P&gt;&lt;P&gt;So if this happens, it is worth a try to configure the clock either as low power or as high gain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 20:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198052#M2760</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-10-23T20:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198053#M2761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Erich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yep it's me, luismgc, the one who was bothering you with all those questions in the blog post :smileyblush:. It did help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 20:28:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198053#M2761</guid>
      <dc:creator>luisgallegos</dc:creator>
      <dc:date>2012-10-23T20:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198054#M2762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have posted the code to set up the Freedom Board clock for 48 Mhz from the 8Mhz rock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/301328"&gt;Post with code.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 02:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198054#M2762</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2012-10-24T02:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198055#M2763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. The problem was a hardware issue. Apparently my board came with one resistor missing so the configurations were supposed to be different than the ones on the tutorial I was using to set it up. You can see Erich Styger's response in this thread for the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway for the code. Might come in handy later on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 14:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198055#M2763</guid>
      <dc:creator>luisgallegos</dc:creator>
      <dc:date>2012-10-25T14:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198056#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the board with R25 populated on. I enabled the external crystal 8MHz. I used scope to see the output from external crystal. Because R25 is populated, I can see the output from external crystal only set to high gain mode. If I set to low power mode. the output from external crystal is just noise. This is what I observed. Now, I unpopulated R25 resistor. regarding to what you said, it has to be set to low power mode. but whatever I set to low power or high gain, the output from external crystal is just noise. &lt;/P&gt;&lt;P&gt;Do you have any idea why it behaves like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 16:51:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198056#M2764</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-10-25T16:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198057#M2765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Are you talking about the FRDM-KL25Z Freedom board?&lt;/P&gt;&lt;P&gt;What you say about the R25 installed makes sense: it works only in high gain mode. And this confirms what you see. But for me without R25, it only works in low power mode. I have not measured it, but I would see only noise too. But with low power mode my Cpu works. Maybe your code did not set the low power bit (have you recompiled the project?).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 19:15:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198057#M2765</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-10-25T19:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198058#M2766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I am working on the FRDM-KL25Z EV. board&lt;/P&gt;&lt;P&gt;firstly thank you reply to me.&lt;/P&gt;&lt;P&gt;do you mean if i take off the R25 resister, I have to set to low power mode, right? I am pretty sure it is set to low power mode in VLLS3 mode. and enabled OSC0ERCLK IN STOP. after I compiled it, and run. I put the probe on the pin41(XTAL) the output of external crystall. There is just noise shown on the scope. I expect the 8MHz signal tho. Did you try to see on the scope?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 19:45:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198058#M2766</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-10-25T19:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198059#M2767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I have no scope right now where I am, sorry.&lt;/P&gt;&lt;P&gt;I mean if you take off the R25 resistor, the clock settings *have* to use low power mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I mean is that the HGO0 bit below must be set to zero:&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* MCG_C2: LOCRE0=0,??=0,RANGE0=2,HGO0=0,EREFS0=1,LP=0,IRCS=1 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; MCG_C2 = (MCG_C2_RANGE0(0x02) | MCG_C2_EREFS0_MASK | MCG_C2_IRCS_MASK);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;See &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/2012/10/07/tutorial-usb-cdc-with-the-kl25z-freedom-board/"&gt;Tutorial: USB CDC with the KL25Z Freedom Board | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Erich&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 19:49:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198059#M2767</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-10-25T19:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198060#M2768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked, HGO0 = 0;&lt;/P&gt;&lt;P&gt;but it is not oscillate in low power operating mode for some reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 21:41:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198060#M2768</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-10-25T21:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem configuring K20 to use an external crystal...</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198061#M2769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;figured it out~~&lt;/P&gt;&lt;P&gt;Thank you for reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2012 19:08:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-configuring-K20-to-use-an-external-crystal/m-p/198061#M2769</guid>
      <dc:creator>pengliang</dc:creator>
      <dc:date>2012-10-26T19:08:55Z</dc:date>
    </item>
  </channel>
</rss>

