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 CCS Technical Support

need sirc/rc5 driver

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



Joined: 02 Jan 2010
Posts: 5

View user's profile Send private message

need sirc/rc5 driver
PostPosted: Sat Jan 02, 2010 2:38 am     Reply with quote

Hi;
Is there any sirc or rc5 protocol driver for ccs c? I want to do a project which need ir remote control. I couldnt found any driver yet.
necati



Joined: 12 Sep 2003
Posts: 37
Location: istanbul

View user's profile Send private message

PostPosted: Sat Jan 02, 2010 3:17 am     Reply with quote

http://www.servomagazine.com/downloads.php
cem



Joined: 02 Jan 2010
Posts: 5

View user's profile Send private message

PostPosted: Sat Jan 02, 2010 3:52 am     Reply with quote

thx for the link. it will help to understand coding. but i couldnt find any driver in there.
necati



Joined: 12 Sep 2003
Posts: 37
Location: istanbul

View user's profile Send private message

PostPosted: Sat Jan 02, 2010 4:49 am     Reply with quote

http://www.servomagazine.com/downloads.php

IRdecoder.zip (3.66 KB)
cem



Joined: 02 Jan 2010
Posts: 5

View user's profile Send private message

PostPosted: Sat Jan 02, 2010 5:04 am     Reply with quote

i already checked it. it is a code, it is not a driver. it is code for 16F688 pic.
Rohit de Sa



Joined: 09 Nov 2007
Posts: 282
Location: India

View user's profile Send private message Visit poster's website

PostPosted: Sat Jan 02, 2010 5:58 am     Reply with quote

What exactly do you want? Transmitter code or receiver code? The program is for a receiver.

You can very easily write code for a transmitter; you just need to know what the output waveform should look like. You could decipher that from the receiver code found in IRdecoder.zip, but if you want things a bit easier read up about the SIRC/RC5 schemes here:

http://www.sbprojects.com/knowledge/ir/sirc.htm
http://www.sbprojects.com/knowledge/ir/rc5.htm

This is more than enough to get you started. You can write you own LED toggling routines with appropriate delays and duty cycles. Or, better yet, if you have a PIC with PWM you could simply set the frequency to 38kHz and set duty to 0 when you want to turn off the signal.

Rohit
cem



Joined: 02 Jan 2010
Posts: 5

View user's profile Send private message

PostPosted: Sat Jan 02, 2010 6:29 am     Reply with quote

I need a receiver for sirc or rc5. i will use my universal remote control as transmitter. I will do remote controled av switch box with glcd. The only part that i cant deal ir part. There is no problem with using video mux, audio mux section and glcd part also ok for me.
I am not expert on pic programming as you see. I dont want to do mistakes at ir codes while i am trying to change my program. This is why i need a driver. i tried before but unfortunately i couldn't deal. I want to do c coding. if i cant do that with c, i will use proton for easier ir control.

Thanks in advance
necati



Joined: 12 Sep 2003
Posts: 37
Location: istanbul

View user's profile Send private message

PostPosted: Sat Jan 02, 2010 7:57 am     Reply with quote

http://ccspic.com/driver/sony-sirc-protokolu-ve-ccs-surucu-programi.html
cem



Joined: 02 Jan 2010
Posts: 5

View user's profile Send private message

PostPosted: Sat Jan 02, 2010 2:39 pm     Reply with quote

necati wrote:
http://ccspic.com/driver/sony-sirc-protokolu-ve-ccs-surucu-programi.html


I checked the codes at this page. Also i read 18f452 data sheet. The timer0 module of 18f452 is 8 bit in default. And timer0 can serve 16 bit mode according to data sheet. I didnt see any code which changes T0CON register for 16 bit timer0 module. In the current code of 8 bit version, it uses 1us cycles. So it will provide 256 us at total. It cant check 1800 us time with "irframes[ircount] = get_timer0()" code. So i think a line is missing. Am i right??

Cem
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