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.
How to access ERAM(2 KB on chip memory) in AT89lp51rd2? I have added following code to STARTUP.A51 file.
XDATALEN EQU 7FFH ANL AUXR1,#NOT 02H ; AUXR1/Bit 1 (clear to 0 to enable on-chip XRAM).
if I add following lines, program hang.
xdata char *ptr; for(ptr=0;ptr<0x300;ptr++) { *ptr=0; } //---clearing 768 bytes of ERAM
xdata char *ptr;
for(ptr=0;ptr<0x300;ptr++)
put your thinking cap on
ptr is character pointer.