<?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のトピックRe: LPC Open PININT assignment bug 11U68</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-PININT-assignment-bug-11U68/m-p/579819#M20128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Mon Aug 11 10:29:26 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Indeed: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fbug-lpcopen-206-lpc11u67" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/bug-lpcopen-206-lpc11u67&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:18:56 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:18:56Z</dc:date>
    <item>
      <title>LPC Open PININT assignment bug 11U68</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-PININT-assignment-bug-11U68/m-p/579818#M20127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brownm on Mon Aug 11 02:33:40 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi there &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Page 52 of the user manual UM10732 states the following with regard to the assignment of PINSEL registers. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pin Interrupt Select registers 0 to 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The pin interrupt select register is an input mux for the pin interrupt and allows to select&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;any pin (except PIO2_8 to PIO2_23) as an external interrupt. A total of eight pin interrupt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;are supported. Each of the eight PINTSEL registers selects one GPIO pin from the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;following pins as external pin interrupt:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Port 0: PIO0_0 to PIO0_23 (Pin number INTPIN = 0 to 23)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;• Port 1: PIO1_0 to PIO1_31 &lt;/SPAN&gt;&lt;STRONG&gt;(Pin number INTPIN = 24 to 55)&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;• Port 2: PIO2_0 to PIO2_7 &lt;/SPAN&gt;&lt;STRONG&gt;(Pin number INTPIN = 56 to 63)&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The selected pin of each PINTSEL register is connected to the corresponding pin interrupt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the NVIC. The pin interrupt must be enabled using interrupt slots # 0 to 7 (see Table 6).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To enable each pin interrupt and configure its edge or level sensitivity, use the GPIO pin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;interrupt registers (see Table 106).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;syscon_11u6x.c&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Has the following function in error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Setup a pin source for the pin interrupts (0-7) */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void Chip_SYSCTL_SetPinInterrupt(uint32_t intno, uint8_t port, uint8_t pin)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (port == 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Pins P0.1 to P0.23 only */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCTL-&amp;gt;PINTSEL[intno] = (uint32_t) pin;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* P1.1 to P1.31 and P2.0 to P2.7 */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCTL-&amp;gt;PINTSEL[intno] = (uint32_t) ((port - 1) * 32 + pin);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;------------------ BADNESS HERE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCTL-&amp;gt;PINTSEL[intno] = (uint32_t) ((port - 1) * 24 + pin);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;------------------SHOULD BE 24?????&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;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Marshall&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:18:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-PININT-assignment-bug-11U68/m-p/579818#M20127</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Open PININT assignment bug 11U68</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-PININT-assignment-bug-11U68/m-p/579819#M20128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Mon Aug 11 10:29:26 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Indeed: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fbug-lpcopen-206-lpc11u67" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/bug-lpcopen-206-lpc11u67&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:18:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-PININT-assignment-bug-11U68/m-p/579819#M20128</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC Open PININT assignment bug 11U68</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-PININT-assignment-bug-11U68/m-p/579820#M20129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by brownm on Mon Aug 11 16:34:42 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for this &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code was also flawed!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Marshall&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:18:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-Open-PININT-assignment-bug-11U68/m-p/579820#M20129</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:18:57Z</dc:date>
    </item>
  </channel>
</rss>

