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
  • Alright.. you found it. Here's the real point of my test: this time don't take out your Bible. Now tell me what the context of that passage is (i.e. what's going on, what's being talked about)?

    I understand that eventually people need to develop an instinct to just sit with the datasheet for their chip open and refer to it as needed, but I know that when I started there were plenty of things I didn't understand even after reading them, until I hacked and tried and finally got something to "work." I'm just trying to describe things for the OP in a bit more detail than might be included in the documentation. I know it's a simple concept, but there's also clearly a language barrier for Marcio with regard to English. Erik's follow-up for my long-winded post with the couple sentences from the datasheet doesn't seem to me to be designed to do anything other than humiliate the poster and that seems unfortunate.

Reply
  • Alright.. you found it. Here's the real point of my test: this time don't take out your Bible. Now tell me what the context of that passage is (i.e. what's going on, what's being talked about)?

    I understand that eventually people need to develop an instinct to just sit with the datasheet for their chip open and refer to it as needed, but I know that when I started there were plenty of things I didn't understand even after reading them, until I hacked and tried and finally got something to "work." I'm just trying to describe things for the OP in a bit more detail than might be included in the documentation. I know it's a simple concept, but there's also clearly a language barrier for Marcio with regard to English. Erik's follow-up for my long-winded post with the couple sentences from the datasheet doesn't seem to me to be designed to do anything other than humiliate the poster and that seems unfortunate.

Children
  • Erik's follow-up for my long-winded post with the couple sentences from the datasheet doesn't seem to me to be designed to do anything other than humiliate the poster and that seems unfortunate.
    1) no intention to "humiliate", I never have any desire to do so. I may be direct in my statements, but have never tried to humiliate anyone. I may not be very "sensitive" to questions that do not fully describe the background, but I will try as hard as I can to overcome a language barrier (as long as it is not SMS).
    2) "the bible" explain SBUF from the opposite viewpoint (2 registers with one address, not one address with 2 registers), thus might be understood when approach 1 is not.
    3) If there was any "intention" other than 2) it was to show that answers such as these can be foun in "the bible"

    Erik