<?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>8-bit MicrocontrollersのトピックHow long is it valid for FLL lock?</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-long-is-it-valid-for-FLL-lock/m-p/862599#M22737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am having problem when I use a demo routine to set FEE mode for&amp;nbsp;S9KEAZ128.&lt;/P&gt;&lt;P&gt;The bold line is to wait for FLL to lock, and it takes about 26ms, I think it is too long for initialization.&lt;/P&gt;&lt;P&gt;How long is it valid for FLL lock?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20.5.3 Initializing FEE mode&lt;/P&gt;&lt;P&gt;The following code segment demonstrates setting ICS to FEE mode.&lt;BR /&gt;Example: 20.5.3.1&amp;nbsp;&amp;nbsp; FEE mode initialization routine&lt;BR /&gt;/* the following code segment demonstrates setting the ICS to FEE mode generating a 40MHZ core clock frequency using an external 8MHz crystal */&lt;/P&gt;&lt;P&gt;OSC_CR = 0x96; // high-range, high-gain oscillator selected&lt;/P&gt;&lt;P&gt;while ((OSC_CR &amp;amp; OSC_CR_OSCINIT_MASK) == 0); // wait until oscillator is ready&lt;/P&gt;&lt;P&gt;ICS_C2 = 0x20; // BDIV=divide by 2 – use default until clock dividers configured&lt;/P&gt;&lt;P&gt;ICS_C1 = 0x18; // 8MHz external reference clock/256 as source to FLL&lt;/P&gt;&lt;P&gt;while ((ICS_S &amp;amp; ICS_S_IREFST_MASK) == 1); // wait for external source selected&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;while ((ICS_S &amp;amp; ICS_S_LOCK_MASK) == 0); // wait for FLL to lock&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SIM_CLKDIV = 0x01100000; // core clock = ICSOUT/1 and bus clock = core clock/2&lt;/P&gt;&lt;P&gt;ICS_C2 = 0x00; // BDIV=divide by 1 – allows max core and bus clock frequencies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jan 2019 08:01:16 GMT</pubDate>
    <dc:creator>w_lingjun</dc:creator>
    <dc:date>2019-01-09T08:01:16Z</dc:date>
    <item>
      <title>How long is it valid for FLL lock?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-long-is-it-valid-for-FLL-lock/m-p/862599#M22737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am having problem when I use a demo routine to set FEE mode for&amp;nbsp;S9KEAZ128.&lt;/P&gt;&lt;P&gt;The bold line is to wait for FLL to lock, and it takes about 26ms, I think it is too long for initialization.&lt;/P&gt;&lt;P&gt;How long is it valid for FLL lock?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;20.5.3 Initializing FEE mode&lt;/P&gt;&lt;P&gt;The following code segment demonstrates setting ICS to FEE mode.&lt;BR /&gt;Example: 20.5.3.1&amp;nbsp;&amp;nbsp; FEE mode initialization routine&lt;BR /&gt;/* the following code segment demonstrates setting the ICS to FEE mode generating a 40MHZ core clock frequency using an external 8MHz crystal */&lt;/P&gt;&lt;P&gt;OSC_CR = 0x96; // high-range, high-gain oscillator selected&lt;/P&gt;&lt;P&gt;while ((OSC_CR &amp;amp; OSC_CR_OSCINIT_MASK) == 0); // wait until oscillator is ready&lt;/P&gt;&lt;P&gt;ICS_C2 = 0x20; // BDIV=divide by 2 – use default until clock dividers configured&lt;/P&gt;&lt;P&gt;ICS_C1 = 0x18; // 8MHz external reference clock/256 as source to FLL&lt;/P&gt;&lt;P&gt;while ((ICS_S &amp;amp; ICS_S_IREFST_MASK) == 1); // wait for external source selected&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;while ((ICS_S &amp;amp; ICS_S_LOCK_MASK) == 0); // wait for FLL to lock&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SIM_CLKDIV = 0x01100000; // core clock = ICSOUT/1 and bus clock = core clock/2&lt;/P&gt;&lt;P&gt;ICS_C2 = 0x00; // BDIV=divide by 1 – allows max core and bus clock frequencies&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2019 08:01:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-long-is-it-valid-for-FLL-lock/m-p/862599#M22737</guid>
      <dc:creator>w_lingjun</dc:creator>
      <dc:date>2019-01-09T08:01:16Z</dc:date>
    </item>
  </channel>
</rss>

