I can not put a char 0x00 to serial window.How can I do?
How are you trying to do it? What happens? What do you expect to happen?
In debug sesson, and view serial window#1, in this window, use ALT+1 will put a char (0x01) into sbuf,use ALT+2 will put a char (0x02) into sbuf.... but use ALT+0 will not put a char (0x00) into sbuf.
try:
SBUF=0
sbuf=0 ,it is put a char to serial port,but I want my program get a char (0x00).
What if you use the dialogue on the 'Peripherals' menu: Set SBUF to 0, then set the Rx interrupt?
Take a look at SIN and SOUT VTRegs. If you enter SIN=0 in the CommandWindow, this simulates receiving an ASCII 0x00. Jon
Thanks!