CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

how to decode a burst IR signal?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
selina_T
Guest







how to decode a burst IR signal?
PostPosted: Thu Sep 28, 2006 3:14 am     Reply with quote

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: 1903

View user's profile Send private message

PostPosted: Thu Sep 28, 2006 7:25 am     Reply with quote

Check the code library. There are a few different examples of IR decoding software there.
selina_T
Guest







PostPosted: Thu Sep 28, 2006 8:11 pm     Reply with quote

where is the code library?i am using PIC16F57 CCS Compiler to write my program.... Smile
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Thu Sep 28, 2006 8:35 pm     Reply with quote

Rolling Eyes

http://www.ccsinfo.com/forum/viewforum.php?f=2&sid=4cedc4b0c471db4cfdbb1cc06d0793b2
selina_T
Guest







PostPosted: Thu Sep 28, 2006 10:45 pm     Reply with quote

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 nicksubzero@yahoo.com

Interrupt rate:
4/32000000*65536*1 = 8.192 ms
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Thu Sep 28, 2006 10:51 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=22467
selina_T
Guest







PostPosted: Fri Sep 29, 2006 3:18 am     Reply with quote

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?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group