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

how to enable xdata in P87C51RD+

hi
to use on chip xram of my p87c51RD+. I have made following changes in my code which are recomended here.
http://www.keil.com/support/docs/1758.htm
but my code stuck on this loop.

IDATALOOP:	MOV	@R0,A
		DJNZ	R0,IDATALOOP
regards
Farhan
I have also posted this messege on
http://www.8052.com/forum/read.phtml?id=79977&top=79977

Parents
  • That is the loop in the startup code that clears memory. Are you sure the program is STUCK in this loop?

    IDATALOOP:	MOV	@R0,A
    		DJNZ	R0,IDATALOOP
    

    The DJNZ instruction is a decrement and jump it non-zero. So, if the program is actually STUCK in this look, it means that R0 never decrements down to 0.

    Jon

Reply
  • That is the loop in the startup code that clears memory. Are you sure the program is STUCK in this loop?

    IDATALOOP:	MOV	@R0,A
    		DJNZ	R0,IDATALOOP
    

    The DJNZ instruction is a decrement and jump it non-zero. So, if the program is actually STUCK in this look, it means that R0 never decrements down to 0.

    Jon

Children