<?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 Re: Unable to configure GPIO0_4/5 etc as input in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526491#M9121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Paul on Thu Oct 11 08:56:27 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post your Keil project?&amp;nbsp; The parts I have do not have the problem with reserved bit 7, so I would like to look at your project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:03:07 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:03:07Z</dc:date>
    <item>
      <title>Unable to configure GPIO0_4/5 etc as input</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526487#M9117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Scribe on Wed Oct 10 07:21:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've built a little widget based around the LPC1224/101 and have several buttons on GPIO1 running merrily, however GPIO0_4 refuses to respond to level changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We would greatly appreciate if some kind soul could post some sample code for configuring pin GPIO0_4 as an input as we've checked config registers over and over and can't see why this isn't working - Direction bit is 0, there's a clock to GPIO0, we've disabled the pull-up for our configuration (circuit proven on GPIO1) and everything else is set correctly by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:03:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526487#M9117</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure GPIO0_4/5 etc as input</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526488#M9118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by tha on Wed Oct 10 12:19:42 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you try using the GPIO API from the code bundle and see it that works?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:03:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526488#M9118</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure GPIO0_4/5 etc as input</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526489#M9119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Paul on Wed Oct 10 14:04:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;There shouldn't be any difference between the configuration of GPIO0_4 and other GPIO pins.&amp;nbsp; The clock to GPIO0 is enabled by default, and the default configuration for this pin is a GPIO with internal pull-up. So the configuration to get this working is minimal:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;PIO0_4 &amp;amp;= ~(1&amp;lt;&amp;lt;4); // disable internal pull-up&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure you don't set IOCON using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_IOCON-&amp;gt;PIO0_4 = 0;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or else this bit will always read back as a '0' when reading the PIN register (reserved bit 7 must remain 1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526489#M9119</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure GPIO0_4/5 etc as input</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526490#M9120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Scribe on Thu Oct 11 03:36:18 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi pboogaards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue was that the reserved bit 7 was set to 0 by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even in a fresh program (ensuring there's no LPC_IOCON-&amp;gt;PIO0_4 = 0;) I find this to be the case and so unless Keil's start-up code is doing something odd, then the chip stock I have is not behaving as it should.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:03:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526490#M9120</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure GPIO0_4/5 etc as input</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526491#M9121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Paul on Thu Oct 11 08:56:27 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post your Keil project?&amp;nbsp; The parts I have do not have the problem with reserved bit 7, so I would like to look at your project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:03:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526491#M9121</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to configure GPIO0_4/5 etc as input</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526492#M9122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Scribe on Fri Oct 12 00:55:10 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I will create an empty project today and run it on the hardware either later on or sometime tomorrow to confirm then I'll rar it up no problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:03:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Unable-to-configure-GPIO0-4-5-etc-as-input/m-p/526492#M9122</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:03:08Z</dc:date>
    </item>
  </channel>
</rss>

