<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PROBLE WITH LPC2148</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/27660/proble-with-lpc2148</link><description> 
I am interfacing single led with lpc2148.I got simulation result.
But i am not getting it on the board.I have written the following
program to interface the led. 

 
#include &amp;quot;LPC21xx.h&amp;quot; 

 
void wait(void ) 
{ int j=0; 

 
for(j=0;j&amp;lt;1000000;j++); </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/139836?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2011 00:00:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6905aedb-9bed-4b3e-bb35-aacb74e3f7ba</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
Maybe you delay function is not working on target...?&lt;br /&gt;
Saying &amp;quot;it does not work&amp;quot; will not help yourself or anybody else.&lt;br /&gt;
Search for delay functions on this forum.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/130756?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 23:50:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0740eab0-22e1-4eac-9293-13773c270f03</guid><dc:creator>r s</dc:creator><description>&lt;p&gt;&lt;p&gt;
No. I am not getting the output on the board but simulation is
happenning.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/126692?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 23:14:12 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b82fd932-e9bd-4672-84e7-f399c62ff576</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
and, in the whole internet, you haven&amp;#39;t been able to find one
example that does this?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/116271?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 23:01:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6464ec7f-5535-48e5-930a-a7796f7d945f</guid><dc:creator>r s</dc:creator><description>&lt;p&gt;&lt;p&gt;
I want to interface led with lpc2148 by using with port and
without port. I measured the voltages of all the pins and come to
know that all the pins have same voltage before and after the
programming.I have downloaded the program into chip through flash
program.Kindly advise me how to interface led by using with port and
without port.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/104639?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 09:23:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:207b9396-c5e2-4ab3-9ef4-5de534b333f4</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
And you did not notice that when you cut/pasted the broken source
code from the original post into this new post, the lost line breaks
are still lost?&lt;/p&gt;

&lt;p&gt;
And the only thing you have now said about your debugging attempts
is that the voltages on some pins (which I have to guess is the LED
pins) are not changing.&lt;/p&gt;

&lt;p&gt;
You didn&amp;#39;t tell if they where high or low. You didn&amp;#39;t tell if they
are in tristate or if they are weakly or strongly held at their
current state. You didn&amp;#39;t tell if you have tried to single-step the
program. You didn&amp;#39;t tell if you have tried to read back the program
to verify that you really have any program in the chip. You didn&amp;#39;t
tell if you have tried to download any other example program.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/79072?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 08:38:38 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8bcc6f1a-d7c8-4876-a72f-d411b24d64c5</guid><dc:creator>r s</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sorry for not following the instructions to post a message.&lt;br /&gt;
I am new to the embedded c. I am using Keil microvision 4 and flash
program to transfer program to chip. simulation result i am getting
but on board its not happening. i am using ngx lpc2148 blueboard. The
voltage on pins same before and after the programming.&lt;/p&gt;

&lt;pre&gt;
#include &amp;quot;LPC21xx.h&amp;quot;

void wait(void )
{ int j=0;

for(j=0;j&amp;lt;1000000;j++); /*wait for one second*/

}

int main (void) { IODIR0 = 0x10000000; /* P0.28 defined as Output */ PINSEL1= 0x00000000; while (1) { /* Loop forever */

IOSET0 = 0x10000000; /* Turn on LED */

wait(); /* call wait function */

IOCLR0 = 0x10000000; /* Turn off LED */

wait();

}

}
&lt;/pre&gt;

&lt;p&gt;
I am not getting your suggestion.please can you elaborate it.&lt;/p&gt;

&lt;p&gt;
thank you..&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/119171?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 04:45:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7b298883-0e4e-410c-9b74-0e703c2076f7</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes, I normally chose to ignore code instead of switching to
stream mode to try to dechiffer code where it can&amp;#39;t even be seen
where one-line comments actually ends. Code posted without tags isn&amp;#39;t
just messy but it is a lossy conversion that can&amp;#39;t be undone.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/104631?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 04:28:59 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2b7a77ec-39e1-44e4-aab2-7ff58fa35d9a</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
Gee, I really missed that &amp;quot;while&amp;quot;! Hence - always use code
formatting!!!!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/119172?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 04:25:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3ddfc534-beff-499b-b205-25ad8434865b</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Indeed it is!&lt;/p&gt;

&lt;p&gt;
As I have so often said, if someone can miss something as clear
and simple as the code posting instructions here, then it is rather
likely that their problems are entirely due to similar lack of
attention to the rest of their project.&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;:-(&lt;/b&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/90864?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 04:09:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f5000190-9e82-4630-9f46-aca71b1cfcfe</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
No, he replaced it with a while loop - but since he forgot the
formatting of the post, we can&amp;#39;t be bothered to look at the code.&lt;/p&gt;

&lt;p&gt;
Another error - not searching this forum for busy loop delays.&lt;/p&gt;

&lt;p&gt;
A third error - not giving any information about what actually
happens, and what error checking that has been done (such as
single-stepping the code) before the thread was created.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/104632?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 03:13:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4284cf62-80c7-49e2-8bd9-7476b2948b72</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
Andy,&lt;/p&gt;

&lt;p&gt;
It&amp;#39;s like asking them to read the manual of the product they are
using; a hopeless, fruitless effort :-)&lt;br /&gt;
These guys are going to write the software that controls the jet that
takes you to your sunny vacation destination. Yes? Yes!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/90870?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 03:01:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ed41f78a-f59c-4222-8427-016e3592f52e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You also forgot to pay attention to the clear instructions for
posting source code:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.danlhenry.com/caps/keil_code.png"&gt;www.danlhenry.com/.../keil_code.png&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PROBLE WITH LPC2148</title><link>https://community.arm.com/thread/59200?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2011 02:36:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2f152659-5c9a-4ad1-bf5d-31712b5b01a7</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
You forgot the &amp;quot;for (;;) ;&amp;quot; !&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>