<?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: Disable timer1 interrupt in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Disable-timer1-interrupt/m-p/840860#M5597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally, I filtered u32IntSource to process DIO interrupts.&lt;/P&gt;&lt;P&gt;Timer1 is still a mystery, as it always interrupt in&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void APP_isrSysCon (void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* clear pending DIO changed bits by reading register */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32 u32IntSource = u32AHI_DioWakeStatus();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8 u8WakeInt = u8AHI_WakeTimerFiredStatus();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (u8WakeInt &amp;amp; E_AHI_WAKE_TIMER_MASK_1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* wake timer interrupt got us here */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBG_vPrintf(TRACE_APP_SYSCON, "APP: Wake Timer 1 Interrupt\n");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWRM_vWakeInterruptCallback();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;on wake up initiated by&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;PWRM_eScheduleActivity(&amp;amp;sWake, SLEEP_TIME, vWakeCallBack);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand where Timer1 remaining time is set. In the other hand, Timer0 never interrupt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2018 08:58:44 GMT</pubDate>
    <dc:creator>pierrelgcb</dc:creator>
    <dc:date>2018-11-05T08:58:44Z</dc:date>
    <item>
      <title>Disable timer1 interrupt</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Disable-timer1-interrupt/m-p/840859#M5596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;JN-AN-1229-ZBPro-Application-Template&lt;/P&gt;&lt;P&gt;JN5169&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I added a DIO interrupt switch to the demo, sending DIO level from End Device to Coordinator.&lt;/P&gt;&lt;P&gt;Every 5 seconds, timer1 interrupt wakes up to poll. My data only travels from End Device to Coordinator.&lt;/P&gt;&lt;P&gt;I don't need poll request, nether timer1/timer0 interrupts.&lt;/P&gt;&lt;P&gt;I need DIO interrupt in sleep mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find how to remove timer1 (and timer0) interrupts and keep DIO interrupt still working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove timer1 initialisation (APP_vInitResources =&amp;gt; &lt;EM style="text-decoration: underline;"&gt;ZQ_vQueueCreate(&amp;amp;zps_TimeEvents,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIMER_QUEUE_SIZE,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sizeof(zps_tsTimeEvent),&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (uint8*)asTimeEvent);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I get APP: Unexpected event in E_NETWORK_JOIN - 21&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I go deep in removing interrupt init, DIO interrupts are disabled too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which part of code should I remove, please ?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 15:14:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Disable-timer1-interrupt/m-p/840859#M5596</guid>
      <dc:creator>pierrelgcb</dc:creator>
      <dc:date>2018-10-26T15:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Disable timer1 interrupt</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Disable-timer1-interrupt/m-p/840860#M5597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally, I filtered u32IntSource to process DIO interrupts.&lt;/P&gt;&lt;P&gt;Timer1 is still a mystery, as it always interrupt in&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void APP_isrSysCon (void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* clear pending DIO changed bits by reading register */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32 u32IntSource = u32AHI_DioWakeStatus();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8 u8WakeInt = u8AHI_WakeTimerFiredStatus();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (u8WakeInt &amp;amp; E_AHI_WAKE_TIMER_MASK_1)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* wake timer interrupt got us here */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBG_vPrintf(TRACE_APP_SYSCON, "APP: Wake Timer 1 Interrupt\n");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWRM_vWakeInterruptCallback();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;on wake up initiated by&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;PWRM_eScheduleActivity(&amp;amp;sWake, SLEEP_TIME, vWakeCallBack);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand where Timer1 remaining time is set. In the other hand, Timer0 never interrupt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 08:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Disable-timer1-interrupt/m-p/840860#M5597</guid>
      <dc:creator>pierrelgcb</dc:creator>
      <dc:date>2018-11-05T08:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Disable timer1 interrupt</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Disable-timer1-interrupt/m-p/840861#M5598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pierre,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure that is entering the APP_isrSysCon?&lt;/P&gt;&lt;P&gt;That API is defined if you are only using the JN517X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused, did you disable the timer yet?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 23:27:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Disable-timer1-interrupt/m-p/840861#M5598</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2018-11-05T23:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Disable timer1 interrupt</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Disable-timer1-interrupt/m-p/840862#M5599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I am entering APP_isrSysCon thanks to&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#if JENNIC_CHIP_FAMILY == JN517x&lt;/P&gt;&lt;P&gt;void APP_isrSysCon ( uint32 u32Device, uint32 u32ItemBitmap )&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Disabled code&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;void APP_isrSysCon (void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Runs here&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Timer is still running. Now I am dealing with interrupt priorities as polling and button press interrupts collides over RF bus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pierre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 14:11:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Disable-timer1-interrupt/m-p/840862#M5599</guid>
      <dc:creator>pierrelgcb</dc:creator>
      <dc:date>2018-11-27T14:11:12Z</dc:date>
    </item>
  </channel>
</rss>

