<?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 HCS12 PLL activation in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PLL-activation/m-p/141489#M3266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to put this question to this plenum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to engage PLL when no osc and no clock is available (the MCU is in self-clock mode)? I suppose, that this is not possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, next question, PLL can get the reference clocks from osc, can be referenced by clock connected to EXTAL too? My attempt to get this working is not successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using clock of 5MHz on EXTAL and code from DRM:&lt;/SPAN&gt;&lt;BR /&gt;&lt;I&gt;&lt;BR /&gt;void PLLINIT() {&lt;BR /&gt;CLKSEL &amp;amp;= ~BM_PLLSEL; // make sure PLL is *not* in use&lt;BR /&gt;PLLCTL |= BM_PLLON+BM_AUTO;// enable PLL module, Auto Mode&lt;BR /&gt;REFDV = S12_REFDV; // set up Reference Divider&lt;BR /&gt;SYNR = S12_SYNR; // set up Synthesizer Multiplier&lt;BR /&gt;while((CRGFLG &amp;amp; BM_LOCK) == 0) ;// wait until PLL is locked&lt;BR /&gt;CLKSEL |= BM_PLLSEL; // switch over to PLL clock&lt;BR /&gt;}&lt;BR /&gt;&lt;/I&gt;&lt;BR /&gt;&lt;SPAN&gt;Any constructive reply will be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2006 21:53:35 GMT</pubDate>
    <dc:creator>Andik</dc:creator>
    <dc:date>2006-06-29T21:53:35Z</dc:date>
    <item>
      <title>HCS12 PLL activation</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PLL-activation/m-p/141489#M3266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to put this question to this plenum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to engage PLL when no osc and no clock is available (the MCU is in self-clock mode)? I suppose, that this is not possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And, next question, PLL can get the reference clocks from osc, can be referenced by clock connected to EXTAL too? My attempt to get this working is not successful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using clock of 5MHz on EXTAL and code from DRM:&lt;/SPAN&gt;&lt;BR /&gt;&lt;I&gt;&lt;BR /&gt;void PLLINIT() {&lt;BR /&gt;CLKSEL &amp;amp;= ~BM_PLLSEL; // make sure PLL is *not* in use&lt;BR /&gt;PLLCTL |= BM_PLLON+BM_AUTO;// enable PLL module, Auto Mode&lt;BR /&gt;REFDV = S12_REFDV; // set up Reference Divider&lt;BR /&gt;SYNR = S12_SYNR; // set up Synthesizer Multiplier&lt;BR /&gt;while((CRGFLG &amp;amp; BM_LOCK) == 0) ;// wait until PLL is locked&lt;BR /&gt;CLKSEL |= BM_PLLSEL; // switch over to PLL clock&lt;BR /&gt;}&lt;BR /&gt;&lt;/I&gt;&lt;BR /&gt;&lt;SPAN&gt;Any constructive reply will be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 21:53:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PLL-activation/m-p/141489#M3266</guid>
      <dc:creator>Andik</dc:creator>
      <dc:date>2006-06-29T21:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: HCS12 PLL activation</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PLL-activation/m-p/141490#M3267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;I'm not sure I understand your first question...&amp;nbsp; Are you asking if it's possible to use the 'self clock' as the PLL reference clock?&amp;nbsp; That would be impossible.&amp;nbsp; The 'self clock' is the signal that comes out of the PLL when no reference is applied to it.&amp;nbsp; It is not accurate for measuring real time.&lt;/P&gt;&lt;P&gt;Your second question...&amp;nbsp; That seems to me like it should be possible, but I haven't tried it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2006 22:59:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HCS12-PLL-activation/m-p/141490#M3267</guid>
      <dc:creator>rhinoceroshead</dc:creator>
      <dc:date>2006-06-29T22:59:02Z</dc:date>
    </item>
  </channel>
</rss>

