<?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>LPC Microcontrollersのトピックexternal interrupts issue</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/external-interrupts-issue/m-p/531349#M10171</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lollobrigido on Tue Mar 03 04:54:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I’m using LPC1115 on a custom board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDE: LPCXpress v7.6.2 [Build 326]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I’d like to catch external interrupt using a switch and a pullup resistor connected to PIO1_10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my simple code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define INT_PORT 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define INT_PIN&amp;nbsp; 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define INT_IOCON&amp;nbsp; IOCON_PIO1_10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void PIOINT0_IRQHandler(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Clear interrupt */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_ClearInts(LPC_GPIO, INT_PORT, (1 &amp;lt;&amp;lt; INT_PIN));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&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;SystemCoreClockUpdate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_GPIO_Init(LPC_GPIO);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_IOCON_PinMuxSet(LPC_IOCON, INT_IOCON,(IOCON_FUNC0 | IOCON_MODE_PULLUP | IOCON_DIGMODE_EN));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_GPIO_SetupPinInt(LPC_GPIO, INT_PORT, INT_PIN, GPIO_INT_BOTH_EDGES);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_GPIO_EnableInt(LPC_GPIO, INT_PORT, (1 &amp;lt;&amp;lt; INT_PIN));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_EnableIRQ(EINT0_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used code from pinint.c example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really don’t know why when I press the button nothing happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I’m using a debug setting a break point inside ISR routine but It doesn’t enter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried changing pins of micro, moving switch to other pin of other port, but result is still the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What can be the problem? Why I’m not able to enable external interrupt?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:31:39 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:31:39Z</dc:date>
    <item>
      <title>external interrupts issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/external-interrupts-issue/m-p/531349#M10171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lollobrigido on Tue Mar 03 04:54:00 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I’m using LPC1115 on a custom board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IDE: LPCXpress v7.6.2 [Build 326]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I’d like to catch external interrupt using a switch and a pullup resistor connected to PIO1_10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my simple code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#define INT_PORT 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define INT_PIN&amp;nbsp; 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#define INT_IOCON&amp;nbsp; IOCON_PIO1_10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void PIOINT0_IRQHandler(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Clear interrupt */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_ClearInts(LPC_GPIO, INT_PORT, (1 &amp;lt;&amp;lt; INT_PIN));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&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;SystemCoreClockUpdate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_GPIO_Init(LPC_GPIO);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_IOCON_PinMuxSet(LPC_IOCON, INT_IOCON,(IOCON_FUNC0 | IOCON_MODE_PULLUP | IOCON_DIGMODE_EN));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_GPIO_SetupPinInt(LPC_GPIO, INT_PORT, INT_PIN, GPIO_INT_BOTH_EDGES);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_GPIO_EnableInt(LPC_GPIO, INT_PORT, (1 &amp;lt;&amp;lt; INT_PIN));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_EnableIRQ(EINT0_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while(1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used code from pinint.c example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really don’t know why when I press the button nothing happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I’m using a debug setting a break point inside ISR routine but It doesn’t enter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried changing pins of micro, moving switch to other pin of other port, but result is still the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What can be the problem? Why I’m not able to enable external interrupt?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:31:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/external-interrupts-issue/m-p/531349#M10171</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: external interrupts issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/external-interrupts-issue/m-p/531350#M10172</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 Mar 03 06:24:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: lollobrigido&lt;/STRONG&gt;&lt;BR /&gt;What can be the problem? Why I’m not able to enable external interrupt?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could be useful if you enable the interrupt which you are useing, which is EINT[color=#f00]&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;[/color]_IRQn with handler void PIOINT[color=#f00]&lt;/SPAN&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;SPAN&gt;[/color]_IRQHandler(void) in your case&amp;nbsp; :D &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/external-interrupts-issue/m-p/531350#M10172</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: external interrupts issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/external-interrupts-issue/m-p/531351#M10173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lollobrigido on Tue Mar 03 07:12:11 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt; :O ...sorry, many thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now it is working!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:31:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/external-interrupts-issue/m-p/531351#M10173</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:31:40Z</dc:date>
    </item>
  </channel>
</rss>

