<?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 Odd GPIO behavior in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Odd-GPIO-behavior/m-p/526483#M9113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jdurand on Sat Sep 08 17:35:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done several LPC boards already (LPC1113, LPC1754, LPC4350) and never had a problem with the GPIO...until now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an LPC1226FBD48/301 part on my board here and while I can run code on it (FreeRTOS is running one task at the moment), I can't seem to talk to the GPIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, I go through and configure some of the IOCON bits for GPIO0 and then try to write to the DIR and OUT registers.&amp;nbsp; No matter what I write the registers read back as 0.&amp;nbsp; I tried using the Peripheral tab of the Code Red debugger and when I try to change the port in that, it warns me for example that it read back 0 after I wrote a 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a power or clock I have to enable for the GPIO?&amp;nbsp; I've been looking through the manual but haven't found anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:02:48 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:02:48Z</dc:date>
    <item>
      <title>Odd GPIO behavior</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Odd-GPIO-behavior/m-p/526483#M9113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jdurand on Sat Sep 08 17:35:33 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done several LPC boards already (LPC1113, LPC1754, LPC4350) and never had a problem with the GPIO...until now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an LPC1226FBD48/301 part on my board here and while I can run code on it (FreeRTOS is running one task at the moment), I can't seem to talk to the GPIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, I go through and configure some of the IOCON bits for GPIO0 and then try to write to the DIR and OUT registers.&amp;nbsp; No matter what I write the registers read back as 0.&amp;nbsp; I tried using the Peripheral tab of the Code Red debugger and when I try to change the port in that, it warns me for example that it read back 0 after I wrote a 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a power or clock I have to enable for the GPIO?&amp;nbsp; I've been looking through the manual but haven't found anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:02:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Odd-GPIO-behavior/m-p/526483#M9113</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Odd GPIO behavior</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Odd-GPIO-behavior/m-p/526484#M9114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jdurand on Sat Sep 08 22:06:26 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I found it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In SystemINIT() in CMSIS they have this section&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; /* System clock to the IOCON needs to be enabled or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; most of the I/O related peripherals won't work. */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL = 0x0001001FUL;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is, it's turning OFF most clocks that were on by default.&amp;nbsp; All I had to do was turn them back on again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:02:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Odd-GPIO-behavior/m-p/526484#M9114</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:02:49Z</dc:date>
    </item>
  </channel>
</rss>

