<?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: MC9S12G64: Using external oscillator (not crystal) in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12G64-Using-external-oscillator-not-crystal/m-p/281750#M10041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you for the info. I would have like this to work, but I will have to work without it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried some level translator to lower the oscillator voltage, but at the end, it was unstable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;William&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jun 2013 15:35:07 GMT</pubDate>
    <dc:creator>ZdenoQC</dc:creator>
    <dc:date>2013-06-12T15:35:07Z</dc:date>
    <item>
      <title>MC9S12G64: Using external oscillator (not crystal)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12G64-Using-external-oscillator-not-crystal/m-p/281748#M10039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use an external oscillator for the G64. The source is an RF chip that give me 13.56MHz. I calculate all the value for the CPMUSYNR, CPMUREFDIV but the PLL never lock. By going backward, I find that the bit CPMUFLG_UPOSC is always zero. Like if the micro doesn't detect the oscillation.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The clock source is plug to the EXTAL pin and XTAL pin is not plug.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have some register to set for the UPOSC bit to go 1 or it's just not possible with this clock configuration?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code for now:&lt;/P&gt;&lt;P&gt;CPMUOSC = 0x80; //Enable oscillator&lt;/P&gt;&lt;P&gt;CPMUSYNR = 0x16; // VCO from 32 to 48MHz, SYNDIV = 22&lt;/P&gt;&lt;P&gt;CPMUREFDIV = 0x0C; // Fref from 1 to 2MHz, Fref = Fosc/13&lt;/P&gt;&lt;P&gt;while(!CPMUFLG_LOCK); // Wait for lock !!! Stop here !!!&lt;/P&gt;&lt;P&gt;CPMUCLKS_PLLSEL = 1; //Switch to PLL&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2013 15:37:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12G64-Using-external-oscillator-not-crystal/m-p/281748#M10039</guid>
      <dc:creator>ZdenoQC</dc:creator>
      <dc:date>2013-06-07T15:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12G64: Using external oscillator (not crystal)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12G64-Using-external-oscillator-not-crystal/m-p/281749#M10040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The main thing is that S12G device does not support external oscillator, only crystal in LCP connection. The &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MC9S12G Family Reference Manual and Data Sheet clearly states on page 44: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main External Oscillator (XOSCLCP)&lt;/P&gt;&lt;P&gt;• Loop control Pierce oscillator using a 4 MHz to 16 MHz crystal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, it seems like the &lt;SPAN style="font-size: 9pt; font-family: Helvetica, sans-serif;"&gt;VCOFRQ[1:0] values is incorrect. There should be &lt;SPAN lang="CS" style="font-size: 10pt; font-family: 'MS Shell Dlg 2', sans-serif; color: black;"&gt;CPMUSYNR = 0x56;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the reference manual, find the chapter 10.1.2 Modes of Operation. There are described 3 different PLL modes: PEI, PEE, PBE. You can test these modes using SW example codes made for S12G devices. This is the part of the application note AN4455 MC9S12G64 Demonstration Lab Training. Download link below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455.pdf?fsrch=1&amp;amp;sr=1" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455.pdf?fsrch=1&amp;amp;sr=1"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455SW.zip?fsrch=1&amp;amp;sr=1" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455SW.zip?fsrch=1&amp;amp;sr=1"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4455SW.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 13:24:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12G64-Using-external-oscillator-not-crystal/m-p/281749#M10040</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2013-06-11T13:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12G64: Using external oscillator (not crystal)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12G64-Using-external-oscillator-not-crystal/m-p/281750#M10041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you for the info. I would have like this to work, but I will have to work without it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried some level translator to lower the oscillator voltage, but at the end, it was unstable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;William&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 15:35:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12G64-Using-external-oscillator-not-crystal/m-p/281750#M10041</guid>
      <dc:creator>ZdenoQC</dc:creator>
      <dc:date>2013-06-12T15:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12G64: Using external oscillator (not crystal)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12G64-Using-external-oscillator-not-crystal/m-p/281751#M10042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might try the following configuration -&lt;/P&gt;&lt;P&gt;Connect a 1Mohm resistor between the XTAL and EXTAL pins of the MCU.&amp;nbsp; Then couple the external signal from the RF chip to the EXTAL pin using a series capacitor, say 100 pF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 00:57:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12G64-Using-external-oscillator-not-crystal/m-p/281751#M10042</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2013-06-13T00:57:38Z</dc:date>
    </item>
  </channel>
</rss>

