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) {}
PDATA is a configureable page in XDATA memory. Therefore it is not sure that it starts at address 0. If you have problems, please send a example along with you serial number and address to support.intl@keil.com.
may you please how to define pdata to x:0x00? i am a user of your eval version, please help me
Would you please tell me how to define pdata to x:0x00? I am a user of your eval version, please help me
You need to configure the STARTUP.A51 as explained in the C51.PDF user's guide, Chapter 6 under STARTUP.A51. Also the linker directive PDATA must be used.
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.