<?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: LPC1114FN/102 R_PIO0_11 not functioning as output.  - [SOLVED] in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538273#M11643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mp035 on Tue Sep 02 15:39:18 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That operation is perfrormed in GPIOInit();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Sorry.&amp;nbsp; You are correct. GPIOInit performs &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;LPC_SYSCTL-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;&lt;STRONG&gt;6&lt;/STRONG&gt;);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but NOT&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;LPC_SYSCTL-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;&lt;STRONG&gt;16&lt;/STRONG&gt;);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is, as you pointed out, is the IOCON block.&amp;nbsp;&amp;nbsp; It seems rather silly that&amp;nbsp; a library function would enable the GPIO block, but not the IOCON block, especially on a device where IOCON is a prerequisite to using GPIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways, thank you very much for your reply, it saved me pulling more of my hair out!&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:40:59 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:40:59Z</dc:date>
    <item>
      <title>LPC1114FN/102 R_PIO0_11 not functioning as output.  - [SOLVED]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538271#M11641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mp035 on Tue Sep 02 06:35:29 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All, I'm new to LPC devices, have used all forms of PIC microcontrollers for many years.&amp;nbsp; I am trying to drive R_PIO0_11 on LPC1114 in DIP28 package, and no matter what I try, it does not respond, other GPIO pins seem to work fine.&amp;nbsp; Any hints on what I am missing would be very welcome.&amp;nbsp; Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOInit();

&amp;nbsp;&amp;nbsp;&amp;nbsp; SystemCoreClockUpdate();
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Setup SysTick Timer for 1 msec interrupts&amp;nbsp; */
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (SysTick_Config(SystemCoreClock / 1000)) { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Capture error */
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; // manual CS PIN
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_IOCON-&amp;gt;R_PIO0_11 =
&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x01 | // select GPIO as function
&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x00 &amp;lt;&amp;lt; 3)| // no pull-up/pull-down
&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x00 &amp;lt;&amp;lt; 5)| // no hysteresis
&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x01 &amp;lt;&amp;lt; 7)| // digital pin
&amp;nbsp;&amp;nbsp;&amp;nbsp; (0x00 &amp;lt;&amp;lt; 10); // non open-drain
&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOSetDir(0, 11, output); //manual CS pin
&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOSetValue(0, 11, 0); //*************************** PIO0_11 stays HIGH!!!!!!!!!!
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538271#M11641</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114FN/102 R_PIO0_11 not functioning as output.  - [SOLVED]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538272#M11642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Tue Sep 02 08:36:22 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;IOCON enabled&amp;nbsp; :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
LPC_SYSCTL-&amp;gt;SYSAHBCLKCTRL |= (1[color=#f00]&amp;lt;&amp;lt;[/color]SYSCTL_CLOCK_IOCON);
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:40:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538272#M11642</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114FN/102 R_PIO0_11 not functioning as output.  - [SOLVED]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538273#M11643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mp035 on Tue Sep 02 15:39:18 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That operation is perfrormed in GPIOInit();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Sorry.&amp;nbsp; You are correct. GPIOInit performs &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;LPC_SYSCTL-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;&lt;STRONG&gt;6&lt;/STRONG&gt;);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but NOT&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;LPC_SYSCTL-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;&lt;STRONG&gt;16&lt;/STRONG&gt;);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is, as you pointed out, is the IOCON block.&amp;nbsp;&amp;nbsp; It seems rather silly that&amp;nbsp; a library function would enable the GPIO block, but not the IOCON block, especially on a device where IOCON is a prerequisite to using GPIO.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways, thank you very much for your reply, it saved me pulling more of my hair out!&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538273#M11643</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114FN/102 R_PIO0_11 not functioning as output.  - [SOLVED]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538274#M11644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Tue Sep 02 15:57:31 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mp035&lt;/STRONG&gt;&lt;BR /&gt;It seems rather silly that&amp;nbsp; a library function would enable the GPIO block, but not the IOCON block&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCOpen is far away from beeing perfect and so your logic approach isn't helping you...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clock bits are set in SystemInit or other Inits or not&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general it's helpful to use the Debugger to see if IOCON changes are really performed and IOCON bit is set...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:40:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538274#M11644</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114FN/102 R_PIO0_11 not functioning as output.  - [SOLVED]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538275#M11645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mp035 on Wed Sep 03 17:41:14 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the tips.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I ask one more question, I know where the peripheral register word names are defined, but I can not find any standard definitions for the bit positions, as there is in your code example.&amp;nbsp; Can you point me to where they are?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To be clear, this is so that my code is more readable, ie:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCTL-&amp;gt;SYSAHBCLKCTRL |= (1 &amp;lt;&amp;lt; SYSCTL_CLOCK_IOCON);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SYSCTL-&amp;gt;SYSAHBCLKCTRL |= (1&amp;nbsp; &amp;lt;&amp;lt; 16);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:41:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538275#M11645</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114FN/102 R_PIO0_11 not functioning as output.  - [SOLVED]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538276#M11646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Wed Sep 03 18:04:15 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mp035&lt;/STRONG&gt;&lt;BR /&gt;...I can not find any standard definitions for the bit positions, as there is in your code example.&amp;nbsp; Can you point me to where they are?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;F3 is your friend&amp;nbsp; :bigsmile: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you select ' SYSCTL_CLOCK_IOCON' with double click you can use 'Open Declaration' (F3) to let LPCXpresso find it... in 'clock_11xx.h'&amp;nbsp; :) &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:41:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538276#M11646</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114FN/102 R_PIO0_11 not functioning as output.  - [SOLVED]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538277#M11647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mp035 on Sat Sep 06 21:09:22 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, unfortunately F3 is not an option, because I don't have the symbol defined in my workspace, compilation using the symol results in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;error: 'SYSCTL_CLOCK_IOCON' undeclared here (not in a function)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
me@mybox:/usr/local/lpcxpresso_7.3.0_186$ find * -name clock_11xx.h
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which returned no results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a project, or something that I need to get the definitions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for all of your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:41:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538277#M11647</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1114FN/102 R_PIO0_11 not functioning as output.  - [SOLVED]</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538278#M11648</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 Sun Sep 07 01:00:39 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Download and install ('Import project(s)' menu) the matching package:&lt;/SPAN&gt;&lt;BR /&gt;&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%2Fnxpfile%2Flpcopen-software-development-platform-lpc11xx-packages-0" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc11xx-packages-0&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:41:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1114FN-102-R-PIO0-11-not-functioning-as-output-SOLVED/m-p/538278#M11648</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:41:02Z</dc:date>
    </item>
  </channel>
</rss>

