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

the val don´t keep the SBUF value

I am testing a routine with serial interrupt and I notice that the value is not transferred from SBUF. I notice this in uVison debug. What's happen?

Please help me.

follow my parcial intr routine


if(RI)
{
   c = SBUF; //<-- here is my problems
   RI = 0;
   if (istart + ILEN != iend)
   {
      inbuf[iend++ & (ILEN-1)] = c;
    }
}

Thanks for your help

Parents
  • i am facing the same problem. is there any one to help us.

    How can you be helped with a problem that does not exist?

    q = SBUF;
    WILL move SBUF into q, there is no way around it. If there is nothing in SBUF, then, of course nothing get moved into q.

    Is it possible that you are confusing the output and input sections of SBUF, if so, you better read up on it in "the bible"

    Erik

Reply
  • i am facing the same problem. is there any one to help us.

    How can you be helped with a problem that does not exist?

    q = SBUF;
    WILL move SBUF into q, there is no way around it. If there is nothing in SBUF, then, of course nothing get moved into q.

    Is it possible that you are confusing the output and input sections of SBUF, if so, you better read up on it in "the bible"

    Erik

Children