<?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: S12 XEP100 Clock Speed Math in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1549860#M18944</link>
    <description>&lt;P&gt;Thanks for your advice. I was able to connect to the BDM and read the OSSCLK/2 as 4MHz, putting OSSCLK at 8MHz. This confirms our theory that the OSSCLK is double the physical crystal frequency on our board. (And thankfully no, I did not have any errant settings of the PLL registers)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I think we are all set now, thank you again for all your help!&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 18:36:55 GMT</pubDate>
    <dc:creator>overclocker123</dc:creator>
    <dc:date>2022-11-07T18:36:55Z</dc:date>
    <item>
      <title>S12 XEP100 Clock Speed Math</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1548307#M18934</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My company is using an S12 XEP100 General Purpose Eval Board (&lt;A href="https://www.nxp.com/design/development-boards/automotive-development-platforms/s12-magniv-mcu-platforms/s12xe-general-purpose-evaluation-board:DEVKIT-S12XE" target="_blank"&gt;S12XE General Purpose Evaluation Board | NXP Semiconductors&lt;/A&gt;). We have increased the clock speed by turning on the PLL and adjusting the respective register settings. Our settings are as follows:&lt;BR /&gt;&lt;BR /&gt;SYNR = 0xD8&lt;/P&gt;&lt;P&gt;REFDV = 0x01&lt;/P&gt;&lt;P&gt;POSTDIV = 0x01&lt;/P&gt;&lt;P&gt;Attached is a picture of the math based on these settings, but the summary is that we expect the bus clock to be 25MHz. However, when using a scope on Port PE4 with the ECLK enabled, we see a bus clock of 50MHz, double the expected.&lt;BR /&gt;&lt;BR /&gt;The only working theory that we have is that Fosc is actually 8MHz instead of the 4MHz from the crystal. Is there something else that we missed? Any thoughts?&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 12:54:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1548307#M18934</guid>
      <dc:creator>overclocker123</dc:creator>
      <dc:date>2022-11-03T12:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: S12 XEP100 Clock Speed Math</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1549182#M18938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Your calculation is ok. You can check it with calculator:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-PLL-Filter-Calculator/ta-p/1125313" target="_blank"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12X-PLL-Filter-Calculator/ta-p/1125313&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Download &amp;nbsp;S12XE_iPLL_Calc_103.exe from attachments at the page&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be good to check whether the oscillator uses the first harmonics. Also it is good to be sure the load capacitance is correctly calculated. For Pierce circuitry the load capacitors must be&amp;nbsp; C1=C2 &amp;gt; 2*CL where CL is a load capacitance of the oscillator provided in the oscillator data sheet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally, be sure you really measure ECLK and not ECLKX2..... (I know you wrote PE4 but it already happened that HW eng. accidentally connected to the check pin ECLKX2)&lt;/P&gt;
&lt;P&gt;(Note, there are some examples from my history at &lt;A href="https://community.nxp.com/t5/S12-MagniV-Microcontrollers/LAMA-s-S12XE-unofficial-examples/ta-p/1100774" target="_blank"&gt;https://community.nxp.com/t5/S12-MagniV-Microcontrollers/LAMA-s-S12XE-unofficial-examples/ta-p/1100774&lt;/A&gt;&amp;nbsp; )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Ladislav&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2022 18:39:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1549182#M18938</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2022-11-05T18:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: S12 XEP100 Clock Speed Math</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1549747#M18942</link>
      <description>&lt;P&gt;Ladislav,&lt;/P&gt;&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;I would assume that the load capacitance is correctly calculated as we are using an evaluation board as sold by NXP with no modifications. Your suggestion about the first harmonic is intriguing though. How would I go about checking that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And thank you for all your example code, I have used it as a reference for a couple projects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Kyle&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 14:44:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1549747#M18942</guid>
      <dc:creator>overclocker123</dc:creator>
      <dc:date>2022-11-07T14:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: S12 XEP100 Clock Speed Math</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1549831#M18943</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;this MCU is from older set which enables you to check oscillator in special mode.&lt;/P&gt;
&lt;P&gt;So easily, if you connect BDM to it and starts the MCU in special single chip mode (SSM) - standard debugging process when the MCU stops and waits for BDM command from the PC. In this case ECLKCTL_NECLK is set to 0 after reset which means you are able to check the OSCCLK/2 frequency at PE4 pin.&lt;/P&gt;
&lt;P&gt;(Another approach to set the SSM is reset the MCU with pins MODC=MODB=MODA=0)&lt;/P&gt;
&lt;P&gt;One more thing, could you please chceck whether you accidentally do not write PLLSEL=1 before you change PLL setup registers and/or you do not have already PLL set somewhere else in the code in some forgotten routine which sets the PLLSEL to 1 (start12.c,....) .&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Ladislav&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 17:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1549831#M18943</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2022-11-07T17:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: S12 XEP100 Clock Speed Math</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1549860#M18944</link>
      <description>&lt;P&gt;Thanks for your advice. I was able to connect to the BDM and read the OSSCLK/2 as 4MHz, putting OSSCLK at 8MHz. This confirms our theory that the OSSCLK is double the physical crystal frequency on our board. (And thankfully no, I did not have any errant settings of the PLL registers)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I think we are all set now, thank you again for all your help!&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 18:36:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12-XEP100-Clock-Speed-Math/m-p/1549860#M18944</guid>
      <dc:creator>overclocker123</dc:creator>
      <dc:date>2022-11-07T18:36:55Z</dc:date>
    </item>
  </channel>
</rss>

