<?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>S12 / MagniV Microcontrollers中的主题 Re: PPL and PIT Confusion</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PPL-and-PIT-Confusion/m-p/337670#M10482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here are some answers:&lt;/P&gt;&lt;P&gt;1. and 2. - Yes, correct.&lt;/P&gt;&lt;P&gt;3. and 4. - in this post you can download the PDF for the calculator&lt;A href="https://community.nxp.com/docs/DOC-103954"&gt;S12X PLL (Filter) Calculator&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PIT settings:&lt;/P&gt;&lt;P&gt;the time is in [ms]. So put 10 instead of 0.01 in you case and it should work as required.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;iggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2015 13:44:32 GMT</pubDate>
    <dc:creator>iggi</dc:creator>
    <dc:date>2015-03-24T13:44:32Z</dc:date>
    <item>
      <title>PPL and PIT Confusion</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PPL-and-PIT-Confusion/m-p/337669#M10481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am confused with the PPL and PIT calculations.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the S12XE PPL Calculator (ver 1.03)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Is the "Oscillator" the external 16 mHz crystal I am using.&lt;/P&gt;&lt;P&gt;2. Is the "Bus frequency" the frequency all timers are based on.&lt;/P&gt;&lt;P&gt;3. What is the "VCO frequency" and when do I use it.&lt;/P&gt;&lt;P&gt;4. What is the "REFCLK frequency" and when do I use it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using the PPL calculator to set the bus frequency to 20 mHz. This gives me 0x44 0x81 0x01 with my 16 mHz crystal ?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the PIT timer settings. I look at&amp;nbsp; example code and it has this example,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//fbus 8MHz&lt;/P&gt;&lt;P&gt;//period = (PITMTLD+1)*(PITLD+1)/fbus&lt;/P&gt;&lt;P&gt;//period = (19999+1)*(199+1)/8MHz = 500ms&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is confusing. I calculate the result as 0.5 not 500.&lt;/P&gt;&lt;P&gt;So does this formula give you the time in seconds or mSec.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the PIT timer to interrupt every 10 mSec. Using the same formula,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//fbus 20MHz&lt;/P&gt;&lt;P&gt;//period = (PITMTLD+1)*(PITLD+1)/fbus&lt;/P&gt;&lt;P&gt;//period = (4999+1)*(39+1)/20MHz = 0.01&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the 0.01 is seconds then 0.01 is the 10 mSec I require. The problem is the timer interrupts much faster then this.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the silly questions. I just am new to the Freescale S12XE jargon and methods.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2015 22:17:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PPL-and-PIT-Confusion/m-p/337669#M10481</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2015-03-21T22:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: PPL and PIT Confusion</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PPL-and-PIT-Confusion/m-p/337670#M10482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ray,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here are some answers:&lt;/P&gt;&lt;P&gt;1. and 2. - Yes, correct.&lt;/P&gt;&lt;P&gt;3. and 4. - in this post you can download the PDF for the calculator&lt;A href="https://community.nxp.com/docs/DOC-103954"&gt;S12X PLL (Filter) Calculator&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PIT settings:&lt;/P&gt;&lt;P&gt;the time is in [ms]. So put 10 instead of 0.01 in you case and it should work as required.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;iggi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 13:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PPL-and-PIT-Confusion/m-p/337670#M10482</guid>
      <dc:creator>iggi</dc:creator>
      <dc:date>2015-03-24T13:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: PPL and PIT Confusion</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PPL-and-PIT-Confusion/m-p/337671#M10483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Iggi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I decided to use my oscilloscope to check the PIT interrupt rather then me looking at a flashing LED. The PIT is interrupting correctly. There was never a problem, only my judgment of time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 21:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/PPL-and-PIT-Confusion/m-p/337671#M10483</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2015-03-24T21:15:59Z</dc:date>
    </item>
  </channel>
</rss>

