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

can't read sbuf on debug

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.

Parents Reply Children
No data