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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/01/08 12:10
Read: times


 
#152826 - Names? Delays?
Responding to: ???'s previous message
Eric Leung said:
GETCHAR: 
    		CLR A 
     		MOVC A, @A+DPTR         
     		INC DPTR 
     		JNZ SENDCHAR   		
     		RET    


Why is this routine labelled "GETCHAR" - it doesn't seem to get anything!

RECEIVE_PROMPT:
	
		CALL SHORTDELAY		;wait for a moment	
		RET

Similarly, this doesn't actually receive anything!
Are you sure the delay is long enough?

It'd be far better to really read the response, and ensure that you actually do get the response before continuing...

List of 9 messages in thread
TopicAuthorDate
interfacing 6210 and AT89S52            01/01/70 00:00      
   what is the expected behaviour...            01/01/70 00:00      
      Re: what is the expected behaviour...            01/01/70 00:00      
         I am not sure.            01/01/70 00:00      
   Names? Delays?            01/01/70 00:00      
      Re: delay            01/01/70 00:00      
   Maybe try ...            01/01/70 00:00      
   connected to computer            01/01/70 00:00      
   problem solved            01/01/70 00:00      

Back to Subject List