<?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: Change PIT Timer Period While Running in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Change-PIT-Timer-Period-While-Running/m-p/1288216#M14571</link>
    <description>&lt;P&gt;Update: I figured it out.&lt;/P&gt;&lt;P&gt;First, store the number of ticks already counted (if necessary) by subtracting the previous period by PIT_GetCurrentTimerCount(...).&lt;/P&gt;&lt;P&gt;Then call PIT_StopTimer(...) to stop the timer.&lt;/P&gt;&lt;P&gt;Then change the period with PIT_SetTimerPeriod(...).&lt;/P&gt;&lt;P&gt;Then call PIT_StartTimer(...) to restart the timer with the new period.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 10:23:36 GMT</pubDate>
    <dc:creator>D_TTSA</dc:creator>
    <dc:date>2021-06-07T10:23:36Z</dc:date>
    <item>
      <title>Change PIT Timer Period While Running</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Change-PIT-Timer-Period-While-Running/m-p/1286903#M14524</link>
      <description>&lt;P&gt;Good day&lt;/P&gt;&lt;P&gt;I have a PIT timer that generates an interrupt every ms.&lt;/P&gt;&lt;P&gt;I would like to adjust the period on a regular basis in my program.&lt;/P&gt;&lt;P&gt;I tried calling the&amp;nbsp;PIT_SetTimerPeriod() function, but this seems to have no effect.&lt;/P&gt;&lt;P&gt;I think that perhaps the timer must be stopped before the period can be adjusted.&lt;/P&gt;&lt;P&gt;Is there a way around this? Is it possible to change the timer period while the timer is running so that it doesn't lose it's counter?&lt;/P&gt;&lt;P&gt;I would like to delay the interrupt from occurring slightly sometimes, and sometimes have the interrupt happen sooner, preferably without having to de-initialise and re-initialise it every time.&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 15:01:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Change-PIT-Timer-Period-While-Running/m-p/1286903#M14524</guid>
      <dc:creator>D_TTSA</dc:creator>
      <dc:date>2021-06-03T15:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Change PIT Timer Period While Running</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Change-PIT-Timer-Period-While-Running/m-p/1288216#M14571</link>
      <description>&lt;P&gt;Update: I figured it out.&lt;/P&gt;&lt;P&gt;First, store the number of ticks already counted (if necessary) by subtracting the previous period by PIT_GetCurrentTimerCount(...).&lt;/P&gt;&lt;P&gt;Then call PIT_StopTimer(...) to stop the timer.&lt;/P&gt;&lt;P&gt;Then change the period with PIT_SetTimerPeriod(...).&lt;/P&gt;&lt;P&gt;Then call PIT_StartTimer(...) to restart the timer with the new period.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 10:23:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Change-PIT-Timer-Period-While-Running/m-p/1288216#M14571</guid>
      <dc:creator>D_TTSA</dc:creator>
      <dc:date>2021-06-07T10:23:36Z</dc:date>
    </item>
  </channel>
</rss>

