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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/15/06 07:35
Read: times


 
Msg Score: -1
 -1 Gimmee Code
#110013 - please help me
Responding to: ???'s previous message
i think this will make helpful for readers to solve my problem please please provide me code to solve my problem, i hope after this some expert will give me code. i will be thankful

MOV R0,#09 ;skip 9 unused start,flip, and address bits
MOV p1,0FFH ; make port P1 as IR input Port
MAIN:

JB P1.0,$ ;skip start bit
JNB P1.0,$ ; skip flip bit
DJNZ R0,MAIN
MOV R0,#05 ; to save command bits
CLR A ;

MAIN2:

call delay_900uc ; delay to start reading command bits
MOV C,P1.0 ; get first bit and mov it to carry
RLC A ; save 5 comming bit to A
DJNZ R0,MAIN2
RLC A ; completing 8 bits of A
RLC A
RLC A
CJNE A,#38,LABEL1 ; checks

LABEL1:

MOV P2,0FFH ;
LABEL1:
CJNE A,#39,LABEL2
MOV P2,00H ; toggle all P2 bits

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