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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/07/12 14:17
Read: 587 times


 
#186489 - Instruction says
Responding to: Erik Malund's previous message
Hi Erik,

You are clearing accumulator
Then a byte of data is being moved from code memory to Accumulator and then written to SBUF1 in WRITE_SERIAL.

I will use spaces in future.

Thanks

WRITE_TABLE_SERIAL:
NEXT_BYTE:

        CLR   ACC ;;***** read the instruction below @A PLUS DPTR


    	MOVC  A, @A+DPTR   ;LET ACC = THE POINT THAT VALUE OF ACC POINTS TO IN DATAPOINTER
    	LCALL WRITE_SERIAL ;CALL ROUTINE
    	INC   DPTR	   ;INCREMENT DATAPOINTER TO WRITE NEXT BYTE OF CODE
	DJNZ  R0,NEXT_BYTE ;DECREMENT RO TO ACCOUNT FOR NEXT BYTE IN CODE MEMORY TO BE SENT, THEN JUMP BACK TO NEXT_BYTE IF NOT = 0

List of 17 messages in thread
TopicAuthorDate
Serial coms, bytes not matching in serial capture      Dave McNamara      03/07/12 10:22      
   Couple of things at first glance...      Robert Revens      03/07/12 12:52      
      Response      Dave McNamara      03/07/12 13:13      
         OK      Robert Revens      03/07/12 14:09      
   what does the instruction spell out      Erik Malund      03/07/12 13:46      
      Instruction says      Dave McNamara      03/07/12 14:17      
         Got it      Dave McNamara      03/07/12 14:29      
            have a good read      Erik Malund      03/08/12 07:16      
               Nitgen FIM5360 module      Dave McNamara      03/09/12 11:46      
                  Not familiar with the module...      Robert Revens      03/09/12 14:03      
                     Boot up time...      Robert Revens      03/09/12 14:15      
                     Response      Dave McNamara      03/09/12 14:55      
                        Isn't boot time always time from reset or time from power-on      Per Westermark      03/09/12 15:10      
                           Ok      Dave McNamara      03/09/12 15:18      
                        SCON1...      Robert Revens      03/10/12 05:24      
                           Jumping from RET to Jump Start      Dave McNamara      03/10/12 07:43      
   Please Ignore last post, issue resolved      Dave McNamara      03/10/12 10:30      

Back to Subject List