<?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 Write in a register in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546042#M9488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Thom314 on Thu Aug 02 05:54:23 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I begin with LPCXpresso, and I don't know how to write in a register of a LPC11U14. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my source code (power on a LED) and compilation errors :&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;
#ifdef __USE_CMSIS
#include "LPC11Uxx.h"
#endif

#include &amp;lt;cr_section_macros.h&amp;gt;
#include &amp;lt;NXP/crp.h&amp;gt;

// Variable to store CRP value in. Will be placed automatically
// by the linker when "Enable Code Read Protect" selected.
// See crp.h header for more information
__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;

// TODO: insert other include files here

// TODO: insert other definitions and declarations here

int main(void)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO0_IODIR |= (1 &amp;lt;&amp;lt; 7);
&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; GPIO0_IOSET |= (1 &amp;lt;&amp;lt; 7)
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;
../src/main.c:30:2: error: 'GPIO0_IODIR' undeclared (first use in this function)
../src/main.c:30:2: note: each undeclared identifier is reported only once for each function it appears in
make: *** [src/main.o] Error 1
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any reference manual to learn the syntax ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:52:54 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T01:52:54Z</dc:date>
    <item>
      <title>Write in a register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546042#M9488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Thom314 on Thu Aug 02 05:54:23 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I begin with LPCXpresso, and I don't know how to write in a register of a LPC11U14. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my source code (power on a LED) and compilation errors :&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;
#ifdef __USE_CMSIS
#include "LPC11Uxx.h"
#endif

#include &amp;lt;cr_section_macros.h&amp;gt;
#include &amp;lt;NXP/crp.h&amp;gt;

// Variable to store CRP value in. Will be placed automatically
// by the linker when "Enable Code Read Protect" selected.
// See crp.h header for more information
__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;

// TODO: insert other include files here

// TODO: insert other definitions and declarations here

int main(void)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO0_IODIR |= (1 &amp;lt;&amp;lt; 7);
&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; GPIO0_IOSET |= (1 &amp;lt;&amp;lt; 7)
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0 ;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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;
../src/main.c:30:2: error: 'GPIO0_IODIR' undeclared (first use in this function)
../src/main.c:30:2: note: each undeclared identifier is reported only once for each function it appears in
make: *** [src/main.o] Error 1
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any reference manual to learn the syntax ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thomas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546042#M9488</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Write in a register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546043#M9489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Aug 02 06:03:03 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you haven't got __USE_CMSIS defined, then it won't be including the LPC11Uxx.h header file, and so you won't have any definitions for GPIO (or anything else!)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546043#M9489</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Write in a register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546044#M9490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Thom314 on Thu Aug 02 06:12:40 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok thanks TheFallGuy, but this has not solved the problem :(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546044#M9490</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Write in a register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546045#M9491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Aug 02 06:49:53 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Why not take one of the working examples and see what is different between your project and theirs?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546045#M9491</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Write in a register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546046#M9492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Thom314 on Fri Aug 03 00:03:51 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I had a look at exemples before ask the question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For exemple, in blinky project, I think they used CMSIS functions, like GPIOSetDir(0, 7, 1). I tried to use it, but it don't works too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I have a problem with include files, but in exemple code there is no more include files than in mine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing I don't understand in LPCXpresso is where is the link between register (memory) and keywords (like GPIO0_IODIR) ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have good programming experience with PIC MCU, I begin with Cortex M0, I spent hours looking how to turn on this LED... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there someone who could explain me step by step how to turn on this LED, starting from a new project ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546046#M9492</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Write in a register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546047#M9493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri Aug 03 00:35:27 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Try: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.youtube.com/watch?v=E6vSPloei-0&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546047#M9493</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Write in a register</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546048#M9494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Thom314 on Tue Aug 07 00:37:18 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok thanks, it works now (I have created a new workspace and start a new project like on the video) !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:52:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Write-in-a-register/m-p/546048#M9494</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T01:52:57Z</dc:date>
    </item>
  </channel>
</rss>

