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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/14/06 22:52
Read: times


 
#109991 - Formatted Fragments
Responding to: ???'s previous message
Don't you get an error with two "LABEL1"'s and a call to 900uc when it should be 900us ??
Assuming 11.059Mhz crystal, you're delay is right. But other than that, this appears to be just fragments with errors and no apparent flow.

Jon

	ORG	0
	LJMP	START
	ORG	40H
START: 	MOV	R0,#09
MAIN:	JB	P1.0,$
	JNB	P1.0,$
	DJNZ	R0,MAIN
	MOV	R0,#05
	CLR	A
;
MAIN2:	ACALL	delay_900uc
	MOV	C,P1.0
	RLC	A
	DJNZ	R0,MAIN2
	RLC	A
	RLC	A
	RLC	A
	CJNE	A,#38,LABEL1
;
LABEL1:	MOV	P2,0FFH
LABEL1:	CJNE	A,#39,LABEL2
	MOV	P2,00H
LABEL2:	JMP	MAIN
;
delay_900us:
;
TT0:	MOV	R2,#2
	MOV	R1,#152
TT1:	DJNZ	R1,TT1
	DJNZ	R2,TT1
	NOP
	RET
END


List of 37 messages in thread
TopicAuthorDate
RC5 code scanning for philips saa3010            01/01/70 00:00      
   not again            01/01/70 00:00      
      not quite the same, but halfway agree            01/01/70 00:00      
   Formatted Fragments            01/01/70 00:00      
      of course he does, but does he care?            01/01/70 00:00      
         And here it is:            01/01/70 00:00      
   Still bugs in code            01/01/70 00:00      
      Then WHY no comments!!!!!!!!!!!!!!!!!            01/01/70 00:00      
         back to basics            01/01/70 00:00      
            ah            01/01/70 00:00      
               I have done all previous attempts            01/01/70 00:00      
                  who cares if you "did" the basics, did y            01/01/70 00:00      
                  Re: I have done all previous attempts            01/01/70 00:00      
                     Silver Platter            01/01/70 00:00      
               I have done all previous attempts            01/01/70 00:00      
                  Previously            01/01/70 00:00      
   Still bugs in code            01/01/70 00:00      
      shame there isnt a 'drop dead' score            01/01/70 00:00      
   please help me            01/01/70 00:00      
      Make an effort.            01/01/70 00:00      
   can we close this thread steve.            01/01/70 00:00      
      One more chance?            01/01/70 00:00      
   whats up discussion goes out of topic            01/01/70 00:00      
      Help - not freebies!            01/01/70 00:00      
         Didn't I try for basic            01/01/70 00:00      
            It doesn't show, I'm afraid.            01/01/70 00:00      
               you forgot what you already posted            01/01/70 00:00      
                  Timewarp            01/01/70 00:00      
                     oh well            01/01/70 00:00      
   Silver Platter            01/01/70 00:00      
      Can this be the last ever RC5 post?!            01/01/70 00:00      
         Amazing            01/01/70 00:00      
            Some people!            01/01/70 00:00      
               if it does not go your way, stamp your            01/01/70 00:00      
      And he does it again!            01/01/70 00:00      
   Yes off course            01/01/70 00:00      
      Post...            01/01/70 00:00      

Back to Subject List