HI, i hav written a piece of code tat executes continuously i.e. while(1) In this there r two condition statement: if(SBUF1==0x20||SBUF1==0x7F||SBUF1==0x0FF) { //Statements } else if(SBUF1==0x53||SBUF1==0x73) { //Statements } And in debug mode i change the value of SBUF1 SFR accordingly...however wen i do "step into" it just does not enter either of these loops. Please help in this regard.
And in debug mode i change the value of SBUF1 SFR accordingly...however wen i do "step into" it just does not enter either of these loops. Once more we have someone that jump into the pool without reading "how to swim" first. Even a perfunctionary read of "the bible" would have avoided this mistake. Erik here are the links to "the bible" Chapter 1 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf chapter 2 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf chapter 3 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf
See http://www.8052.com/forum/read.phtml?id=118327
hey thanks erik and andy for the effort from ur sides i ll b readin from the links u both hav provided hope it solves my prob
I saw the figure on pg13 n i understand tat there r 2 SBUFs....but then how does one READ the value in SBUF tat has been fed in in the simulator????? Coz I dont find n e feature like SOUT or SIN registers....i see only SBUF...also, in Keil manual, ther is one chapter "Serial Interface"-There in a program they hav used SBUF itself!!!! Please throw some lite on this issue...
Spell the words, Avoid SMS
fine
View all questions in Keil forum