RC5 Philids protocol

With this peripheral it is possible to get a remote control to infrared with standard coding Philips RC5. In more youe can be personalized modifying the length of the code and the frequency.
The control bit contained in the protocol RC5 calls RC5bitT for the transmission and RC5BitR for the receipt.
In the case is wanted to know the value of this bit on the received code it is had to make a will instead the bit RC5BitR if it is had to reverse the bit of control to every transmission it will be had to use the command Toggle on the bit RC5BitT.

Features of RC5 Philids protocol:

5 bit address and 6 bit command length
Bi-phase coding
Carrier frequency of 36kHz
Constant bit time of 1.778ms (64 cycles of 36 kHz)

Commands:RC5out, RC5in

RC5 setup:

1. Configuration of the ports destined RC5 to the transmission and the receipt of the code
2. Length of the address and of the command
3. 1 or 2 bit of start
4. Frequency of transmission of the Bit
5. Frequency of the modulation on/off of the led of transmission depend on the characteristics of the used receiver
6. Timer devoted to the timeout of receipt. The TimeOut is calculated according to the formula:
TimeOut=2*(Address Len+Code Len) * bit_time
7. Enable/Disable of the peripheral one