I'm attempting to construct an IR receiver circuit capable of receiving and displaying IR signals in binary format (using LEDs) from hand held IR remote controls. The protocol I'm interested in is the RC5 format originally developed by Phillips. The format consists of 2 start bits followed by a toggle bit indicating a new key is pressed, followed by 5 address bits, and then 6 command bits for a total of 14 bits. I plan to display the bits using 12 LEDs. The RC5 code uses a system where each bit is one cycle of equal time where a "1" is represented by the first half cycle being low followed by the second half cycle high and visa versa for a "0". This yields a weird waveform where the end of one bit may be the same level as the beginning of the next. What would be the best approach to decode the data using a couple shift registers and some sort of clock to sample the data at the right time?
Thanks,
-Bill