??? 02/14/06 21:30 Read: times Msg Score: -2 -2 Gimmee Code +1 Underrated -1 Didn't Search First |
#109984 - RC5 code scanning for philips saa3010 |
Hello Everybody!
I wrote a testing code for scanning rc5 protocol codes to scan philips SAA3010 remote on port P2 by connecting LEDs but it does not do any response to my hardware. i just toggle P2 by using only two ir signals from remote. The code is written below please notify my about my mistake and also help me developing appropiate code. the code is as: MOV R0,#09 MAIN: JB P1.0,$ JNB P1.0,$ DJNZ R0,MAIN MOV R0,#05 CLR A MAIN2: call 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 |