<?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: How can I set the MKL02Z to 48MHZ using FEI.</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303224#M12795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for taking the time to reply. I had written the code from the RM, but then installed Processor Expert 10_4. I am using GNU tools and Eclipse.&lt;/P&gt;&lt;P&gt;I'm relived to know it is possible but now confused as to why it will not allow me to set it in PE. If it wont set it correctly in PE then I cant set the clocks correct for my peripheral. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2014 06:13:33 GMT</pubDate>
    <dc:creator>clivepalmer</dc:creator>
    <dc:date>2014-05-23T06:13:33Z</dc:date>
    <item>
      <title>How can I set the MKL02Z to 48MHZ using FEI.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303221#M12792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to set my MKL02Z16 to run at 48MHZ using the internal clock (FEI mode). I had written the code manually and had set MCG_C4 to have DRST_DRS to MID range&amp;nbsp; (01) and DMX32 to 1. Looking a the register description it suggested that this would give a FLL factor of 1464 and using the slow refrerence clock of 32.768KHZ I would get a DCO of approx. 48MHZ, and hence a MCGFLLCLK of 48MHZ. &lt;/P&gt;&lt;P&gt;I have just run through an exercise on processor expert to check my settings and although it will allow me to set a FLL factor of 1464 and does shows the correct 48MHZ frequency. It tells me it is not possible to set the requested value in the Problems Eclipse warning panel. This puzzles me. What have I overlooked or done wrong? How do I get 48MHz or is this not possible on the KL02 part?&lt;/P&gt;&lt;P&gt;I need to resolve this as all my peripheral clock have been set based upon a MCGFLLCLK of 48MHZ.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Clive&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 07:49:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303221#M12792</guid>
      <dc:creator>clivepalmer</dc:creator>
      <dc:date>2014-05-22T07:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set the MKL02Z to 48MHZ using FEI.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303222#M12793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clive,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using Processor Expert from within CodeWarrior or the separate tool?&amp;nbsp; Current versions are:&lt;/P&gt;&lt;P&gt;- CodeWarrior for Microcontrollers v10.6 (with Processor Expert integrated within)&lt;/P&gt;&lt;P&gt;- Processor Expert Software, Microcontroller Driver Suite v10.4 (stand alone tool version)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked both of these and I do not see the error which you mention.&amp;nbsp; Both generate the same code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 8pt; font-family: courier new,courier;"&gt;&amp;nbsp; /* System clock initialization */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 8pt; font-family: courier new,courier;"&gt;&amp;nbsp; /* SIM_CLKDIV1: OUTDIV1=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,OUTDIV4=3,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; SIM_CLKDIV1 = (SIM_CLKDIV1_OUTDIV1(0x00) | SIM_CLKDIV1_OUTDIV4(0x03)); &lt;SPAN style="color: #008080;"&gt;/* Set the system prescalers to safe value */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 8pt; font-family: courier new,courier;"&gt;&amp;nbsp; /* SIM_SCGC5: PORTB=1,PORTA=1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; SIM_SCGC5 |= (SIM_SCGC5_PORTB_MASK | SIM_SCGC5_PORTA_MASK); &lt;SPAN style="color: #008080;"&gt;/* Enable clock gate for ports to enable pin routing */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt;if&lt;/SPAN&gt; ((PMC_REGSC &amp;amp; PMC_REGSC_ACKISO_MASK) != 0x0U) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* PMC_REGSC: ACKISO=1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMC_REGSC |= PMC_REGSC_ACKISO_MASK; &lt;SPAN style="color: #008080;"&gt;/* Release IO pads after wakeup from VLLS mode. */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 8pt; font-family: courier new,courier;"&gt;&amp;nbsp; /* SIM_CLKDIV1: OUTDIV1=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,OUTDIV4=1,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0,??=0 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; SIM_CLKDIV1 = (SIM_CLKDIV1_OUTDIV1(0x00) | SIM_CLKDIV1_OUTDIV4(0x01)); &lt;SPAN style="color: #008080;"&gt;/* Update system prescalers */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #008080;"&gt;/* SIM_SOPT2: TPMSRC=1 */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; SIM_SOPT2 = (uint32_t)((SIM_SOPT2 &amp;amp; (uint32_t)~(uint32_t)(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&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; SIM_SOPT2_TPMSRC(0x02)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&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; )) | (uint32_t)(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&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; SIM_SOPT2_TPMSRC(0x01)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&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;SPAN style="color: #008080;"&gt;/* Set the TPM clock */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 8pt; font-family: courier new,courier;"&gt;&amp;nbsp; /* Switch to FEI Mode */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 8pt; font-family: courier new,courier;"&gt;&amp;nbsp; /* MCG_C1: CLKS=0,FRDIV=0,IREFS=1,IRCLKEN=1,IREFSTEN=0 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; MCG_C1 = MCG_C1_CLKS(0x00) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C1_FRDIV(0x00) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C1_IREFS_MASK |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C1_IRCLKEN_MASK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 8pt; font-family: courier new,courier;"&gt;&amp;nbsp; /* MCG_C2: LOCRE0=0,RANGE0=0,HGO0=0,EREFS0=0,LP=0,IRCS=0 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; MCG_C2 &amp;amp;= (uint8_t)~(uint8_t)(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C2_LOCRE0_MASK |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C2_RANGE0(0x03) |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C2_HGO0_MASK |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C2_EREFS0_MASK |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C2_LP_MASK |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C2_IRCS_MASK&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 8pt; font-family: courier new,courier;"&gt;&amp;nbsp; /* MCG_C4: DMX32=1,DRST_DRS=1 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; MCG_C4 = (uint8_t)((MCG_C4 &amp;amp; (uint8_t)~(uint8_t)(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C4_DRST_DRS(0x02)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )) | (uint8_t)(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C4_DMX32_MASK |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MCG_C4_DRST_DRS(0x01)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 8pt; font-family: courier new,courier;"&gt;&amp;nbsp; /* OSC0_CR: ERCLKEN=1,??=0,EREFSTEN=0,??=0,SC2P=0,SC4P=0,SC8P=0,SC16P=0 */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; OSC0_CR = OSC_CR_ERCLKEN_MASK;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt;while&lt;/SPAN&gt;((MCG_S &amp;amp; MCG_S_IREFST_MASK) == 0x00U) { &lt;SPAN style="color: #008080;"&gt;/* Check that the source of the FLL reference clock is the internal reference clock. */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; &lt;SPAN style="color: #800080;"&gt;while&lt;/SPAN&gt;((MCG_S &amp;amp; 0x0CU) != 0x00U) {&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008080;"&gt; /* Wait until output of the FLL is selected */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 8pt;"&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that the maximum bus frequency is 24MHz.&amp;nbsp; Here is how I configured this in CodeWarrior:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_21.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43710iB3E237B8202BFD62/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_21.png" alt="pastedImage_21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Derrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2014 16:31:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303222#M12793</guid>
      <dc:creator>Derrick</dc:creator>
      <dc:date>2014-05-22T16:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set the MKL02Z to 48MHZ using FEI.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303223#M12794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set the KL02 clock to 48MHz the uTasker project does this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OSC_CR = 0xa0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MCG_CR = 0x84&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- wait for crystal source to be selected&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SIM_CLKDIV1 = 0x00010000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MCG_C4 = 0xa0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // FLL factor 1464&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MCG_C1 = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- wait until FLL source becomes valid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- wait until FLL cource is no longer the internal clock&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the external 32kHz ocillator is not used the same FLL settings are valid - but the range of the frequency tolerance is quite large.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works reliably and the uTasker simulator checks that no values are out of range, so 1464 should not be an issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 02:07:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303223#M12794</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-05-23T02:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set the MKL02Z to 48MHZ using FEI.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303224#M12795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for taking the time to reply. I had written the code from the RM, but then installed Processor Expert 10_4. I am using GNU tools and Eclipse.&lt;/P&gt;&lt;P&gt;I'm relived to know it is possible but now confused as to why it will not allow me to set it in PE. If it wont set it correctly in PE then I cant set the clocks correct for my peripheral. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 06:13:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303224#M12795</guid>
      <dc:creator>clivepalmer</dc:creator>
      <dc:date>2014-05-23T06:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How can I set the MKL02Z to 48MHZ using FEI.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303225#M12796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clive,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest comparing your Processor Expert screen to mine (from CodeWarrior v10.6).&amp;nbsp; There may be something slightly different.&amp;nbsp; As I state, I don't get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only changes that I made from the default configuration were:&lt;/P&gt;&lt;P&gt;1) change Clock settings &amp;gt; Clock source settings &amp;gt; Clock source setting 0 &amp;gt; MCG settings &amp;gt; FLL settings &amp;gt; &lt;STRONG&gt;FLL output (MHz)&lt;/STRONG&gt;&amp;nbsp; to&amp;nbsp; "48"&amp;nbsp; - which gets translated to "47.972352"&lt;/P&gt;&lt;P&gt;2) change Clock configurations &amp;gt; Clock configuration 0 &amp;gt; System clocks &amp;gt; &lt;STRONG&gt;Core clock&lt;/STRONG&gt;&amp;nbsp; to&amp;nbsp; "48"&amp;nbsp; - which gets translated to "47.972352"&lt;/P&gt;&lt;P&gt;3) change Clock configurations &amp;gt; Clock configuration 0 &amp;gt; System clocks &amp;gt; &lt;STRONG&gt;Bus clock&lt;/STRONG&gt;&amp;nbsp; to&amp;nbsp; "24"&amp;nbsp; - which gets translated to "23.986176"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using the stand alone Processor Expert Software Microcontroller Driver Suite v10.4, these frequency changes are made via drop down menus.&amp;nbsp; Here are the corresponding screen shots, with the changes highlighted, first under the "Properties" tab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44115iE93B1FE6644FDA0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then under the "Clock configurations" tab:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44169i1220E29207521A2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting the frequencies from the menus shouldn't generate any sort of error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Derrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 13:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-set-the-MKL02Z-to-48MHZ-using-FEI/m-p/303225#M12796</guid>
      <dc:creator>Derrick</dc:creator>
      <dc:date>2014-05-23T13:20:51Z</dc:date>
    </item>
  </channel>
</rss>

