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

simulation of sbuf

SBUF is not a regular register: when you write to it you send a character on the serial line, and when you read it you empty the serial line buffer


Keil simulates sbuf like if it was a normal variable because if you try to do the same thing on hardware (emulator or chip) it won't work.