<?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 GPIO-issues in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/GPIO-issues/m-p/528436#M933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by monem on Wed Jan 29 09:06:25 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after study th GPIO-Chapter in User Manual, i have started to write my first Blinky-Program on LPCXpresso 1769. At first i was glad when i saw the LED Blinking, but on the secund view, when i observe the Debuger. It shew me, that after steping over the "LPC_GPIO0-&amp;gt;FIOCLR = (1&amp;lt;&amp;lt;17);"&amp;nbsp; the led ist still ligting, and otherwise when i step over "LPC_GPIO0-&amp;gt;FIOSET = (1&amp;lt;&amp;lt;17);" the led turns of; so that the Program works conversely!! which is not comprehensible for a beginner like me. Can anyone please explain this behavior. (the code below shows my Program from main line). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// TODO: insert code here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned int i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIODIR= (1&amp;lt;&amp;lt;17);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIOCLR = (1&amp;lt;&amp;lt;17);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIOSET = (1&amp;lt;&amp;lt;17);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Enter an infinite loop, just incrementing a counter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIOSET = (1&amp;lt;&amp;lt;17);;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=0; i&amp;lt;10000000; i++);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIOCLR = (1&amp;lt;&amp;lt;17);;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=0; i&amp;lt;10000000; i++);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return 0 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:03:06 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:03:06Z</dc:date>
    <item>
      <title>GPIO-issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GPIO-issues/m-p/528436#M933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by monem on Wed Jan 29 09:06:25 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after study th GPIO-Chapter in User Manual, i have started to write my first Blinky-Program on LPCXpresso 1769. At first i was glad when i saw the LED Blinking, but on the secund view, when i observe the Debuger. It shew me, that after steping over the "LPC_GPIO0-&amp;gt;FIOCLR = (1&amp;lt;&amp;lt;17);"&amp;nbsp; the led ist still ligting, and otherwise when i step over "LPC_GPIO0-&amp;gt;FIOSET = (1&amp;lt;&amp;lt;17);" the led turns of; so that the Program works conversely!! which is not comprehensible for a beginner like me. Can anyone please explain this behavior. (the code below shows my Program from main line). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// TODO: insert code here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unsigned int i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIODIR= (1&amp;lt;&amp;lt;17);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIOCLR = (1&amp;lt;&amp;lt;17);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIOSET = (1&amp;lt;&amp;lt;17);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Enter an infinite loop, just incrementing a counter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIOSET = (1&amp;lt;&amp;lt;17);;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=0; i&amp;lt;10000000; i++);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIOCLR = (1&amp;lt;&amp;lt;17);;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=0; i&amp;lt;10000000; i++);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return 0 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GPIO-issues/m-p/528436#M933</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO-issues</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/GPIO-issues/m-p/528437#M934</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 Jan 29 09:42:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;After &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIOSET = (1&amp;lt;&amp;lt;17); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this Pin should be high,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO0-&amp;gt;FIOCLR = (1&amp;lt;&amp;lt;17);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this Pin should be low.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can check (or change) this in Peripherals View.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your LED is lighting or not is a question how you've connected this LED&amp;nbsp; ;-) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/GPIO-issues/m-p/528437#M934</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:03:06Z</dc:date>
    </item>
  </channel>
</rss>

