<?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: Alarm in milliseconds in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Alarm-in-milliseconds/m-p/1005812#M6272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To work with millisecond interrupts I would suggest you use either the General Purpose Timer or the Quad Timer. You can refer to the SDK to see the example projects of these two timers to see how to make the proper configurations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Victor&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2020 01:15:42 GMT</pubDate>
    <dc:creator>victorjimenez</dc:creator>
    <dc:date>2020-02-27T01:15:42Z</dc:date>
    <item>
      <title>Alarm in milliseconds</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Alarm-in-milliseconds/m-p/1005811#M6271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have small question , i am using the snvs HP rtc and its alarm feature of imxrt1050 . which can give interrupt in seconds&amp;nbsp; is it &lt;STRONG&gt;possible&amp;nbsp; to get alarm in milliseconds&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2020 04:32:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Alarm-in-milliseconds/m-p/1005811#M6271</guid>
      <dc:creator>venugopal_v</dc:creator>
      <dc:date>2020-02-24T04:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alarm in milliseconds</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Alarm-in-milliseconds/m-p/1005812#M6272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To work with millisecond interrupts I would suggest you use either the General Purpose Timer or the Quad Timer. You can refer to the SDK to see the example projects of these two timers to see how to make the proper configurations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Victor&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 01:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Alarm-in-milliseconds/m-p/1005812#M6272</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2020-02-27T01:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alarm in milliseconds</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Alarm-in-milliseconds/m-p/1005813#M6273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venu ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below function to generate millisecond delay&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void delay_ms(uint32_t delay)&lt;BR /&gt;{&lt;BR /&gt; PIT-&amp;gt;CHANNEL[kPIT_Chnl_0].LDVAL = 24000*delay;&lt;BR /&gt; PIT_StartTimer(PIT, kPIT_Chnl_0);&lt;/P&gt;&lt;P&gt;while(!PIT_GetStatusFlags(PIT, kPIT_Chnl_0));&lt;BR /&gt; PIT_ClearStatusFlags(PIT, kPIT_Chnl_0, kPIT_TimerFlag);&lt;/P&gt;&lt;P&gt;PIT_StopTimer(PIT, kPIT_Chnl_0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you need a alarm for every milli second , then enable the interrupt .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void Enable_Timer_Interrupt(pit_chnl_t channel)&lt;BR /&gt;{&lt;BR /&gt; PIT_EnableInterrupts(PIT, channel, kPIT_TimerInterruptEnable);&lt;BR /&gt; EnableIRQ(PIT_IRQn);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check below , i have configured Timers to generate interrupt every 500ms , 1 second and 2 seconds .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PIT_SetTimerPeriod(PIT, kPIT_Chnl_1, 12000000); // 24,000,000 is for 1 sec 24,000 for 1ms&lt;BR /&gt; Enable_Timer_Interrupt(kPIT_Chnl_1);&lt;BR /&gt; PIT_StartTimer(PIT, kPIT_Chnl_1);&lt;/P&gt;&lt;P&gt;PIT_SetTimerPeriod(PIT, kPIT_Chnl_2, 24000000); // 24,000,000 is for 1 sec 24,000 for 1ms&lt;BR /&gt; Enable_Timer_Interrupt(kPIT_Chnl_2);&lt;BR /&gt; PIT_StartTimer(PIT, kPIT_Chnl_2);&lt;/P&gt;&lt;P&gt;PIT_SetTimerPeriod(PIT, kPIT_Chnl_3, 48000000); // 24,000,000 is for 1 sec 24,000 for 1ms&lt;BR /&gt; Enable_Timer_Interrupt(kPIT_Chnl_3);&lt;BR /&gt; PIT_StartTimer(PIT, kPIT_Chnl_3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help .&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2020 04:39:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Alarm-in-milliseconds/m-p/1005813#M6273</guid>
      <dc:creator>narenchandra401</dc:creator>
      <dc:date>2020-02-27T04:39:15Z</dc:date>
    </item>
  </channel>
</rss>

