Hi: I read a article named "RTX51 TINY: DIFFERENCE BETWEEN INTERVAL AND TIMEOUT" , 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 them. also who can give me a forum that discuss detailedly the RTX51 TINY.
Hi, if you read the manual carefully, you surely find the part about events. There is an explanation of the differences. http://www.keil.com/support/man/docs/tr51/tr51_events.htm
This may also help to understand: en.wiktionary.org/.../timeout en.wikipedia.org/.../Interval_(time)
If you still do not understand the differences, you should start reading about OS basics.
"I read a article named 'RTX51 TINY: DIFFERENCE BETWEEN INTERVAL AND TIMEOUT'"
If you want clarification of a specific article, you need to post a link to that article!
"a forum that discuss detailedly the RTX51 TINY."
Given that RTX51 is a Keil product, I guess that the Keil forum would be the place to go!
Note, however, that the vast majority of projects suited to an 8051 can be completed perfectly well with no OS at all - so any RTOS is going to be something of a "minority interest" on an 8051...
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.
"So who can complete my request?"
I hope that was a cultural faux pas, because otherwise you would be a pompous ass. To clear that up, you take the initiative!
You have been provided with 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'll let you know how well you did before your professor does.
"thanks in advance."
That is very poor style -- thanking for completion of your homework assignment "in advance". 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.
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'll let you know how well you did before your professor does.
That, of course, was because we needed to repeat ourselves out of desparation of the possibility that we were not hearing each other.
#include "rtx51tny.h" #include "REG935.H"
const unsigned char table[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80 ,0x40,0x20,0x10,0x08,0x04,0x02,0x01,0xFF,0x00};
int counter0; int counter1; int counter2; int counter3;
const unsigned char table[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
void LED0 (void) _task_ 0 { int i; os_create_task(1); os_create_task(2); while(1) {
for (i = 0; i < 15; i++) {
P1 = table[i]; os_wait(K_TMO,30,0);
} os_send_signal(1); os_wait(K_SIG,0,0); counter0++; } }
void LED1 (void) _task_ 1 { int i; while(1) { os_wait(K_SIG,0,0);
for (i = 0; i < 3; i++) { P1 = table[15];
os_wait(K_TMO,30,0);
P1 = table[16];
os_wait(K_TMO,30,0); } os_send_signal(2);
counter1++; } }
void LED2 (void) _task_ 2 { int i; while(1) { os_wait(K_SIG,0,0);
for (i = 0; i < 8; i++) { P1 = table[i] | table[i+7]; os_wait(K_TMO,30,0); }
os_send_signal(0); counter2++; } }
Here is my programe, you can emulate it by the KEIL. Opening the "peripheral"-->"I/O port"-->"P1".you will see the movement of the P1.
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.