<?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>while loop and ISR routine</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/30898/while-loop-and-isr-routine</link><description> 
Hello all, 
I am using 8051 controller with UART working. 
I am generating interrupt for UART RX. 

 
in main() 
I am sending one string to hyperterminal through UART TX and I can
see it on Hyperterminal 
i.e my UART TX is working. 
I am sending one</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: while loop and ISR routine</title><link>https://community.arm.com/thread/120176?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2013 08:52:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e6ea0305-934f-450b-960a-36412d30d4a7</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
What makes you think it is even safe to do a strcmp() while the
interrupt is expected to add more characters to one of the two
buffers used as parameters for strcmp()? How is the zero-termination
handled?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: while loop and ISR routine</title><link>https://community.arm.com/thread/107356?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2013 20:29:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e9714eb8-2fc7-4bd3-8a7c-471f3c84d025</guid><dc:creator>pz pz</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,&lt;br /&gt;
Thanks for reply.&lt;br /&gt;
if I add while loop and while running I put breakpoint in ISR routine
and then run the code.&lt;br /&gt;
If I send any data from hyperterminal, ideally it should break the
while loop and jump to ISR where I breakpoint is placed.&lt;br /&gt;
but flow doesnt go there it is stuck in while loop, this I can see if
I pause the debugger.&lt;br /&gt;
Interrupt is not at all occured.&lt;br /&gt;
regards&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: while loop and ISR routine</title><link>https://community.arm.com/thread/92385?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2013 06:47:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:21d3b747-8508-4918-93d4-79c62369746e</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Do you increment the index? Do you NUL terminate the string?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: while loop and ISR routine</title><link>https://community.arm.com/thread/62363?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2013 22:11:55 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f892db19-bc3b-40c5-ad14-16c91cec975d</guid><dc:creator>pz pz</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hello all,&lt;br /&gt;
sorry it is not a 8051 controller but renesas controller.&lt;br /&gt;
My problem is not related to controller but ISR interrupt with while
loop so I posted code here&lt;br /&gt;
regards&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>