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

Reading from SBUF in simulator (Serial communication)

Hello,
I am not able to receive the value of SBUF into a char. The part of code is shown below.
Always when I try, the value is 0x00.

I will be obliged for helpful commends.

SCON = 0x50;
char Byte;
The code below is in ISR for Serial interrupt
if(RI)
{
Byte = SBUF;
RI = 0;
}


Thanks