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; } }
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