<?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 Interrupts in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147017#M166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very mauch Marco&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about timer PIT0: if I change the PIT0's registers in my main task, the functions like _time_add or _time_get and others, will be change? I mean if I can use this functions in the same way than before changing this registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Sep 2010 16:04:24 GMT</pubDate>
    <dc:creator>Awera</dc:creator>
    <dc:date>2010-09-15T16:04:24Z</dc:date>
    <item>
      <title>Timer Interrupts</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147015#M164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use a DTIM interrupt?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a periodic interrupt but I don't know how. I have used the ISR example of MQX's folder but I don't want to use PIT for my service.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone an example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 17:16:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147015#M164</guid>
      <dc:creator>Awera</dc:creator>
      <dc:date>2010-09-13T17:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Interrupts</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147016#M165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using M52259DEMOKIT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using GPT for output compare match with the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;VMCF5225_STRUCT_PTR  reg_ptr = (VMCF5225_STRUCT_PTR)BSP_IPSBAR;[...]void gpt_init (){ reg_ptr -&amp;gt; GPT.GPTIOS |= GPT_GPTIOS_IOS0;     //Attivazione Output Compare 0   reg_ptr -&amp;gt; GPT.GPTC0 = 0x00;        //GPTC0 resettato a 0   reg_ptr -&amp;gt; GPT.GPTDDR |= GPT_GPTDDR_DDRT0;     //Pin OC0 come uscita    reg_ptr -&amp;gt; GPT.GPTCTL1 |= GPT_GPTCTL1_OUTPUT0_NOTHING;  //Nessun effetto sul piedino OC0    reg_ptr -&amp;gt; GPT.GPTSCR2 |= GPT_GPTSCR2_PR_16;    //Prescaler 1/16      _int_install_kernel_isr (MCF5225_INT_TIMA_C0F, OC0_service);        reg_ptr -&amp;gt; GPT.GPTFLG1 |= GPT_GPTFLG1_CF0;     //clear flag   reg_ptr -&amp;gt; GPT.GPTIE |= GPT_GPTIE_CI0;      //Interrupt su OC0       _mcf5225_int_init (MCF5225_INT_TIMA_C0F, gpt_level, gpt_priority, 1);}[...]__declspec(interrupt:0) void OC0_service (){    count++;    reg_ptr -&amp;gt; GPT.GPTFLG1 |= GPT_GPTFLG1_CF0;     //clear flag}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set&amp;nbsp;MQX_ROM_VECTORS to 0 in the user_config.h and rebuilt bsp and psp. In the code I'm using the function _int_install_kernel_isr so that my interrupt routine is direct without MQX intervention. (It should allow faster interrupts)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may try to modify the code to your purposes. Hope it helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moreover, something about the DTIM is here&amp;nbsp;&lt;A href="https://community.freescale.com/message/60070#60070" rel="nofollow noopener noreferrer noopener noreferrer" target="_blank" title="https://community.freescale.com/message/60070#60070"&gt;https://community.freescale.com/message/60070#60070&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:48:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147016#M165</guid>
      <dc:creator>LordMark</dc:creator>
      <dc:date>2020-10-29T08:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Interrupts</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147017#M166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very mauch Marco&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question about timer PIT0: if I change the PIT0's registers in my main task, the functions like _time_add or _time_get and others, will be change? I mean if I can use this functions in the same way than before changing this registers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 16:04:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147017#M166</guid>
      <dc:creator>Awera</dc:creator>
      <dc:date>2010-09-15T16:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Interrupts</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147018#M167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I never used PIT timer so I cannot answe you precisely. But I think that you can use those function anyway. They only involve ticks and no other settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 18:55:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147018#M167</guid>
      <dc:creator>LordMark</dc:creator>
      <dc:date>2010-09-15T18:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Interrupts</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147019#M168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your posts has been really useful for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 14:40:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Timer-Interrupts/m-p/147019#M168</guid>
      <dc:creator>Awera</dc:creator>
      <dc:date>2010-09-16T14:40:50Z</dc:date>
    </item>
  </channel>
</rss>

