<?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>LPCXpresso IDEのトピックRe: Separate WAKEUP_IRQHandler functions</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561647#M16416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tbelo on Tue May 21 03:37:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally it is recomended that the IRQ handler function should be as small as possible and also that nested IRQ handlers must be avoided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application (and also many similar applications) require the device to be in deep-sleep mode for 24hours and wakeup doing some stuff that takes ~15 minutes. During normal operation application make use of other IRQ handlers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the normal application code will be called from the WAKEUP_IRQHandler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that OK ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also about monitoring deep-sleep mode do you think ordering an oscilloscope is mandatory?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Theodore&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:40:09 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:40:09Z</dc:date>
    <item>
      <title>Separate WAKEUP_IRQHandler functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561641#M16410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tbelo on Sun Mar 03 03:35:39 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want is to combine selfwakeup using timer [U]with[/U] wakeup from externally triggered pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I realize that exists a single function for this: WAKEUP_IRQHandler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I have 2 different WAKEUP_IRQHandler functions for each IRQ ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561641#M16410</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Separate WAKEUP_IRQHandler functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561642#M16411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sun Mar 03 05:56:01 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No, 'Start Logic' is using several interrupt sources to trigger one interrupt handler ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UM10398:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;3.10.2 Start logic&lt;BR /&gt;....&lt;BR /&gt;The port pins PIO0_0 to PIO0_11 and PIO1_0 are connected to the start logic and serve as wake-up pins. The user must program the start logic registers for each input to set the appropriate edge polarity for the corresponding wake-up event. Furthermore, the interrupts corresponding to each input must be enabled in the NVIC.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561642#M16411</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Separate WAKEUP_IRQHandler functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561643#M16412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tbelo on Sun Mar 03 08:13:22 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any solution on that ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561643#M16412</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Separate WAKEUP_IRQHandler functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561644#M16413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sun Mar 03 08:24:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: tbelo&lt;/STRONG&gt;&lt;BR /&gt;Is there any solution on that ?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just use Start Logic as shown in sample ;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561644#M16413</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Separate WAKEUP_IRQHandler functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561645#M16414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tbelo on Sun Mar 03 13:56:09 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;By the use of the&amp;nbsp; Start logic status register (STARTSRP) in the WakeUP_IRQ_Handler function&amp;nbsp; can I distinguish the source of the IRQ ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561645#M16414</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Separate WAKEUP_IRQHandler functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561646#M16415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sun Mar 03 14:22:15 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: tbelo&lt;/STRONG&gt;&lt;BR /&gt;By the use of the&amp;nbsp; Start logic status register (STARTSRP) in the WakeUP_IRQ_Handler function&amp;nbsp; can I distinguish the source of the IRQ ?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start logic status register 0 (STARTSRP0) is showing you which pin has started Start Logic :):)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UM10398:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;3.5.32 Start logic status register 0&lt;BR /&gt;This register reflects the status of the enabled start signal bits. The bit assignment is&lt;BR /&gt;identical to Table 36. Each bit (if enabled) reflects the state of the start logic, i.e. whether or not a[COLOR=Red] wake-up signal has been received for a given pin[/COLOR].&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561646#M16415</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Separate WAKEUP_IRQHandler functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561647#M16416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tbelo on Tue May 21 03:37:25 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally it is recomended that the IRQ handler function should be as small as possible and also that nested IRQ handlers must be avoided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application (and also many similar applications) require the device to be in deep-sleep mode for 24hours and wakeup doing some stuff that takes ~15 minutes. During normal operation application make use of other IRQ handlers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the normal application code will be called from the WAKEUP_IRQHandler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that OK ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also about monitoring deep-sleep mode do you think ordering an oscilloscope is mandatory?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Theodore&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561647#M16416</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Separate WAKEUP_IRQHandler functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561648#M16417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue May 21 03:48:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: tbelo&lt;/STRONG&gt;&lt;BR /&gt;So the normal application code will be called from the WAKEUP_IRQHandler.&lt;BR /&gt;Is that OK ?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, then you can detect the source of the start as described above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: tbelo&lt;/STRONG&gt;&lt;BR /&gt;Also about monitoring deep-sleep mode do you think ordering an oscilloscope is mandatory?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what 'dfv' is and which distributors are available there, but even a simple 'cheap' DSO is very useful to find problems and understand what's happening.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561648#M16417</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Separate WAKEUP_IRQHandler functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561649#M16418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tbelo on Tue May 21 04:29:26 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So programm flow can be similar to that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void WAKEUP_IRQHandler(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Switch from WDT osc to normal main clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Clear timer match register&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Clear sleep bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//disable timer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//read Start logic status register (STARTSRP) and run the normal code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//re-enable deep-sleep&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//enable deep-sleep&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; while(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; NVIC_ClearPendingIRQ(WAKEUPx_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; NVIC_EnableIRQ(WAKEUPx_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; __WFI();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561649#M16418</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Separate WAKEUP_IRQHandler functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561650#M16419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Tue May 21 04:38:01 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I prefer to keep ISR short and do the stuff in main. Therefore I would use a flag in ISR and check this flag in main loop to decide there...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:40:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Separate-WAKEUP-IRQHandler-functions/m-p/561650#M16419</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:40:10Z</dc:date>
    </item>
  </channel>
</rss>

