View previous topic :: View next topic |
Author |
Message |
cem
Joined: 02 Jan 2010 Posts: 5
|
need sirc/rc5 driver |
Posted: Sat Jan 02, 2010 2:38 am |
|
|
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
|
|
|
cem
Joined: 02 Jan 2010 Posts: 5
|
|
Posted: Sat Jan 02, 2010 3:52 am |
|
|
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
|
|
|
cem
Joined: 02 Jan 2010 Posts: 5
|
|
Posted: Sat Jan 02, 2010 5:04 am |
|
|
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
|
|
Posted: Sat Jan 02, 2010 5:58 am |
|
|
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
|
|
Posted: Sat Jan 02, 2010 6:29 am |
|
|
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
|
|
|
cem
Joined: 02 Jan 2010 Posts: 5
|
|
Posted: Sat Jan 02, 2010 2:39 pm |
|
|
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 |
|
|
|