the codes like follow: #include<absacc.h> #include<reg52.h> #define XRAMTEST XBYTE[0X1111] main() { unsigned char t ; t = XRAMTEST; while(1); } when use the _WBYTE(0x1111,0x55) in the debug textbox. when the code run to the line t = XRAMTEST. but the variable t don't equ 0x55 but equ 0 why? thanks !
Thank you .Jon Ward. It works very well.
There is more than one memory space on the 8051 with an address 0x1111. You need to put the memory space specifier in the address.
_WBYTE(X:0x1111,0x55)
View all questions in Keil forum