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
  • This bit of code may fail if the selected register bank is not zero. If, for example, register bank 1 is selected then when R0 is equall to 8 the instruction:

        MOV @R0,A
    
    Will clear R0. The following DJNZ instruction will set R0 to 0xFF and the code will loop forever.

Reply
  • This bit of code may fail if the selected register bank is not zero. If, for example, register bank 1 is selected then when R0 is equall to 8 the instruction:

        MOV @R0,A
    
    Will clear R0. The following DJNZ instruction will set R0 to 0xFF and the code will loop forever.

Children