Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/03/08 05:24
Read: times


 
#159546 - About RTX51 Full!
Hi everybody!
I having a problem with my projet concern with RTX51 full.

THis is my code:

#include <rtx51.h>
#include <stdio.h>
#include <math.h>
#include <AT89X51.h>
#include <REGX51.H>
//-----------------------------------------------
void task0 (void) _task_ 0
{    P3_0 = 0;
     os_set_slice(1000);  //   10 ms
     os_create_task (1);
     os_create_task (2);
     os_delete_task (os_running_task_id ());
}
//-----------------------------------------------
//-----------------------------------------------
 
void  task1 (void) _task_ 1 
{
 while(1){
  P3_1 =1;
  os_wait(K_TMO, 10, 0);
 }
}
//-----------------------------------------------

 void  task2 (void) _task_ 2 
{
 while(1){
  P3_0 = 0;
  os_wait(K_TMO, 10, 0);
 }
}


And I add file RTXCONF.A51 to folder containing projet.

But i don't see any change state on P3_0 when I simulator program!
do I forget something in my projet? Help me please!
thank you very much.



List of 5 messages in thread
TopicAuthorDate
About RTX51 Full!            01/01/70 00:00      
   Have you done the examples?            01/01/70 00:00      
   Discontinued!            01/01/70 00:00      
      SALVO            01/01/70 00:00      
         Is there any point?            01/01/70 00:00      

Back to Subject List