I have TSOP1738 and PIC16f887a, 4mH. I want to do something which is:
- if I push button '2', led1 should work.
- if I push button '4', led2 should work.
I just simply thought a method but couldn't succeed. I found my remote controller buttons' addresses. For example the address of button '2' is 0XFF18E7
and I made this :
if(input(pin_a0) == 0xFF18E7){
output_b(0b00000001);
delay_ms(500);
}
By the way, I connected output pin of TSOP1738 to pin_a0 and connected led to pin_b0
.
I think pins work only 1 or 0 and do not see that address as I tried.
How can I interface my remote controller with PIC?
Which way should I follow?
I don't know interrupt method, is there any way except interrupt?
(I have term project, I just trying this remote controller to see if it works or not. I will then use that on a DC motor action)