<?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: 9S12DP512 PLL operation in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DP512-PLL-operation/m-p/193245#M7629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget the filter components on the XFC pin, if you use the PLL on a 0.25 um S12 device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a utility available to help with component selection for the filter (to find it type "HCS12PLL" in the "Enter Keyword" search field)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MJW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Apr 2010 21:16:57 GMT</pubDate>
    <dc:creator>MJW</dc:creator>
    <dc:date>2010-04-21T21:16:57Z</dc:date>
    <item>
      <title>9S12DP512 PLL operation</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DP512-PLL-operation/m-p/193243#M7627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Crystal freq is 16 MHz with clock freq 8MHz. I want to boost clock freq to 24 MHz with PLL. Are there any APP notes showing how to do this?&amp;nbsp; My application is a computer driven telescope&amp;nbsp; written in assembly language and faster clock speed is needed for all the calculations involved.&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;astro_goto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Apr 2010 22:30:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DP512-PLL-operation/m-p/193243#M7627</guid>
      <dc:creator>astro_goto</dc:creator>
      <dc:date>2010-04-19T22:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: 9S12DP512 PLL operation</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DP512-PLL-operation/m-p/193244#M7628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found my own solution: PLL operation is not as difficult as I had imagined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The basic calculation isgiven in the Clocks and Generator (CRG) User Guide:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PLLCLK = 2 x OSCCLK x [SYNR + 1] / [REFDV + 1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSCCLK is the crystal frequency: 16MHz in my case which generates a 8MHz bus clock (too slow)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLLCLK will be 48MHz to generate a 24MHz bus clock instead of 8MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only 5 lines of assembly code are needed to implement the PLL:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; movb&amp;nbsp;&amp;nbsp; &amp;nbsp;#2,SYNR&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;PLLCLK = 2 * OSCCLK * (SYNR+1)/(REFDV+1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; movb&amp;nbsp;&amp;nbsp; &amp;nbsp;#1,REFDV&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;PLLCLK = 2 * 16MHz * (2 + 1)/(1 + 1) = 48MHz&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bset&amp;nbsp;&amp;nbsp; &amp;nbsp;PLLCTL,#$60&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;PLLON=1, AUTO=1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; brclr&amp;nbsp;&amp;nbsp; &amp;nbsp;CRGFLG,LOCK,*&amp;nbsp;&amp;nbsp; &amp;nbsp; ;wait here until PLL is stable and LOCK is set&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;bset&amp;nbsp;&amp;nbsp; &amp;nbsp;CLKSEL,#$80&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; ;now select PLLCLK/2 as&amp;nbsp; bus clock (e-clock)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the MC9S12DP512 chip the following definitions apply:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; SYNR:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; equ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $0034&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&amp;nbsp; $ implies hexadecimal number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; REFDV:&amp;nbsp;&amp;nbsp; &amp;nbsp; equ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $0035&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CLKSEL: &amp;nbsp; equ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $0039&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PLLCTL:&amp;nbsp;&amp;nbsp;&amp;nbsp; equ&amp;nbsp;&amp;nbsp;&amp;nbsp; $003A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CRGFLG:&amp;nbsp; equ&amp;nbsp;&amp;nbsp;&amp;nbsp; $0037&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LOCK:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; equ&amp;nbsp;&amp;nbsp;&amp;nbsp; $08&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is helpful to someone.&lt;/P&gt;&lt;P&gt;astro_goto&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 20:55:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DP512-PLL-operation/m-p/193244#M7628</guid>
      <dc:creator>astro_goto</dc:creator>
      <dc:date>2010-04-21T20:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: 9S12DP512 PLL operation</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DP512-PLL-operation/m-p/193245#M7629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget the filter components on the XFC pin, if you use the PLL on a 0.25 um S12 device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a utility available to help with component selection for the filter (to find it type "HCS12PLL" in the "Enter Keyword" search field)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MJW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 21:16:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/9S12DP512-PLL-operation/m-p/193245#M7629</guid>
      <dc:creator>MJW</dc:creator>
      <dc:date>2010-04-21T21:16:57Z</dc:date>
    </item>
  </channel>
</rss>

