<?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>SOFTEARE UART TIMEOUT</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28832/softeare-uart-timeout</link><description> 
Hello to all. 
i have a software uart, writen in assembler, working fine, but i want
to put a timeout if no byte is received or if dont have start
bit. 
It is external interrupt driven at int1, but really need the timeout
because the byte sometimes</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: SOFTEARE UART TIMEOUT</title><link>https://community.arm.com/thread/126908?ContentTypeID=1</link><pubDate>Sat, 18 Jun 2011 05:01:45 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:60f335a4-03c1-48d0-abba-386b755ee59b</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;a timeout loop where my assembly code is waiting for start
bit.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
That&amp;#39;s clearly not &lt;b&gt;your&lt;/b&gt; assembly code by any useful
interpretation. If it were, you wouldn&amp;#39;t be asking the kind of
question you are.&lt;/p&gt;

&lt;p&gt;
There&amp;#39;s no visible reason you would even try to do this in
assembly. So don&amp;#39;t. Forget about it. Do it in C, and leave the
nastier tools for people who know how to handle them.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTEARE UART TIMEOUT</title><link>https://community.arm.com/thread/116406?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2011 14:19:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c0b85b00-d621-4623-ac3f-e6519e82fd6e</guid><dc:creator>Ricardo Pozza</dc:creator><description>&lt;p&gt;&lt;p&gt;
Please, somebody to example a timeout loop where my assembly code
is waiting for start bit.&lt;/p&gt;

&lt;p&gt;
After x loops skipt the routine.&lt;br /&gt;
Thanks a lot&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTEARE UART TIMEOUT</title><link>https://community.arm.com/thread/104966?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2011 09:53:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:227dbeac-4553-401e-b804-a6fd6f2667ad</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;It is external interrupt driven at int1&lt;/i&gt;&lt;br /&gt;
nothing you have shown indicates that&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTEARE UART TIMEOUT</title><link>https://community.arm.com/thread/79376?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2011 08:23:48 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ef6e234c-655a-41a9-9de9-c9c474985219</guid><dc:creator>Ricardo Pozza</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi again, and thanks for your reply.&lt;/p&gt;

&lt;p&gt;
I need 2 uarts, 2 is working fine, the hardware and software
uart.&lt;/p&gt;

&lt;p&gt;
Really dont know assembly, we are trying to learn.&lt;br /&gt;
I want to set a flag in C code and read this flag in the assembly
loop that waits for my start bit, if flag == true then skip the
assembly loop.&lt;br /&gt;
I&amp;acute;m studing assembly, but this is an emergency solution.&lt;/p&gt;

&lt;p&gt;
Lets trying.&lt;/p&gt;

&lt;p&gt;
thanks a lot&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTEARE UART TIMEOUT</title><link>https://community.arm.com/thread/59550?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2011 08:17:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:96b0a485-8840-42b8-9ea3-b1836aa6a7bc</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
I guess the reason you have a software UART is that you need more
than one, else this is ridiculous.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;Can i put a loop that expires after x counts without start bit?
how to do this in assembler?&lt;/i&gt;&lt;br /&gt;
DJNZ&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;Or i can start a timer when int1 interrupts, when the timer
interrupt i set a flag in C, how to read this flag in assembler and
stop waiting the start bit?&lt;/i&gt;&lt;br /&gt;
jbc/jb/jnb&lt;/p&gt;

&lt;p&gt;
are the questions &lt;i&gt;how to do this in assembler ... how to read
this flag in assembler&lt;/i&gt;based on &amp;quot;I found this assembly code, but
have no knowledge of assembler programming&amp;quot;&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>