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

IR Decode software (Sony and RC5) available for download

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







IR Decode software (Sony and RC5) available for download
PostPosted: Mon Mar 17, 2003 10:35 am     Reply with quote

We have posted some sample software that implements an interrupt driven method to decode both the Sony and RC5 (Philips) IR codecs. The routines use the EXT interrupt line which is tied to an IR demodulator (ex. TSOP4840). The software also uses Timer3 on PIC18FXX2 for timing and timeout checking. The software detects which codec by looking at the start bit timing. The routines are implemented as state machines that are called via the two interrupt handlers. The received messages are placed in a circular buffer to be processed by a main routine. Examples of how to handle continuous messages are also demonstrated.

Caveat: This code has not been tested with a remote that outputs the extended RC5 format.

Best Regards,

Dale
___________________________
This message was ported from CCS's old forum
Original Post ID: 12769
guest
Guest







IR decode software
PostPosted: Tue Jun 08, 2004 6:35 pm     Reply with quote

I appreciate this posting was made a long while back but would anyone know the location of this software?

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jun 08, 2004 8:27 pm     Reply with quote

This might be it. I'm not totally sure:
http://www.ccsinfo.com/forum/viewtopic.php?t=4215&highlight=rc5+sony

But by using http://www.google.com I found several other
pages with useful source code.

Sony code for CCS:
http://web.media.mit.edu/~ayb/irx/sony/sony.c
Main web page for the link above:
http://web.media.mit.edu/~ayb/irx/

Some other CCS code:
http://chanhak.com.ne.kr/rc5.htm

Sony code for the CC5x compiler:
http://www.piclist.com/techref/ubicom/lib/io/osi2/ir/ir2ser.c

Other possibly useful code:
http://web.media.mit.edu/~ayb/irx/irda/irda.c
http://web.media.mit.edu/~stefanm/yano/picc_cheeks.html

How to find code for CCS:

Using Google, search for "use delay" and other keywords, one at a time.
Example of four different search strings :

"use delay" char Sony
"use delay" char RC5
"use delay" char "RC-5"
"use delay" char infrared

Most CCS programs will have "use delay" in them. You must use
the quotes to make it be a phrase. Also put in "char" to help you
find actual source code. Then put your specific keyword at the end
of the string. Try variations of your keywords. If a keyword has
a dash in it, then quote the keyword to keep it as a phrase.
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