RC5/RC6 codes on a LCD

A simple project to test and display the transmitted codes from remote controls which work with the RC5 protocol, like the TV remotes from Philips, just aim the remote control at the TSOP1736 IR-receiver.
If you only want to know the code from a button then you can ofcourse also look at the RC5 tables from this website.
The only thing you need is a PIC16F648A or 16F628A (with feeding ofcourse), a HD44780 LCD and a TSOP1736 infrared receiver.

Numeric Function (Only program 1)

There are 2 different .HEX files for programming into a PIC.

Program 1
The first one works only with the RC5 protocol and must be programmed in a PIC16F648A.
When PORTB.0 (pin 6) is connected to GND then the numeric values from system, command and toggle are displayed in binair and decimal.
If PORTB.0 is not connected (just leave it open) then the system and commands are displayed as functions, i.e. system Amplifier and command Volume +.

Program 2
If there's no PIC16F648A in stock or you want also decode RC6 signals, then program the second .HEX file in a PIC16F628A.
Program 2 can not give function names, so PORTB.0 has no function here.
The second .HEX file displays the numeric values from system, command and toggle in binair and decimal on the LCD.

A LED connected on PORTA.3 returns the toggle signal.
The green LED flashes if an infrared (IR) signal is being received, the red LED if the received signal is poor or if it's not a RC5/RC6 code and the yellow LED if only a 'glitch' is received.
You can leave these LED's if you don't need this information.

Attention: The TSOP1736 (= 36kHz IR-receiver) must connected via a 470Ω resistor to +5V and over the + and - pin a tantalium capacitor of minimal 1µF!



Program 1:

Download RC5NAMES.HEX, V-1 (RC5 names) file to program in a PIC16F648A
Download RC5_Names_V-1_UK.bas, the sourcecode for PIC Basic

Program 2:

Download DECODERU.HEX, V-1 (RC5/RC6 decoder) file to program in a PIC16F628A
Download RC5-RC6_Decoder_V-1_UK.bas, the sourcecode for PIC Basic

This project is also available in combination with the RC5/RC6 transmitter, it is recommended to build that project because it doesn't have much extra components and there is a PCB layout.
Unfortunately, names (program 1) is not possible.