This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Global Var

HI!!

I declared 3 global var, i call it inside diferent task and every execution this var should be updates but not to do it.
I have a 8051 under evaluation board.
Maybe can be a problem of my small micro?
What do u think about this?

Thanks

Parents
  • Hi Tamir,

    My idea is:
    - I have a WRITE task that initialize the PID task:

                      os_create_task(A);
                      os_create_task(B);
                      os_create_task(C);
    
                      os_wait(K_SIG, WAIT_FOREVER,0);       /* Espera hasta que algun PID actualice el valor */
                      os_clear_signal(WRITE);
    

    This 3 task should update my global var called iAiBiC respectly.

    After i send the result of the PIDs to serial port for comunications with a simulator.

Reply
  • Hi Tamir,

    My idea is:
    - I have a WRITE task that initialize the PID task:

                      os_create_task(A);
                      os_create_task(B);
                      os_create_task(C);
    
                      os_wait(K_SIG, WAIT_FOREVER,0);       /* Espera hasta que algun PID actualice el valor */
                      os_clear_signal(WRITE);
    

    This 3 task should update my global var called iAiBiC respectly.

    After i send the result of the PIDs to serial port for comunications with a simulator.

Children
No data