<?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>MCUXpresso Config ToolsのトピックPIT Ticks off by one</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/PIT-Ticks-off-by-one/m-p/1389070#M1291</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MCUXpresso IDE v11.4.1 with the FRDM-K64F SDK v2.10.0&lt;/P&gt;&lt;P&gt;I noticed that the PIT configuration tool creates a #define called PIT_X_TICKS with the number of ticks &lt;STRONG&gt;minus 1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The PIT driver function&amp;nbsp;PIT_SetTimerPeriod also subtracts 1 from the parameter before updating the PIT reload value.&lt;/P&gt;&lt;P&gt;I believe this should be changed in the config tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Dec 2021 18:29:10 GMT</pubDate>
    <dc:creator>IdrisCodes</dc:creator>
    <dc:date>2021-12-18T18:29:10Z</dc:date>
    <item>
      <title>PIT Ticks off by one</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/PIT-Ticks-off-by-one/m-p/1389070#M1291</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using MCUXpresso IDE v11.4.1 with the FRDM-K64F SDK v2.10.0&lt;/P&gt;&lt;P&gt;I noticed that the PIT configuration tool creates a #define called PIT_X_TICKS with the number of ticks &lt;STRONG&gt;minus 1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The PIT driver function&amp;nbsp;PIT_SetTimerPeriod also subtracts 1 from the parameter before updating the PIT reload value.&lt;/P&gt;&lt;P&gt;I believe this should be changed in the config tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Dec 2021 18:29:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/PIT-Ticks-off-by-one/m-p/1389070#M1291</guid>
      <dc:creator>IdrisCodes</dc:creator>
      <dc:date>2021-12-18T18:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: PIT Ticks off by one</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/PIT-Ticks-off-by-one/m-p/1390937#M1292</link>
      <description>&lt;P&gt;&lt;FONT color="#333333"&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194894"&gt;@IdrisCodes&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;Thank you for noticing this! I will escalate the below&amp;nbsp; report.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditordiego_charles_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;In the SDK PIT example we can see:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#333333"&gt; PIT_SetTimerPeriod(DEMO_PIT_BASEADDR, DEMO_PIT_CHANNEL, USEC_TO_COUNT(1000000U, PIT_SOURCE_CLOCK));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;Where the&amp;nbsp; USEC_TO_COUNT&amp;nbsp;is only decremented by one inside the function.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;But if we&amp;nbsp; use Config tools to do PIT setup :&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#333333"&gt;#define PIT_CHANNEL_0_TICKS USEC_TO_COUNT(100000U, PIT_CLK_FREQ) &lt;FONT color="#FF0000"&gt;- 1U&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT color="#333333"&gt; PIT_SetTimerPeriod(PIT_PERIPHERAL, PIT_CHANNEL_0, PIT_CHANNEL_0_TICKS);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;The USEC_TO_COUNT&amp;nbsp; is decremented by one twice, by the define generated by config tools and the function.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;Thank you.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#333333"&gt;Diego.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 22:21:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/PIT-Ticks-off-by-one/m-p/1390937#M1292</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-12-22T22:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: PIT Ticks off by one</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/PIT-Ticks-off-by-one/m-p/1392313#M1293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194894"&gt;@IdrisCodes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just wanted to let you know that our SW team is now aware of the error that you reported.&lt;/P&gt;
&lt;P&gt;According changes will be made whenever possible. Please note that we do not have any expected date for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your understanding and for reporting this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 16:29:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/PIT-Ticks-off-by-one/m-p/1392313#M1293</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-12-27T16:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: PIT Ticks off by one</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/PIT-Ticks-off-by-one/m-p/1394837#M1294</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thank you for reporting the issue. I have analyzed it. The latest version of the PIT driver has been updated to decrement the count value by one in the&amp;nbsp;&lt;SPAN&gt;PIT_SetTimerPeriod() function. A new version of the PIT component has been created and it will be available in the upcoming release MCUXPresso Config Tools V11.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Marek Neuzil&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 13:38:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/PIT-Ticks-off-by-one/m-p/1394837#M1294</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2022-01-05T13:38:20Z</dc:date>
    </item>
  </channel>
</rss>

