<?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: IO Problems on LPC 1343 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585535#M26784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Thu Jun 28 12:38:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe the pins with R_ are pins connected to the debug lines swd/jtag and are configured different then the other pins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What have you tried?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:38:22 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:38:22Z</dc:date>
    <item>
      <title>IO Problems on LPC 1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585534#M26783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ub3r on Thu Jun 28 09:55:39 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi guys, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After three hours of puling my hari and searching for answers, im giving up and asking the question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why cant i get, R_PIO1_0, R_PIO1_1, R_PIO1_2 working as a general purpose output?? :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All the other pins i need work except for these pins with the R_.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:38:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585534#M26783</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: IO Problems on LPC 1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585535#M26784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by atomicdog on Thu Jun 28 12:38:29 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe the pins with R_ are pins connected to the debug lines swd/jtag and are configured different then the other pins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What have you tried?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:38:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585535#M26784</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: IO Problems on LPC 1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585536#M26785</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 Thu Jun 28 13:34:09 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: atomicdog&lt;/STRONG&gt;&lt;BR /&gt;I believe the pins with R_ are pins connected to the debug lines swd/jtag...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused: I don't believe that &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R/PIO1_0/AD1/CT32B1_CAP0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;33[5] yes - I; PU R — Reserved. Configure for an alternate function in the IOCONFIG block.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I/O - PIO1_0 — General purpose digital input/output pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I - AD1 — A/D converter, input 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I - CT32B1_CAP0 — Capture input 0 for 32-bit timer 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R/PIO1_1/AD2/CT32B1_MAT0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;34[5] yes - I; PU R — Reserved. Configure for an alternate function in the IOCONFIG block.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I/O - PIO1_1 — General purpose digital input/output pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I - AD2 — A/D converter, input 2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;O - CT32B1_MAT0 — Match output 0 for 32-bit timer 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R/PIO1_2/AD3/CT32B1_MAT1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;35[5] yes - I; PU R — Reserved. Configure for an alternate function in the IOCONFIG block.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I/O - PIO1_2 — General purpose digital input/output pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I - AD3 — A/D converter, input 3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;O - CT32B1_MAT1 — Match output 1 for 32-bit timer 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So just set them up as outputs :eek:&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;
int main(void)
{
 volatile static int i = 0 , status =0;
 LPC_GPIO0-&amp;gt;DIR |= (1&amp;lt;&amp;lt;7);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //LED
 //setup function1, pullup, digital
 LPC_IOCON-&amp;gt;JTAG_TMS_PIO1_0&amp;nbsp;&amp;nbsp; = (1&amp;lt;&amp;lt;7)|(1&amp;lt;&amp;lt;6)|(2&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;0);
 LPC_IOCON-&amp;gt;JTAG_TDO_PIO1_1&amp;nbsp;&amp;nbsp; = (1&amp;lt;&amp;lt;7)|(1&amp;lt;&amp;lt;6)|(2&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;0);
 LPC_IOCON-&amp;gt;JTAG_nTRST_PIO1_2 = (1&amp;lt;&amp;lt;7)|(1&amp;lt;&amp;lt;6)|(2&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;0);
 LPC_GPIO1-&amp;gt;DIR |= (1&amp;lt;&amp;lt;2)|(1&amp;lt;&amp;lt;1)|(1&amp;lt;&amp;lt;0);&amp;nbsp;&amp;nbsp;&amp;nbsp; //set output
 while(1)
 {
&amp;nbsp; i++;
&amp;nbsp; if(i&amp;gt;1E6)&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; //long delay
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; i =0;
&amp;nbsp;&amp;nbsp; LPC_GPIO0-&amp;gt;DATA ^=(1&amp;lt;&amp;lt;7);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //just toggle LED
&amp;nbsp;&amp;nbsp; if(status)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; status =0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO1-&amp;gt;DATA |= (1&amp;lt;&amp;lt;2)|(1&amp;lt;&amp;lt;1)|(1&amp;lt;&amp;lt;0); //all on
&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp; else
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO1-&amp;gt;DATA &amp;amp;=~((1&amp;lt;&amp;lt;2)|(1&amp;lt;&amp;lt;1)|(1&amp;lt;&amp;lt;0)); //all off
&amp;nbsp;&amp;nbsp;&amp;nbsp; status=1;
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
 }
 return 0 ;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:38:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585536#M26785</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: IO Problems on LPC 1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585537#M26786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by creafyumi on Thu Jun 28 18:25:20 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: ub3r&lt;/STRONG&gt;&lt;BR /&gt;Hi guys, &lt;BR /&gt;After three hours of puling my hari and searching for answers, im giving up and asking the question.&lt;BR /&gt;&lt;BR /&gt;Why cant i get, R_PIO1_0, R_PIO1_1, R_PIO1_2 working as a general purpose output?? :confused:&lt;BR /&gt;&lt;BR /&gt;All the other pins i need work except for these pins with the R_.&lt;BR /&gt;&lt;BR /&gt;:confused:&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;Tony&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you enabled timer32 1 or ADC in your code? Or you are using JTAG?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Three Possible Reasons:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;timer32&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ADC&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;JTAG&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:38:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585537#M26786</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: IO Problems on LPC 1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585538#M26787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ub3r on Thu Jun 28 20:19:16 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt; LPC_IOCON-&amp;gt;JTAG_TMS_PIO1_0&amp;nbsp;&amp;nbsp; = (1&amp;lt;&amp;lt;7)|(1&amp;lt;&amp;lt;6)|(2&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;0);
 LPC_IOCON-&amp;gt;JTAG_TDO_PIO1_1&amp;nbsp;&amp;nbsp; = (1&amp;lt;&amp;lt;7)|(1&amp;lt;&amp;lt;6)|(2&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;0);
 LPC_IOCON-&amp;gt;JTAG_nTRST_PIO1_2 = (1&amp;lt;&amp;lt;7)|(1&amp;lt;&amp;lt;6)|(2&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;0);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Zero your a genius.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Whats your address.. i want to send you a case of beer. &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>Thu, 16 Jun 2016 02:38:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585538#M26787</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: IO Problems on LPC 1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585539#M26788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Polux rsv on Fri Jun 29 03:01:15 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;[SIZE=1]uh, I am a genius too[/SIZE] :D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:38:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585539#M26788</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: IO Problems on LPC 1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585540#M26789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jookie on Sun Jul 08 18:39:35 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 have a similar problem - can't use PIO0_11, PIO1_0, PIO1_1, PIO1_2 because they're in the JTAG mode, but trying to change IOCON values doesn't work. I see the values in debugger as zeros before the write, also after the write of values and I can't change them manualy in the memory view too. This is how it looks in my debugger after running the write to IOCON registers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://https://dl.dropbox.com/u/50798228/debuger.png"&gt;https://dl.dropbox.com/u/50798228/debuger.png&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure if there's just something with my code (I tried to do this in several ways found here in forum), or I got a faulty chip, or I just need to disable the JTAG somehow, or what... Or should I just avoid using these pins?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Miro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585540#M26789</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: IO Problems on LPC 1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585541#M26790</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 Sun Jul 08 23:29:06 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately your picture is blurry :eek: and doesn't show if you switch on IOCON clock :confused:&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_SYSCON-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;16);//enable IOCON clock
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;as described already here: &lt;/SPAN&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://knowledgebase.nxp.com/showthread.php?t=3248&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585541#M26790</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: IO Problems on LPC 1343</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585542#M26791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jookie on Mon Jul 09 00:44:36 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The rest of the code was not related to IOCON, so I blurred it out. But you totally nailed it with the LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL! I don't know how I missed that thread within the other ones related to IOCON. Thank you Zero! :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:38:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IO-Problems-on-LPC-1343/m-p/585542#M26791</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:38:26Z</dc:date>
    </item>
  </channel>
</rss>

