<?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>what is the difference between interval and timeout in RTX51</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/24594/what-is-the-difference-between-interval-and-timeout-in-rtx51</link><description> 
Hi: I read a article named &amp;quot;RTX51 TINY: DIFFERENCE BETWEEN
INTERVAL AND TIMEOUT&amp;quot; , but I still can not clarify the difference
between interval and timeout . I hope that who can give me some
simple and clarity examples to illustrate the difference between</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: what is the difference between interval and timeout in RTX51</title><link>https://community.arm.com/thread/115248?ContentTypeID=1</link><pubDate>Sun, 27 Sep 2009 23:05:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:793cad9a-fff2-412b-af3b-21e2c7d54015</guid><dc:creator>hero0765 maxwell</dc:creator><description>&lt;p&gt;&lt;p&gt;
#include &amp;quot;rtx51tny.h&amp;quot;&lt;br /&gt;
#include &amp;quot;REG935.H&amp;quot;&lt;/p&gt;

&lt;p&gt;
const unsigned char
table[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80
,0x40,0x20,0x10,0x08,0x04,0x02,0x01,0xFF,0x00};&lt;/p&gt;

&lt;p&gt;
int counter0;&lt;br /&gt;
int counter1;&lt;br /&gt;
int counter2;&lt;br /&gt;
int counter3;&lt;/p&gt;

&lt;p&gt;
const unsigned char
table[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};&lt;/p&gt;

&lt;p&gt;
void LED0 (void) _task_ 0&lt;br /&gt;
{ int i; os_create_task(1); os_create_task(2); while(1) {&lt;/p&gt;

&lt;p&gt;
for (i = 0; i &amp;lt; 15; i++) {&lt;/p&gt;

&lt;p&gt;
P1 = table[i]; os_wait(K_TMO,30,0);&lt;/p&gt;

&lt;p&gt;
} os_send_signal(1); os_wait(K_SIG,0,0); counter0++; }&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
void LED1 (void) _task_ 1&lt;br /&gt;
{ int i; while(1) { os_wait(K_SIG,0,0);&lt;/p&gt;

&lt;p&gt;
for (i = 0; i &amp;lt; 3; i++) { P1 = table[15];&lt;/p&gt;

&lt;p&gt;
os_wait(K_TMO,30,0);&lt;/p&gt;

&lt;p&gt;
P1 = table[16];&lt;/p&gt;

&lt;p&gt;
os_wait(K_TMO,30,0); } os_send_signal(2);&lt;/p&gt;

&lt;p&gt;
counter1++; }&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
void LED2 (void) _task_ 2&lt;br /&gt;
{ int i; while(1) { os_wait(K_SIG,0,0);&lt;/p&gt;

&lt;p&gt;
for (i = 0; i &amp;lt; 8; i++) { P1 = table[i] | table[i+7];
os_wait(K_TMO,30,0); }&lt;/p&gt;

&lt;p&gt;
os_send_signal(0); counter2++; }&lt;br /&gt;
}&lt;/p&gt;

&lt;p&gt;
Here is my programe, you can emulate it by the KEIL.&lt;br /&gt;
Opening the &amp;quot;peripheral&amp;quot;--&amp;gt;&amp;quot;I/O port&amp;quot;--&amp;gt;&amp;quot;P1&amp;quot;.you will&lt;br /&gt;
see the movement of the P1.&lt;/p&gt;

&lt;p&gt;
Now I want to use the os_wait(K_IVL,0,0) instead of the
os_wait(K_TMO,0,0) to see the differnce between them.But I can not
see the difference.So who can help me to modify the programe to show
the difference clearly.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is the difference between interval and timeout in RTX51</title><link>https://community.arm.com/thread/103442?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2009 18:13:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a4177c3e-8cef-41dd-9775-0843c5f0f22d</guid><dc:creator>ashley madison</dc:creator><description>&lt;p&gt;&lt;p&gt;
That, of course, was because we needed to repeat ourselves out of
desparation of the possibility that we were not hearing each
other.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is the difference between interval and timeout in RTX51</title><link>https://community.arm.com/thread/89996?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2009 18:11:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ca4e6cb3-e778-4767-bd1c-4b5868866706</guid><dc:creator>ashley madison</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;So who can complete my request?&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
I hope that was a cultural faux pas, because otherwise you would
be a pompous ass. To clear that up, you take the initiative!&lt;/p&gt;

&lt;p&gt;
You have been provided links to the relevant manuals and
Knowledgebase articles. First, post your code that demonstrates an
attempt to implement a means to differentiate between interval and
timeout. We&amp;#39;ll let you know how well you did before your professor
does.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;thanks in advance.&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
That is very poor style -- thanking for completion of your
homework assignment &amp;quot;in advance&amp;quot;. Nothing is for free. You have to
(after the fact) at the very least interact with and thank the folks
that provide the wisdom you seek.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is the difference between interval and timeout in RTX51</title><link>https://community.arm.com/thread/103443?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2009 17:59:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:064fd98e-133f-41a6-94b0-c8cb74afe2e9</guid><dc:creator>ashley madison</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;So who can complete my request?&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
I hope that was a cultural faux pas, because otherwise you would
be a pompous ass. To clear that up, you take the initiative!&lt;/p&gt;

&lt;p&gt;
You have been provided with links to the relevant manuals and
Knowledgebase articles. First, post &lt;b&gt;your&lt;/b&gt; code that
demonstrates an attempt to implement a means to differentiate between
interval and timeout. We&amp;#39;ll let you know how well you did before your
professor does.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;thanks in advance.&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
That is very poor style -- thanking for completion of your
homework assignment &amp;quot;in advance&amp;quot;. Nothing is for free. You have to
(after the fact) at the very least interact with and thank the folks
that provide the wisdom you seek.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is the difference between interval and timeout in RTX51</title><link>https://community.arm.com/thread/77774?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2009 17:37:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b02de433-e1c7-4be2-9d94-18737db32e26</guid><dc:creator>hero0765 maxwell</dc:creator><description>&lt;p&gt;&lt;p&gt;
hi: thanks the help of the everybody! But I want to excute an
exmple programe to help me comprehand the difference between them. So
who can complete my request? thanks in advance.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is the difference between interval and timeout in RTX51</title><link>https://community.arm.com/thread/56904?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2009 17:22:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:079a001e-8a31-40fb-89fe-a4657a57bcf2</guid><dc:creator>hero0765 maxwell</dc:creator><description>&lt;p&gt;&lt;p&gt;
hi: thanks the help of the everybody! But I want to excute an
exmple programe to help me comprehand the difference between them. So
who can complete my request? thanks in advance.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is the difference between interval and timeout in RTX51</title><link>https://community.arm.com/thread/56899?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2009 23:47:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c73a7eb2-857b-45e2-909e-4990b4166098</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;I read a article named &amp;#39;RTX51 TINY: DIFFERENCE BETWEEN
INTERVAL AND TIMEOUT&amp;#39;&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
If you want clarification of a specific article, you need to post
a link to that article!&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;a forum that discuss detailedly the RTX51 TINY.&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Given that RTX51 is a &lt;b&gt;Keil&lt;/b&gt; product, I guess that the
&lt;b&gt;Keil&lt;/b&gt; forum would be the place to go!&lt;/p&gt;

&lt;p&gt;
Note, however, that the vast majority of projects &lt;i&gt;suited to an
8051&lt;/i&gt; can be completed perfectly well with no OS at all - so any
RTOS is going to be something of a &amp;quot;minority interest&amp;quot; on an
8051...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what is the difference between interval and timeout in RTX51</title><link>https://community.arm.com/thread/56900?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2009 22:56:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:386881e9-170e-4682-bb0c-1dd26fe49244</guid><dc:creator>Stefan Hartwig</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,&lt;br /&gt;
if you read the manual carefully, you surely find the part about
events. There is an explanation of the differences.&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/tr51/tr51_events.htm"&gt;http://www.keil.com/support/man/docs/tr51/tr51_events.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
This may also help to understand:&lt;br /&gt;
&lt;a href="http://en.wiktionary.org/wiki/timeout"&gt;en.wiktionary.org/.../timeout&lt;/a&gt;&lt;br /&gt;

&lt;a href="http://en.wikipedia.org/wiki/Interval_%28time%29"&gt;en.wikipedia.org/.../Interval_(time)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
If you still do not understand the differences, you should start
reading about OS basics.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>