<?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: Timer Unit; SetPeriodTicks, what is it based on? in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324320#M1067</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the code of SetPeriodTicks( ). It is changing the Load register of PIT module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PIT_LDVAL_REG(PeripheralBase,(ChannelIdx)) = \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (uint32_t)(Value) \&lt;/P&gt;&lt;P&gt;This indicates that it should use input frequency and multiply it with the value passed to it.&lt;/P&gt;&lt;P&gt;It should not use the period. I am not sure why you observed it. You might have used something different. But since the code generation through this module will be same, thus it should always use the input frequency. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Arpita &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2014 10:50:57 GMT</pubDate>
    <dc:creator>arpitaagarwal-b</dc:creator>
    <dc:date>2014-07-03T10:50:57Z</dc:date>
    <item>
      <title>Timer Unit; SetPeriodTicks, what is it based on?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324315#M1062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other day, I set up a TimerUnit with a period of 1ms.&amp;nbsp; In code I called SetPeriodTicks() with a value of 10000 and until recently it was responding in the OnCounteRestart event every 10 seconds.&amp;nbsp; Now it is responding every .2 ms.&amp;nbsp; It took a while, but I finally noticed that this is 10000 times the counter frequency.&amp;nbsp; Which of these should SetPeriodTicks() be using?&amp;nbsp; Rereading the description, I can see it being either way.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 20:06:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324315#M1062</guid>
      <dc:creator>marknordstrand</dc:creator>
      <dc:date>2014-06-25T20:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Unit; SetPeriodTicks, what is it based on?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324316#M1063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which MCU you are working on? What is the code warrior version?&lt;/P&gt;&lt;P&gt;This information is required to check the respective PE bean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Arpita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 05:19:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324316#M1063</guid>
      <dc:creator>arpitaagarwal-b</dc:creator>
      <dc:date>2014-06-27T05:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Unit; SetPeriodTicks, what is it based on?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324317#M1064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should have included this, but CW version 10.4 with a mk20dn512vlq10.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 13:40:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324317#M1064</guid>
      <dc:creator>marknordstrand</dc:creator>
      <dc:date>2014-06-30T13:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Unit; SetPeriodTicks, what is it based on?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324318#M1065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which module are you using for setting timer? Are you using Processor Expert?&lt;/P&gt;&lt;P&gt;Can you share your code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Arpita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 11:15:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324318#M1065</guid>
      <dc:creator>arpitaagarwal-b</dc:creator>
      <dc:date>2014-07-02T11:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Unit; SetPeriodTicks, what is it based on?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324319#M1066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Arpita,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Yes, using Processor Expert and using a TimeUnit_LDD with a PIT counter.&amp;nbsp; Period is 1ms.&amp;nbsp; Code is in a different state at the moment, so won't be much help.&amp;nbsp; Setting this test up was fairly straightforward:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In main() of ProcessorExpert.c call the timer's Init() and SetPeriodTicks() with a value of 10000.&amp;nbsp; In Timer1's OnCounterRestart() callback just print that the event happened (I also added info from the RTC for reference).&amp;nbsp; When first implemented it the callback reported every 10 seconds, which would be the period.&amp;nbsp; Currently, it responds as if uses the input frequency.&amp;nbsp; Which is the intended behavior, and any idea why it changed on me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 15:00:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324319#M1066</guid>
      <dc:creator>marknordstrand</dc:creator>
      <dc:date>2014-07-02T15:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Unit; SetPeriodTicks, what is it based on?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324320#M1067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the code of SetPeriodTicks( ). It is changing the Load register of PIT module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; PIT_LDVAL_REG(PeripheralBase,(ChannelIdx)) = \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (uint32_t)(Value) \&lt;/P&gt;&lt;P&gt;This indicates that it should use input frequency and multiply it with the value passed to it.&lt;/P&gt;&lt;P&gt;It should not use the period. I am not sure why you observed it. You might have used something different. But since the code generation through this module will be same, thus it should always use the input frequency. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Arpita &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 10:50:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324320#M1067</guid>
      <dc:creator>arpitaagarwal-b</dc:creator>
      <dc:date>2014-07-03T10:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Unit; SetPeriodTicks, what is it based on?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324321#M1068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Arpita,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks for verifying that, it's consistent with current behavior.&amp;nbsp; Not sure what I did before.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2014 14:41:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Timer-Unit-SetPeriodTicks-what-is-it-based-on/m-p/324321#M1068</guid>
      <dc:creator>marknordstrand</dc:creator>
      <dc:date>2014-07-03T14:41:08Z</dc:date>
    </item>
  </channel>
</rss>

