<?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: Stuck at Self Clock Mode  in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701769#M14550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the schematic of the oscillator section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="osc-section.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28466i84C1C8B0465B6212/image-size/large?v=v2&amp;amp;px=999" role="button" title="osc-section.jpg" alt="osc-section.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Test pin (23) is connected to GND as is the \XCLKS (pin 13). C7, C8, C6 and C5 in the schematic are of NP0/C0G type.&lt;/P&gt;&lt;P&gt;I now tried now the same component values as was used on Technologicalarts evaluation board (the schematic is public, on support section: &lt;A class="link-titled" href="http://support.technologicalarts.ca/docs/Adapt9S12C/AD9S12Csch.pdf" title="http://support.technologicalarts.ca/docs/Adapt9S12C/AD9S12Csch.pdf"&gt;http://support.technologicalarts.ca/docs/Adapt9S12C/AD9S12Csch.pdf&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;I have also tried many different crystals and load capacitances, and R2 values between 1 and 10Mohm. All with the same results... Tried also to change the processor. Oscillator should be OK and running because the waveform at XTAL output is OK?&lt;/P&gt;&lt;P&gt;CLKSEL bit 7 is 0 so the PLL is not selected and the bus frequency then should be oscillator / 2. Checked with BDM that 0x0039 (CLKSEL) reads 0x00.&lt;/P&gt;&lt;P&gt;Since it is running at SCM, the pin PE4 shows the self-clock frequency / 2 rather than 4MHz that it should be with the 8MHz crystal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11-ECLK-1M5.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28599iE3A331381F8675E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="11-ECLK-1M5.jpg" alt="11-ECLK-1M5.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I will re-calculate the load capacitances with the equations you supplied, but since I have tested so many different component values, I am not expecting much.&lt;/P&gt;&lt;P&gt;Have also tried to feed different frequencies (between 1 and 12MHz) from a function generator to the EXTAL pin as shown by the datasheet (MC9S12C128V1.pdf) picture 11-3, page 345. 2,5V level, of course.&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2017 09:48:35 GMT</pubDate>
    <dc:creator>vvieri</dc:creator>
    <dc:date>2017-08-21T09:48:35Z</dc:date>
    <item>
      <title>Stuck at Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701767#M14548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 9S12C64CFAE processor (0M66G mask) with Pierce oscillator setup running at 8MHz. For some reason the chip is still running on SCM although the crystal oscillator&amp;nbsp;has&amp;nbsp;nice and full-swing waveforms and starts very fast after the supply voltages are present. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="extal.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26836i0AD34C0602BE10C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="extal.jpg" alt="extal.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="xtal.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/26871iD35F302CD752A5E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="xtal.jpg" alt="xtal.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used BDM to get some information on the register contents and the status register 0x0037 (CRGFLG) shows 0x63 that means that the SCM is active.&lt;/P&gt;&lt;P&gt;I have fundamental 8MHz crystal with 22pF load capacitors (recommended by the crystal manufacturer) and 10M resistor in parallel with the crystal.&lt;/P&gt;&lt;P&gt;As far as I understood, the SCM bit is set purely by hardware and it is not software dependent. Or am I wrong?&lt;/P&gt;&lt;P&gt;So, without any firmware inside the chip should use the external clock (at least when looking at reset values of registers) and not to go into SCM?&lt;/P&gt;&lt;P&gt;Have programmed also the S12SerMon2r1 in using the BDM programmer, but it does not make situation any different...&lt;/P&gt;&lt;P&gt;I have also tried to wire the crystal directly to the chip with associated components to minimize the signal lengths and stray capacitances but the result is still the same.&lt;/P&gt;&lt;P&gt;I really appreciate any help.&lt;/P&gt;&lt;P&gt;Regards, Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 20:27:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701767#M14548</guid>
      <dc:creator>vvieri</dc:creator>
      <dc:date>2017-08-18T20:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck at Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701768#M14549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is it possible to share schematic design?&lt;/P&gt;&lt;P&gt;Moreover, check (standard mistakes):&lt;/P&gt;&lt;P&gt;- Test pin connected to GND.&lt;/P&gt;&lt;P&gt;- \XCLKS connected to GND for pierce oscillator.&lt;/P&gt;&lt;P&gt;- Load capacitors should be calculated in simplified consideration follows:&lt;/P&gt;&lt;P&gt;The maximal frequency for Pierce oscillator is 40MHz.&lt;/P&gt;&lt;P&gt;The accurate values depend on the features of the crystal presented in the manufacturer's data sheet.&lt;/P&gt;&lt;P&gt;For example - crystal CA-301 has load capacitance = CL &amp;gt;10pF&lt;/P&gt;&lt;P&gt;S12C, S12GC : input pin capacitance for pins XTAL, EXTAL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C1i = C2i = 7pF = Ci&lt;/P&gt;&lt;P&gt;Let C3=C4 = Ce&lt;/P&gt;&lt;P&gt;CL = (Ci + Ce)/2&amp;nbsp;&amp;nbsp;&amp;nbsp; and it has to be &amp;gt;= CL = 10 pF&lt;/P&gt;&lt;P&gt;Then:&lt;/P&gt;&lt;P&gt;(Ci + Ce)/2&amp;nbsp; &amp;gt;= CL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;gt;&amp;nbsp; Ce &amp;gt;= CL*2&amp;nbsp; - Ci&lt;/P&gt;&lt;P&gt;Ce &amp;gt;= 10pF * 2 - 7pF&lt;/P&gt;&lt;P&gt;Ce &amp;gt;= 13 pF&lt;/P&gt;&lt;P&gt;Rb value is from the interval 100kohm ~ 20Mohm. For low frequency circuits is crystal impedance relatively high and Rb should be high Rb = 10Mohm. For high frequencies (&amp;gt;20Mhz) Rb = 100 kohm.&lt;/P&gt;&lt;P&gt;Rs for high frequencies (&amp;gt;4MHz) can be omitted.&lt;/P&gt;&lt;P&gt;- Test the MCU without setting PLL. Only set PEAR_NECLK=0 and you should se busclk=OSCCLK/2 at the pin PE4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it does not help do not hesitate to contact me again.&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>Mon, 21 Aug 2017 08:46:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701768#M14549</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2017-08-21T08:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck at Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701769#M14550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the schematic of the oscillator section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="osc-section.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28466i84C1C8B0465B6212/image-size/large?v=v2&amp;amp;px=999" role="button" title="osc-section.jpg" alt="osc-section.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Test pin (23) is connected to GND as is the \XCLKS (pin 13). C7, C8, C6 and C5 in the schematic are of NP0/C0G type.&lt;/P&gt;&lt;P&gt;I now tried now the same component values as was used on Technologicalarts evaluation board (the schematic is public, on support section: &lt;A class="link-titled" href="http://support.technologicalarts.ca/docs/Adapt9S12C/AD9S12Csch.pdf" title="http://support.technologicalarts.ca/docs/Adapt9S12C/AD9S12Csch.pdf"&gt;http://support.technologicalarts.ca/docs/Adapt9S12C/AD9S12Csch.pdf&lt;/A&gt; )&lt;/P&gt;&lt;P&gt;I have also tried many different crystals and load capacitances, and R2 values between 1 and 10Mohm. All with the same results... Tried also to change the processor. Oscillator should be OK and running because the waveform at XTAL output is OK?&lt;/P&gt;&lt;P&gt;CLKSEL bit 7 is 0 so the PLL is not selected and the bus frequency then should be oscillator / 2. Checked with BDM that 0x0039 (CLKSEL) reads 0x00.&lt;/P&gt;&lt;P&gt;Since it is running at SCM, the pin PE4 shows the self-clock frequency / 2 rather than 4MHz that it should be with the 8MHz crystal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11-ECLK-1M5.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28599iE3A331381F8675E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="11-ECLK-1M5.jpg" alt="11-ECLK-1M5.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I will re-calculate the load capacitances with the equations you supplied, but since I have tested so many different component values, I am not expecting much.&lt;/P&gt;&lt;P&gt;Have also tried to feed different frequencies (between 1 and 12MHz) from a function generator to the EXTAL pin as shown by the datasheet (MC9S12C128V1.pdf) picture 11-3, page 345. 2,5V level, of course.&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 09:48:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701769#M14550</guid>
      <dc:creator>vvieri</dc:creator>
      <dc:date>2017-08-21T09:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck at Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701770#M14551</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;Did you check voltage at VDDPLL and&amp;nbsp;VDD1? Is regulator working or indeed shorted to VDDX/VDDR?&lt;/P&gt;&lt;P&gt;I would check with probe if /XCLKS is really low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 10:29:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701770#M14551</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2017-08-21T10:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck at Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701771#M14552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Done some further measurements.&lt;/P&gt;&lt;P&gt;Voltage on VDDPLL is 2.52V and VDD1 has 5V. Also checked that /XCLKS (pin 13 on this 48LQFP package) is actually tied to ground. &lt;/P&gt;&lt;P&gt;(Actually, tried also /XCLKS signal as 5V but then the crystal oscillator does not start (no waveform on EXTAL and XTAL pins)).&lt;/P&gt;&lt;P&gt;Now it is running but for some reason the Clock Quality Checker does not like it...&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 10:54:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701771#M14552</guid>
      <dc:creator>vvieri</dc:creator>
      <dc:date>2017-08-21T10:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck at Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701772#M14553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;and VDD1 has 5V&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And that's perhaps the problem. VDD1 should be similar to VDDPLL. Looks like you shorted it to VDDX/VDDR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 10:57:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701772#M14553</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2017-08-21T10:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck at Self Clock Mode</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701773#M14554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;Yes, that was the problem! Had a short circuit between those two networks.&lt;/P&gt;&lt;P&gt;Thank you very much for the great advice on troubleshooting, now the bus clock seems to be 4MHz as it should be.&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 11:52:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Stuck-at-Self-Clock-Mode/m-p/701773#M14554</guid>
      <dc:creator>vvieri</dc:creator>
      <dc:date>2017-08-21T11:52:48Z</dc:date>
    </item>
  </channel>
</rss>

