View previous topic :: View next topic |
Author |
Message |
selina_T Guest
|
how to decode a burst IR signal? |
Posted: Thu Sep 28, 2006 3:14 am |
|
|
Now i am doing a IR reciever. The IR signal i recieve will burst in about 32us (which represent by '0') and will not burst in about 32us (which represent by '1'). So i will decode i burst signal to the '10011010' form. Please do advise to me, thanks! |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1911
|
|
Posted: Thu Sep 28, 2006 7:25 am |
|
|
Check the code library. There are a few different examples of IR decoding software there. |
|
|
selina_T Guest
|
|
Posted: Thu Sep 28, 2006 8:11 pm |
|
|
where is the code library?i am using PIC16F57 CCS Compiler to write my program.... |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1911
|
|
|
selina_T Guest
|
|
Posted: Thu Sep 28, 2006 10:45 pm |
|
|
i found this code in "Infrared receiver for SONY remotes", do you where the interrupt rate formula from? i don't understand the formula.
Infrared Receiver for SONY 12-bit protocol (SIRC)
Compiler: CCS PCH 3.242
Processor: PIC18F452 @ 32MHz
IR Sensor: TSOP1738
Circuit: Standard from TSOP1738 Datasheet, OUT to
RB0
Requires LCD on port D, LED+resistor on RC2
LED blinks when a command is recognised.
Author: Aurelian Nichita [email protected]
Interrupt rate:
4/32000000*65536*1 = 8.192 ms |
|
|
newguy
Joined: 24 Jun 2004 Posts: 1911
|
|
|
selina_T Guest
|
|
Posted: Fri Sep 29, 2006 3:18 am |
|
|
thank for the link, now i understand the formula. But now i am not use timer and interrupt, i jz use crystal to generate my IR pulses, when i decode, what method shoud i use in C programming? |
|
|
|