Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Issue successfully resolved

???
06/19/04 06:28
Read: times


 
#72774 - R5 & R7: ?
Please look at the program below:

ST: MOV A,R7 ;Start w/ R7=0
MOVC A,@A+DPTR
MOV P0,A ;Display
CALL DELAY
INC R7
CJNE R7,#0EH,ST
MOV P0,#00H ;All finished.
JMP $

I've checked many many time carefully, but the program still not working. It supposed to be display some LED patterns but it didn't. I've wrote another this kind of program using DPTR, but it was work. So I make a change to the register using: replace R7 with R5, and the program works fine. Why is there a difference?

Stanley

List of 7 messages in thread
TopicAuthorDate
R5 & R7: ?            01/01/70 00:00      
   RE: R5 & R7: ?            01/01/70 00:00      
   RE: R5 & R7: ?            01/01/70 00:00      
      Solved!            01/01/70 00:00      
   RE: R5 & R7: ?            01/01/70 00:00      
   RE: R5 & R7: ?            01/01/70 00:00      
      RE: R5 & R7: ?            01/01/70 00:00      

Back to Subject List