I have added infrared receiver from old television to my 18F TFT LCD board.
Particulary it could be useful to enter for instance address for memory copy.
It works so far, if I press button on the remote control, the LED blinks. This is done in hardware not via PIC.
How can I implement interface in software (XC8, PIC 18f24j10)?
I have some idea, but I am stuck with this. Today I have added serial RAM (32K), and just now moved the blinking LED + programmed TIMER0 interrupt.
I plan to use TIMER0 interrupt every 167 usec.
Using a counter to count upto 3000, I get blinking LED 2 times a second or something like this.
Here is the protocol that is to be used, old PANASONIC format.
Indeed the remote control can be programmed with numbers to many different formats.
I appreciate any ideas how to implement this in software. Neither assembler or delay loops can be used.
Also I don't want double codes in a row, so I must take care for repeated codes that are sent. Only after a new start condition, the same code can become accepted again, and only if it has been processed.
I don't even know if the remote control will issue repeated start conditions in a row, or simply repeat the data. But this is important, I need to detect if the code is repeating, or the button was released even if only for a short while.
Particulary it could be useful to enter for instance address for memory copy.
It works so far, if I press button on the remote control, the LED blinks. This is done in hardware not via PIC.
How can I implement interface in software (XC8, PIC 18f24j10)?
I have some idea, but I am stuck with this. Today I have added serial RAM (32K), and just now moved the blinking LED + programmed TIMER0 interrupt.
I plan to use TIMER0 interrupt every 167 usec.
Using a counter to count upto 3000, I get blinking LED 2 times a second or something like this.
Here is the protocol that is to be used, old PANASONIC format.
Indeed the remote control can be programmed with numbers to many different formats.
I appreciate any ideas how to implement this in software. Neither assembler or delay loops can be used.
Also I don't want double codes in a row, so I must take care for repeated codes that are sent. Only after a new start condition, the same code can become accepted again, and only if it has been processed.
I don't even know if the remote control will issue repeated start conditions in a row, or simply repeat the data. But this is important, I need to detect if the code is repeating, or the button was released even if only for a short while.
Attachments
-
50.9 KB Views: 42
-
110.3 KB Views: 37