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

is it a bug?

please have a look at program below #define LMCODE PBYTE[0xfe] /* below is a signal function signal void my_signal (void) {
while (1) {
rwatch (x:0xfe);
_wbyte(x:0xfe,0x0b);
}
} why i go into a endless loop when i use a sentence like this: while((LMCODE & 0x03)!=0x03) {}

Parents
  • thank you.
    but as i think 1.your current design of c51 can not work correctly when user want to use P2 as I/O port and at the same time using pdata for some other purpose.
    2. why don't you put pdata at the begining of xdata? i think this is just the practical position it should reside.

Reply
  • thank you.
    but as i think 1.your current design of c51 can not work correctly when user want to use P2 as I/O port and at the same time using pdata for some other purpose.
    2. why don't you put pdata at the begining of xdata? i think this is just the practical position it should reside.

Children
No data