<?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>not able to exit  the loop (suggestions urgently required)</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/42260/not-able-to-exit-the-loop-suggestions-urgently-required</link><description> hi 
all iam working on cygnal mcus .iam using 
i=5; 
do 
{i--; 
}while(i!=1); 
but this condition is not satisfying when i==1 ;iwant to exit at i=1 but its going in infinite loop kindly help me how to quitfrom 
this loop 
 
regards 
john e </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: not able to exit  the loop (suggestions urgently required)</title><link>https://community.arm.com/thread/41734?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2004 07:44:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8f1201ed-0720-4de4-afcc-3b00fa852331</guid><dc:creator>Eduard Jadron</dc:creator><description>&lt;p&gt;You have version Keil C51 ???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not able to exit  the loop (suggestions urgently required)</title><link>https://community.arm.com/thread/96123?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2004 05:35:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1171f059-ca7e-41d5-9d84-56ee3d42d868</guid><dc:creator>John Donaldson</dc:creator><description>&lt;p&gt;&amp;quot;actually still the loop is not exiting is there any exit commands in keil c&amp;quot;&lt;br /&gt;
&lt;br /&gt;
JOHN e,&lt;br /&gt;
&lt;br /&gt;
You are displaying a serious lack of knowledge about very basic &amp;#39;C&amp;#39;. I suggest you get a good &amp;#39;C&amp;#39; book and invest some time learning &amp;#39;C&amp;#39; before attempting to program the 8051 or you will fail to produce reliable code.&lt;br /&gt;
&lt;br /&gt;
Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not able to exit  the loop (suggestions urgently required)</title><link>https://community.arm.com/thread/96125?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2004 05:28:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e8c894db-7a68-4c42-af0b-cd5c7408fe83</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;You need to look at the assembler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not able to exit  the loop (suggestions urgently required)</title><link>https://community.arm.com/thread/72291?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2004 05:09:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2dc4ecae-1b5d-47d8-ae2d-894c8c924a48</guid><dc:creator>JOHN E</dc:creator><description>&lt;p&gt;hi&lt;br /&gt;
J Lehnhaeuser&lt;br /&gt;
thanks for ur reply , actually still the loop is not exiting is there any exit commands  in keil c&lt;br /&gt;
&lt;br /&gt;
regards&lt;br /&gt;
john e&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: not able to exit  the loop (suggestions urgently required)</title><link>https://community.arm.com/thread/41733?ContentTypeID=1</link><pubDate>Mon, 16 Feb 2004 04:17:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:71fe19e2-bae4-455d-bba4-f797f9e71b82</guid><dc:creator>J Lehnhaeuser</dc:creator><description>&lt;p&gt;I had similar problems, the most easyest things won&amp;#39;t work. Often caused by data type confusion.&lt;br /&gt;
&lt;br /&gt;
Ensure that i has an integer type (NOT float) and is not altered by any interrupt routine.&lt;br /&gt;
&lt;br /&gt;
Take a look at the assembler code in the .lst file and try to understand what happens.&lt;br /&gt;
&lt;br /&gt;
regards,&lt;br /&gt;
J Lehnhaueser&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>