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
Open up the serial window in the simulator and type or paste what you want to send.
The SBUF register is split into two VTREG's. SIN and SOUT. You may also write to SIN (see: http://www.keil.com/support/docs/1944.htm) to simulate serial input.