<?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: How to calculate PIT PIT_LDVALn register value in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-calculate-PIT-PIT-LDVALn-register-value/m-p/614863#M36550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Irmantas Budrys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, the calculation is very simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You also can refer to the KEA128 reference manual, chapter 28.5 Initialization and application information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If your bus clock is 24Mhz, then you want to get 1ms, the pit clock is the bus clock, so:&lt;/P&gt;&lt;P&gt;&amp;nbsp; PIT_LDVALn = 1ms /bus clock =24000= 0x5dc0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have problem, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2016 05:45:47 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2016-10-31T05:45:47Z</dc:date>
    <item>
      <title>How to calculate PIT PIT_LDVALn register value</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-calculate-PIT-PIT-LDVALn-register-value/m-p/614862#M36549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello All,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I am using FRDM DEV BRD KEAZ128 and S32. Bus frequency is 24MHz. Lets say I want interrupt every 1ms. Could you explain me how to calculate&amp;nbsp;PIT_LDVALn register value to generate this interrupt?&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;IB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Oct 2016 22:31:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-calculate-PIT-PIT-LDVALn-register-value/m-p/614862#M36549</guid>
      <dc:creator>irmantasbudrys</dc:creator>
      <dc:date>2016-10-30T22:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate PIT PIT_LDVALn register value</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-calculate-PIT-PIT-LDVALn-register-value/m-p/614863#M36550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Irmantas Budrys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Actually, the calculation is very simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You also can refer to the KEA128 reference manual, chapter 28.5 Initialization and application information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If your bus clock is 24Mhz, then you want to get 1ms, the pit clock is the bus clock, so:&lt;/P&gt;&lt;P&gt;&amp;nbsp; PIT_LDVALn = 1ms /bus clock =24000= 0x5dc0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have problem, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 05:45:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-calculate-PIT-PIT-LDVALn-register-value/m-p/614863#M36550</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-10-31T05:45:47Z</dc:date>
    </item>
  </channel>
</rss>

