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

Accessing Reg of 89C51 with RTX51 tiny

i am stuck at problem, i tried to crate 3, out of which 2 tasks for getting i/p from user. each of two task stores 1 int to reg and third task calculate addition of two and display output at serial port..
problem: how to access register and use them? ..... NEED HELP!! if any one could tell me where to find some material on this stuff... i have already read REGFILE Compiler and linker directive ... but could'n get how to use it?

Parents
  • It doesn't matter if you use any Tiny RTOS or not - your ability to access any registers on the processor is the same anyway. The 8051 does not contain any memory protection functionality that blocks the program from touching whatever it wants to touch.

    But you still need to consider how to handle the natural handshake between two producers and one consumer, so the consumer only produces a result when it has valid input data from both producers. I think you should look into the producer/consumer model and the general function of thread synchronization before you start to read the documentation for Tiny RTOS.

Reply
  • It doesn't matter if you use any Tiny RTOS or not - your ability to access any registers on the processor is the same anyway. The 8051 does not contain any memory protection functionality that blocks the program from touching whatever it wants to touch.

    But you still need to consider how to handle the natural handshake between two producers and one consumer, so the consumer only produces a result when it has valid input data from both producers. I think you should look into the producer/consumer model and the general function of thread synchronization before you start to read the documentation for Tiny RTOS.

Children
No data