We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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) {}
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.