Hi, how can I read SBUF while debugging?
R_serial () interrupt 4 { if(RI) { serialR = SBUF; RI=0; CompDataRx[count]=serialR; count++; } else TI = 0; }
when I put any value in SBUF from Peripheral-> serial, the value doesn't move to serialR variable.
show up almost every time someone "jump into the water without swimming lessons"
You need to READ "the bible"
Someone will probably answer your question directly and the nest day we will see another post from you showing that you have not taken the time to study the chip before using it.
Erik
here are the links to "the bible" Chapter 1 - 80C51 Family Architecture: www.nxp.com/.../80C51_FAM_ARCH_1.pdf
Chapter 2 - 80C51 Family Programmer’s Guide and Instruction Set: www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf
Chapter 3 - 80C51 Family Hardware Description: www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf