matelda
Guest
|
|
« on: May 22, 2006, 11:15:20 23:15 » |
|
hi: would u please my friends to guide me to pic compiler that supports RC5 ir protocol , or provide me with library for proton or mikrobasic supporting this ir protocol . best regards Matelda
|
|
|
Logged
|
|
|
|
Parmin
Hero Member
Offline
Posts: 582
Thank You
-Given: 496
-Receive: 133
Very Wise (and grouchy) Old Man
|
|
« Reply #1 on: May 23, 2006, 12:05:41 00:05 » |
|
Les from Proton have an instruction for RC5 in the proton user group.
|
|
|
Logged
|
If I have said something that offends you, please let me know, so I can say it again later.
|
|
|
matelda
Guest
|
|
« Reply #2 on: May 23, 2006, 01:12:32 13:12 » |
|
hi buti did not find this instruction , would u tell me which version of proton support RC5 . thankx Parmin
|
|
|
Logged
|
|
|
|
miba
Newbie
Offline
Posts: 11
Thank You
-Given: 312
-Receive: 5
|
|
« Reply #3 on: May 23, 2006, 02:12:43 14:12 » |
|
... from them manual (Proton+ v3.x):
RC5IN
Syntax
Variable = RC5IN
Overview
Receive Philips RC5 infrared data from a predetermined pin. The pin is automatically made an input.
Operators - Variable - a bit, byte, word, dword, or floatvariable, that will be loaded by RC5In. The return data from the RC5In command consists of two bytes, the SYSTEM byte containing the type of remote used. i.e. TV, Video etc, and the COMMAND byte containing the actual button value. The order of the bytes is COMMAND (low byte) then SYSTEM (high byte). If a byte variable is used to receive data from the infrared sensor then only the COMMAND byte will be received.
Example
Device = 16F877 RC5IN_PIN = PORTC.0 ' Choose the port and pin for the infrared sensor DIM RC5_WORD as WORD ' Create a WORD variable to receive the data DIM RC5_COMMAND as RC5_WORD.Lowbyte ' Alias the COMMAND byte to RC5_WORD low byte DIM RC5_SYSTEM as RC5_WORD.Highbyte ' Alias the COMMAND byte to RC5_WORD high byteALL_DIGITAL = ON ' Make all pins digital mode Cls ' Clear the LCD While 1 = 1 ' Create an infinite loop Repeat RC5_WORD = RC5In ' Receive a signal from the infrared sensor Until RC5_COMMAND<> 255 ' Keep looking until a valid header foundPrint at 1,1,"SYSTEM ",Dec RC5_SYSTEM," " ' Display the SYSTEM value Print at 2,1,"COMMAND ",Dec RC5_COMMAND," " ' Display the COMMAND value Wend
Declares
There is a single Declare for use with RC5In: - DECLARE RC5IN_PIN PORT . PIN Assigns the Port and Pin that will be used to input infrared data by the RC5In command. This may be any valid port on the PICmicro. If the Declare is not used in the program, then the default Port and Pin is PORTB.0. Notes
The RC5In command will return with both COMMAND and SYSTEM bytes containing 255 if a valid header was not received. The CARRY (STATUS.0) flag will also be set if an invalid header was received. This is an ideal method of determining if the signal received is of the correct type.
RC5In is oscillator independent as long as the crystal frequency is declared at the top of the program. If no XTAL Declare is used, then RC5In defaults to a 4MHz crystal frequency for its timing.
|
|
|
Logged
|
|
|
|
matelda
Guest
|
|
« Reply #4 on: May 23, 2006, 08:49:49 20:49 » |
|
thankx miba i will look it up and i will infform u soon thankx a lot best regards matelda
|
|
|
Logged
|
|
|
|
matelda
Guest
|
|
« Reply #5 on: May 23, 2006, 09:30:49 21:30 » |
|
Dear miba : i downloaded the manual and i did not find anything about rc5 protocol , i hope to provide me with links for the compiler and its manual . i look forward hearing u soon . best regards Matelda
|
|
|
Logged
|
|
|
|
miba
Newbie
Offline
Posts: 11
Thank You
-Given: 312
-Receive: 5
|
|
« Reply #6 on: May 26, 2006, 12:27:43 12:27 » |
|
Well - - there should be an insightfull online manual named ProtonIDE.chm in the folder ProtonIDELite or alternatively in th folder ProtonIDE...
|
|
|
Logged
|
|
|
|
matelda
Guest
|
|
« Reply #7 on: May 27, 2006, 12:14:38 00:14 » |
|
hi: thankx for all , and thankx for this great website, i got the proton that supports rc5 and Sony protocol. best regards Matelda
|
|
|
Logged
|
|
|
|
sohel
Senior Member
Offline
Posts: 442
Thank You
-Given: 167
-Receive: 149
|
|
« Reply #8 on: August 15, 2006, 06:50:39 18:50 » |
|
Can u help me to build remote control fan speed control + light switch. useing pwm for speed . it is very usefull for home application.
thanks
|
|
|
Logged
|
|
|
|
YoeNC
Guest
|
|
« Reply #9 on: October 05, 2006, 12:47:10 00:47 » |
|
It's possible this example by PBP??
bytes
Yoe
|
|
|
Logged
|
|
|
|
cesarman
Junior Member
Offline
Posts: 38
Thank You
-Given: 7
-Receive: 4
|
|
« Reply #10 on: October 05, 2006, 11:33:26 23:33 » |
|
Yes its possible in PBP, read this ebook, has some samples and sources, using pic16f84a an some others, this book helpme a lot a me.
password:[www.sonsivri.com] Link: [http://z02.zupload.com/download.php?file=getfile&filepath=6230] take off the []
|
|
|
Logged
|
|
|
|
mizk_electro
Cracking Team
Active Member
Offline
Posts: 133
Thank You
-Given: 5
-Receive: 3
|
|
« Reply #11 on: October 06, 2006, 07:18:51 19:18 » |
|
Yes its possible in PBP, read this ebook, has some samples and sources, using pic16f84a an some others, this book helpme a lot a me.
password:[www.sonsivri.com] Link: [http://z02.zupload.com/download.php?file=getfile&filepath=6230] take off the []
Can you upload to rapidshare ... I cannot download for link... thks dude.
|
|
|
Logged
|
|
|
|
|
mizk_electro
Cracking Team
Active Member
Offline
Posts: 133
Thank You
-Given: 5
-Receive: 3
|
|
« Reply #13 on: October 07, 2006, 07:29:10 07:29 » |
|
cesarman & parallaxis,
thnks a lot guys.
|
|
|
Logged
|
|
|
|
cesarman
Junior Member
Offline
Posts: 38
Thank You
-Given: 7
-Receive: 4
|
|
« Reply #14 on: October 13, 2006, 08:47:44 20:47 » |
|
Your Wellcome,
|
|
|
Logged
|
|
|
|
|