I changed pin assign.
The result is successfully done.
I test ten different kind of DVD Remote. Key positions are changed but all are work well.
Now I run my program for two different tasks using same key of two different remote (Sony and NEC Protocol).
** two ir protocol can use in same pic **
Adouston,
THANK YOU VERY MUCH for your kindly help.
I read NEC protocol and compare code.
Header is 9ms
- no header found, restart
Space between header and body is 4.5msIf (stx<760) Then init
-wait space
Each pulse is a 560µs longWhile PortA.2=1:Wend
A logical "1" takes 2.25ms to transmit (pulse 560µs + space )
a logical "0" is only half of that, being 1.125ms (pulse 560µs + space )
Please let me know:
1. How to calculate (pulse>100) is logic 1.
2. and PULSIN_MAX 1140 . why do you use 1140
I say again. Thanks.
Moe.





Bookmarks