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
surely you mean Mr. erik malund...! malard sounds like the name tooth paste or an anti wrincle cream, or maybe a face lift in swedish :) :)
I meant "wrinkle", of course...
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.