<?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: mc9s12xeq512 mcu &amp; flash initialiation in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12xeq512-mcu-amp-flash-initialiation/m-p/708305#M14677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please go to our pages and you can find there calculator at the page:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/microcontrollers-and-processors/more-processors/8-16-bit-mcus/16-bit-s12-and-s12x-mcus/ultra-reliable-s12xe-high-performance-automotive-and-industrial-microcontrollers:S12XE?tab=Design_Tools_Tab" title="https://www.nxp.com/products/microcontrollers-and-processors/more-processors/8-16-bit-mcus/16-bit-s12-and-s12x-mcus/ultra-reliable-s12xe-high-performance-automotive-and-industrial-microcontrollers:S12XE?tab=Design_Tools_Tab"&gt;S12XE MCUs|16-Bit Microcontroller|NXP&lt;/A&gt;&amp;nbsp;&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/31755iBA0966DC7CA279AF/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;Or directly:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/downloads/en/calculators/S12XESW.zip" title="https://www.nxp.com/downloads/en/calculators/S12XESW.zip"&gt;https://www.nxp.com/downloads/en/calculators/S12XESW.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31925i7B2AFA5151D26EE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31881iAAEF404C47D27663/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31973i08F0CF0D8A048614/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2017 09:32:57 GMT</pubDate>
    <dc:creator>lama</dc:creator>
    <dc:date>2017-09-20T09:32:57Z</dc:date>
    <item>
      <title>mc9s12xeq512 mcu &amp; flash initialiation</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12xeq512-mcu-amp-flash-initialiation/m-p/708304#M14676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have download from NXP demo example project for programming the internal flash memory of XEP controllers.&lt;/P&gt;&lt;P&gt;The project that I download is "XEP100-FLASH-PFLASH-CW51"&lt;/P&gt;&lt;P&gt;The project works just fine, but the problem that I am facing, is that it is not clear what is the correct frequency that I should enter in PFLASH_Init routine.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"PFLASH_Init routine"&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;//==============================================================================&lt;BR /&gt;//PFLASH_Init&lt;BR /&gt;//==============================================================================&lt;BR /&gt;void PFLASH_Init(unsigned char fdiv)&lt;BR /&gt;{&lt;BR /&gt; while(FSTAT_CCIF == 0); //wait if command in progress &lt;BR /&gt; FCLKDIV = fdiv; //osc = 16MHz &lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;the main calls it as follow&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;&amp;nbsp; PFLASH_Init(0x0F);//oscillator 16MHz&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, it gives 0x15 for 16MHz oscillation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will use the PLL with High speed (internal bus clock&amp;nbsp;50MHz), Low speed&amp;nbsp;&lt;SPAN&gt;(internal&amp;nbsp;&lt;SPAN&gt;bus clock&lt;/SPAN&gt; 14.75MHz), Slow&amp;nbsp;speed&amp;nbsp;&lt;SPAN&gt;(internal&amp;nbsp;&lt;SPAN&gt;bus clock&lt;/SPAN&gt; 4MHz).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;The problem is that &lt;SPAN style="background-color: #f6f6f6;"&gt;PFLASH_Init&lt;/SPAN&gt;&amp;nbsp;has no comments about the formula of oscillation and the operant of&amp;nbsp;"&lt;SPAN&gt;PFLASH_Init routine"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Could someone from NXP tell me how can I calculate the operant of&amp;nbsp;"&lt;SPAN&gt;PFLASH_Init routine" when the internal&amp;nbsp;&lt;SPAN&gt;bus clock&lt;/SPAN&gt;is 50, 14.75 and 4MHz?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338913"&gt;XEP100-FLASH-PFLASH-CW51.ZIP&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 08:48:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12xeq512-mcu-amp-flash-initialiation/m-p/708304#M14676</guid>
      <dc:creator>Eric_t</dc:creator>
      <dc:date>2017-09-20T08:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12xeq512 mcu &amp; flash initialiation</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12xeq512-mcu-amp-flash-initialiation/m-p/708305#M14677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please go to our pages and you can find there calculator at the page:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/microcontrollers-and-processors/more-processors/8-16-bit-mcus/16-bit-s12-and-s12x-mcus/ultra-reliable-s12xe-high-performance-automotive-and-industrial-microcontrollers:S12XE?tab=Design_Tools_Tab" title="https://www.nxp.com/products/microcontrollers-and-processors/more-processors/8-16-bit-mcus/16-bit-s12-and-s12x-mcus/ultra-reliable-s12xe-high-performance-automotive-and-industrial-microcontrollers:S12XE?tab=Design_Tools_Tab"&gt;S12XE MCUs|16-Bit Microcontroller|NXP&lt;/A&gt;&amp;nbsp;&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/31755iBA0966DC7CA279AF/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;Or directly:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/downloads/en/calculators/S12XESW.zip" title="https://www.nxp.com/downloads/en/calculators/S12XESW.zip"&gt;https://www.nxp.com/downloads/en/calculators/S12XESW.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The answer is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31925i7B2AFA5151D26EE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31881iAAEF404C47D27663/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31973i08F0CF0D8A048614/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 09:32:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12xeq512-mcu-amp-flash-initialiation/m-p/708305#M14677</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2017-09-20T09:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12xeq512 mcu &amp; flash initialiation</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12xeq512-mcu-amp-flash-initialiation/m-p/708306#M14678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lama,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the quick answer.&lt;/P&gt;&lt;P&gt;As far as I understand, the &lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;FCLKDIV&lt;/SPAN&gt; &amp;nbsp; of "PFlash_Ini" routine, is the "FDIV" of S12XEiPLL calculator, and in all cases it should be 0x0F.&lt;/P&gt;&lt;P&gt;Is that correct?&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>Wed, 20 Sep 2017 09:55:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12xeq512-mcu-amp-flash-initialiation/m-p/708306#M14678</guid>
      <dc:creator>Eric_t</dc:creator>
      <dc:date>2017-09-20T09:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: mc9s12xeq512 mcu &amp; flash initialiation</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12xeq512-mcu-amp-flash-initialiation/m-p/708307#M14679</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;yes, the value 0x0F because the flash clock is derived from oscillator clock. The only what is different is PLL setup for BUSCLK.&lt;/P&gt;&lt;P&gt;Ups, I have forgotten. the data sheet also presents:&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/30551iEE885571BD73DE89/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;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 11:45:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/mc9s12xeq512-mcu-amp-flash-initialiation/m-p/708307#M14679</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2017-09-20T11:45:26Z</dc:date>
    </item>
  </channel>
</rss>

