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

serial port under RTX-51

Hi!
I have a problem with a program in C for serial comunication under RTX-51.
I have 2 task, the first is reading from serial port and i need to save the "char" in a share memory for the next task can to take it and start operating.
How can i do it?
Thanks

Parents
  • The '51 chip isn't the best suited for an OS. But if someone really do want to use one, it is possible even if sub-optimal.

    If this is a school assignment, the '51 chip will suffice for the conceptual test. However, in real life you do not make use of any task to receive any serial data. You use an ISR to pick up the characters. Then you decide if the main loop - or a task - should process the received characters.

Reply
  • The '51 chip isn't the best suited for an OS. But if someone really do want to use one, it is possible even if sub-optimal.

    If this is a school assignment, the '51 chip will suffice for the conceptual test. However, in real life you do not make use of any task to receive any serial data. You use an ISR to pick up the characters. Then you decide if the main loop - or a task - should process the received characters.

Children
No data