<?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: Interrupt Handler Counters - what for?</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528987#M1263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kendwyer on Tue Mar 16 19:38:49 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep, they are there to help debug the interrupt handler, keeping count of the number of times the IRQ was called.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:13:54 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:13:54Z</dc:date>
    <item>
      <title>Interrupt Handler Counters - what for?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528984#M1260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tkreyche on Mon Mar 15 14:05:21 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some purpose that I'm missing, for the gpio_counter and p0_1_counter in the interrupt handlers? I can't find reference to them elsewhere in the library or sample application code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks, Tom &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][FONT=Arial]void[/FONT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE][/COLOR][/SIZE][/B][LEFT][FONT=Arial][SIZE=2]PIOINT0_IRQHandler([/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]void[/COLOR][/SIZE][/COLOR][/SIZE][/B][/FONT][SIZE=2][FONT=Arial])[/FONT][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2][FONT=Arial]{[/FONT][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][FONT=Arial]uint32_t regVal;[/FONT][/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2][FONT=Arial]gpio0_counter++;[/FONT][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][FONT=Arial]regVal = GPIOIntStatus( PORT0, 1 );[/FONT][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][FONT=Arial]if[/FONT][/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][FONT=Arial] ( regVal )[/FONT][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][FONT=Arial]{[/FONT][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][FONT=Arial]p0_1_counter++;[/FONT][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][FONT=Arial]GPIOIntClear( PORT0, 1 );[/FONT][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][FONT=Arial]} [/FONT][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055][FONT=Arial]return[/FONT][/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][FONT=Arial];[/FONT][/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][FONT=Arial]}[/FONT][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/LEFT]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528984#M1260</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Handler Counters - what for?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528985#M1261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LynnF on Mon Mar 15 17:01:08 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Good question I have wondered the same. What I believe they may be used for is during debug you could inspect them to see how many times the interrupt may have been called. Just my 50% guess.....50% I am right.....50% I am wrong&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528985#M1261</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Handler Counters - what for?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528986#M1262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tkreyche on Mon Mar 15 23:30:16 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Interrupt works fine with the counters commented out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528986#M1262</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Handler Counters - what for?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528987#M1263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kendwyer on Tue Mar 16 19:38:49 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yep, they are there to help debug the interrupt handler, keeping count of the number of times the IRQ was called.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528987#M1263</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Handler Counters - what for?</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528988#M1264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fjrg76 on Sun Oct 23 18:57:32 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That's just an example. You can put whatever code you application needs. In this case the example shows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- the ISR handler signature&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- how to mask the pin that triggers the interrupt. Remember that any GPIO pin is capable of triggering an interrupt, so the "GPIOIntStatus" register is telling you which pin triggered the interrupt. If you only have one pin for external interrupt then may be you can avoid the testing; otherwise (e.g. two or more external interrupts) you may take different action depending on which pin got activated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:13:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Interrupt-Handler-Counters-what-for/m-p/528988#M1264</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:13:55Z</dc:date>
    </item>
  </channel>
</rss>

