
This Wikipedia page contains more details about the RC-5 protocol. The RC5 protocol uses Manchester coding, logic 1 and logic 0 are coded as shown in the following drawing where toggle bit is 1, address = 0 and command is 2: The toggle bit changes whenever a button is pressed.

The next 5 bits are address bits, each device type has its address number for example TV address number is 0, CD player address = 20 …………Īnd the last 6 bits are command bits, each button has its command number.įor the same device for example TV all the remote control buttons have the same address but each button has its command. The third bit called toggle bit, it can be logic 1 or logic 0. The first 2 bits are start bits and they are always logic 1.

The RC5 has 14 bits per 1 code transmission, the 14 bits can be divided into 4 parts: The RC-5 protocol was developed by Philips in the late 1980s as a semi-proprietary consumer IR (infrared) remote control communication protocol for consumer electronics. The compiler used in this project is Microchip MPLAB XC8 (MPLAB X IDE with MPLAB XC8 compiler).

Decoded results are displayed on 16×2 LCD screen. This post shows how to decode IR (Infra-Red) remote controls which use Philips RC5 (RC-5) protocol using PIC16F887 microcontroller.
