This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

XRAM not cleared, variables not assigned

im using a phillips 89c668 uC with 64k on chip ROM and 8k on chip XRAM. keil has been setup to use the on chip XRAM. AUXR is set to 0. startup.a51 has been modified to include the foll

XDATASTART EQU 0H ; the absolute start-address of XDATA memory
XDATALEN EQU 1EFFH ; the length of XDATA memory in bytes.

this should clear the XRAM, however when i display the contents of a variable that i assign 0 during declaration, it shows garbage. hence neither is the XRAM being cleared, nor is the assignment during declaration taking place.

0