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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/05/02 07:02
Read: times


 
#33818 - RE: Serial programming problem
Dear John,
Thanks for using my code.

-----------------------------------------
MOV R0,#60H ; POINTER FOR THE DISPLAY
MOV SP,#40H

Why #60H and #40H?
-----------------------------------------

R0 is used as a pointer to store the received data from the terminal. Starting from 60h u start storing them. Its only for debugging purpose and for nothing else. If u donot want to store the received data in the ram u can remove the following 3 lines in the code
MOV R0,#60H ; POINTER FOR THE DISPLAY
MOV @R0,ACC
INC R0

and about ur doubt regarding MOV SP,#40H.
u can even use the SP with 20H or what ever SAFE value u can think. There is abs no problem with it. I just assigned it with 40H and there is not much significance.Donot worry about stack overflow bcz u donot have too many calls,returns and interrupts in ur case.

Hope i am clear...

good luck
-sathish

List of 13 messages in thread
TopicAuthorDate
Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      
RE: Serial programming problem            01/01/70 00:00      

Back to Subject List