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

MSC1210

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.

Parents
  • Alrite ppl there is somthing i think i have figured out....if i write something in SBUF1 simulated register it implies, this data byte is the data that is to be transmitted (and not the data tat is received or can be copied into some variable e.g. i=SBUF1; )
    So if we wish to receive data into SBUF1 then we hav to configure the correponding "receive port pin"; and then watever data we receive at this pin will be stored in SBUF1, one byte at a time.....
    i hope i m correct.Kindly comment on this.

Reply
  • Alrite ppl there is somthing i think i have figured out....if i write something in SBUF1 simulated register it implies, this data byte is the data that is to be transmitted (and not the data tat is received or can be copied into some variable e.g. i=SBUF1; )
    So if we wish to receive data into SBUF1 then we hav to configure the correponding "receive port pin"; and then watever data we receive at this pin will be stored in SBUF1, one byte at a time.....
    i hope i m correct.Kindly comment on this.

Children