XBYTE
The XBYTE macro accesses individual bytes in the external data memory of the 8051. You may use this macro in your programs as follows:
#include <absacc.h> /* Include Macro Definitions */
.
.
.
rval = XBYTE [0x0002];
XBYTE [0x0002] = 57;
.
.
.
This example reads and writes the contents of the byte in external data memory at address 0002h.
The range of valid index values for this macro is 0-65535.
Related Knowledgebase Articles