This RF Remote Controller project is very well documented and even has a step by step explanation of what the PIC microcontroller code is doing line by line!

“On these pages, I will introduce Remote Controller with Radio Frequency. The electric wave sending-out is controlled with the code by PIC for transmission and the code is […]

More: continued here