<?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: S12XDP/XEQ Self Clock Mode in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664211#M13993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that I must have XCLKS = 0 to use the full swing, but since I don't have it in my PCB it is starting the MCU with XCLKS = 1, yet it is able to lock the clock and, most of the time, it works fine, but sometimes it goes into self clock mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Shouldn't the problem only happen in the clock Initialization (not locking the clock)?&amp;nbsp;or with the wrong oscillator selected it may be unstable and goes to SCM in a noisy environment?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Feb 2017 14:44:30 GMT</pubDate>
    <dc:creator>andradetj</dc:creator>
    <dc:date>2017-02-07T14:44:30Z</dc:date>
    <item>
      <title>S12XDP/XEQ Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664209#M13991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the S12XDP512 and S12XEQ512 and I'm having many problems with clock locking in the field, when my device is already running.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use a 4MHz crystal and pll to reach pllclk = 80MHZ and busclk = fpll / 2&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S12XEQ512 config:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;CRGINT = 0b00000010;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;PLLCTL = 0b11001001;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;REFDV = 0x40;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;SYNR = 0x49;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;POSTDIV = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;CLKSEL = 0b11000000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;S12XDP512 config:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;CRGINT = 0b01000010;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;PLLCTL = 0b11101001;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;REFDV = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;SYNR = 9;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;CLKSEL = 0b11000000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;My application works but in some cases there is a clock error and it goes into self clock mode.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class=""&gt;I configured the MCU to generate an interrupt in which I wait for the clock to stabilize:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;&amp;nbsp; &lt;SPAN class=""&gt;While (! CRGFLG_LOCK) {}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: andale mono,monospace;"&gt;&amp;nbsp; &lt;SPAN class=""&gt;CLKSEL_PLLSEL = 1;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;In some cases this happens sporadically and the interruption is enough to resume normal operation. &amp;nbsp; But in other cases this happens very often, disrupting the operation of my application (e.g. messing with baudrates and serial communication).&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I use the Full Swing Pierce Oscillator for the crystal circuit, but I do not have a pulldown resistor on the PE7 port to configure the MCU to use this oscillator circuit.&lt;BR /&gt;&amp;nbsp; I noticed that after booting it is always with /XCLKS = 0.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Shouldn't the problem only happen in the clock Initialization (not locking the clock) or can it happen in the middle of the operation too, after the initial lock? &lt;BR /&gt;What is the difference between the controlled pierce oscillator loop and the full swing pierce oscillator, in terms of Voltage noise and EMI tolerance?&lt;BR /&gt;Is there any other situation that can cause clock loss? Because it happens only in 10% of my equipment and I do not see any pattern that could cause the loss of the clock.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2017 19:20:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664209#M13991</guid>
      <dc:creator>andradetj</dc:creator>
      <dc:date>2017-02-02T19:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: S12XDP/XEQ Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664210#M13992</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;If you want to use Full Swing Pierce Oscillator you have to make sure that XCLKS = 0. Since the oscillator is selected at reset state and there is a weak pull-up by default. You need to use a strong pull-down on that pin.&lt;/P&gt;&lt;P&gt;The Full Swing Oscillator is more stable and EMI-tolerant. But it can also generate more noise depending on configuration and its waveform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 11:02:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664210#M13992</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-02-03T11:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: S12XDP/XEQ Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664211#M13993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand that I must have XCLKS = 0 to use the full swing, but since I don't have it in my PCB it is starting the MCU with XCLKS = 1, yet it is able to lock the clock and, most of the time, it works fine, but sometimes it goes into self clock mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Shouldn't the problem only happen in the clock Initialization (not locking the clock)?&amp;nbsp;or with the wrong oscillator selected it may be unstable and goes to SCM in a noisy environment?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 14:44:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664211#M13993</guid>
      <dc:creator>andradetj</dc:creator>
      <dc:date>2017-02-07T14:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: S12XDP/XEQ Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664212#M13994</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;Apparently, you can run Loop Control Oscillator with Full Swing hardware configuration most of the time. There are many things to consider and it is difficult to say why it behaves this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:20:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664212#M13994</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-02-07T16:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: S12XDP/XEQ Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664213#M13995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more question, using the S12XEQ512 I can read the XCLKS bit in the CLKSEL register to confirm the oscillator configuration, but this bit doesn't exist on S12XDP512 . There is any other way to see the oscillator configuration on the S12XDP512 ?&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, 08 Feb 2017 14:37:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664213#M13995</guid>
      <dc:creator>andradetj</dc:creator>
      <dc:date>2017-02-08T14:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: S12XDP/XEQ Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664214#M13996</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'm afraid it is not possible on S12XDP512&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 14:18:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12XDP-XEQ-Self-Clock-Mode/m-p/664214#M13996</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-02-09T14:18:49Z</dc:date>
    </item>
  </channel>
</rss>

