<?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 P1_0 Interrumption in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/P1-0-Interrumption/m-p/588595#M28211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by amelendez@dibal.com on Fri Nov 04 04:09:12 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working on the LPCXpresso LPC1114 evaluation board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tested and executed the "extint" example without any problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The way for testing it it's by placing a breakpoint in PIOINT2_IRQHandler at p2_1_counter++ instruction (in gpio.c). Everytime that I shortcircuited p2.1 to gnd the execution stopped at the defined breakpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've not been able to perform the same with the p1.1 pin. I've interchanged PORT2 by PORT1 and I didn't get any stop in the breakpoint placed in PIOINT1_IRQHandler at p1_1_counter++ instruction making a shortcircuit on AD2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested that the GPIO1 status changed (monitoring the memory table in the LPCXpresso IDE) as desired averytime I shortcircuited P1.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The main code is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]int[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [B]main[/B] ([/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]void[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2])[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2]{[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Basic chip initialization is taken care of in SystemInit() called[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]* from the startup code. SystemInit() and chip settings are defined[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]* in the CMSIS system_&amp;lt;part family&amp;gt;.c file.[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f]*/[/COLOR][/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Initialize GPIO (sets up clock) */[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]GPIOInit();[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* [U]use[/U] port1_1 as input event, interrupt test. */[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]GPIOSetDir( PORT1, 1, 0 );[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* port1_0, single edge trigger, active high. */[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]GPIOSetInterrupt( PORT1, 1, 0, 0, 0 );[/SIZE][/LEFT]&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;BR /&gt;&lt;SPAN&gt;[SIZE=2]GPIOIntEnable( PORT1, 1 );[/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]( 1 );[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]}[/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:47:27 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:47:27Z</dc:date>
    <item>
      <title>P1_0 Interrumption</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/P1-0-Interrumption/m-p/588595#M28211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by amelendez@dibal.com on Fri Nov 04 04:09:12 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm working on the LPCXpresso LPC1114 evaluation board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tested and executed the "extint" example without any problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The way for testing it it's by placing a breakpoint in PIOINT2_IRQHandler at p2_1_counter++ instruction (in gpio.c). Everytime that I shortcircuited p2.1 to gnd the execution stopped at the defined breakpoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've not been able to perform the same with the p1.1 pin. I've interchanged PORT2 by PORT1 and I didn't get any stop in the breakpoint placed in PIOINT1_IRQHandler at p1_1_counter++ instruction making a shortcircuit on AD2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested that the GPIO1 status changed (monitoring the memory table in the LPCXpresso IDE) as desired averytime I shortcircuited P1.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The main code is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]int[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] [B]main[/B] ([/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]void[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2])[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2]{[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Basic chip initialization is taken care of in SystemInit() called[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]* from the startup code. SystemInit() and chip settings are defined[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]* in the CMSIS system_&amp;lt;part family&amp;gt;.c file.[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f]*/[/COLOR][/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* Initialize GPIO (sets up clock) */[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]GPIOInit();[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* [U]use[/U] port1_1 as input event, interrupt test. */[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]GPIOSetDir( PORT1, 1, 0 );[/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* port1_0, single edge trigger, active high. */[/COLOR][/SIZE][/COLOR][/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]GPIOSetInterrupt( PORT1, 1, 0, 0, 0 );[/SIZE][/LEFT]&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;BR /&gt;&lt;SPAN&gt;[SIZE=2]GPIOIntEnable( PORT1, 1 );[/SIZE][LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]while[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]( 1 );[/SIZE][/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]}[/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:47:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/P1-0-Interrumption/m-p/588595#M28211</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: P1_0 Interrumption</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/P1-0-Interrumption/m-p/588596#M28212</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 Sat Nov 05 08:27:53 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Default pin function for PIO1_1 isn't PIO (See IOCON_R_PIO1_1 register), so you have to change LPC_IOCON-&amp;gt;PIO1_1 register :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:47:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/P1-0-Interrumption/m-p/588596#M28212</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: P1_0 Interrumption</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/P1-0-Interrumption/m-p/588597#M28213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by amelendez@dibal.com on Mon Nov 07 03:35:57 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Default pin function for PIO1_1 isn't PIO (See IOCON_R_PIO1_1 register), so you have to change LPC_IOCON-&amp;gt;PIO1_1 register :eek:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. Also it was needed to add&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#define[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] CONFIG_GPIO_DEFAULT_PIOINT1_IRQHANDLER [/SIZE]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=2]in driver_config.h[/SIZE]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:47:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/P1-0-Interrumption/m-p/588597#M28213</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:47:29Z</dc:date>
    </item>
  </channel>
</rss>

