<?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 Error on PITn in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-on-PITn/m-p/351386#M17389</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;I try to use PITn (periodic interrupt timer) for one of my application. I work with k60 kinetis with IAR IDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I program rthe PIT0 to generate a interrupt every N secondes but when I try to do the same think with the PIT1 I get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as I try to modify one of the register of PIT1 (PIT_LDVAL1 for example) the CPU generate an interrupt (vector 3 :Hard Fault).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really understand the reason of that error... :smileyshocked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone explain me the reason of this? Or give me some advice about it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Dec 2014 10:18:35 GMT</pubDate>
    <dc:creator>xavierbuhot</dc:creator>
    <dc:date>2014-12-15T10:18:35Z</dc:date>
    <item>
      <title>Error on PITn</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-on-PITn/m-p/351386#M17389</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;I try to use PITn (periodic interrupt timer) for one of my application. I work with k60 kinetis with IAR IDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I program rthe PIT0 to generate a interrupt every N secondes but when I try to do the same think with the PIT1 I get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as I try to modify one of the register of PIT1 (PIT_LDVAL1 for example) the CPU generate an interrupt (vector 3 :Hard Fault).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really understand the reason of that error... :smileyshocked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone explain me the reason of this? Or give me some advice about it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 10:18:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-on-PITn/m-p/351386#M17389</guid>
      <dc:creator>xavierbuhot</dc:creator>
      <dc:date>2014-12-15T10:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error on PITn</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-on-PITn/m-p/351387#M17390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xavier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A hard fault usually means that the clock to the module has not been enabled.&lt;/P&gt;&lt;P&gt;All PITs share the same control in SIM_SCGC6 but may be it was disabled when PIT0 finished using it and needs to be re-enabled in order to use PIT1 (?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 17:25:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-on-PITn/m-p/351387#M17390</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-12-15T17:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error on PITn</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-on-PITn/m-p/351388#M17391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you the response, it works properly now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 13:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-on-PITn/m-p/351388#M17391</guid>
      <dc:creator>xavierbuhot</dc:creator>
      <dc:date>2014-12-16T13:37:25Z</dc:date>
    </item>
  </channel>
</rss>

