Bruce,

First of all thanks for the code.

I tried out your program and I get some data in.
However depending on the angle I keep getting other values when pressing the same button (distance about 60cm)
I know there is a toggle bit that changes when pressing the same button twice but this should not affect the 'data' part of the RC5 that is filtered out here.
I have to say that I run the program with a 10MHz crystal instead of 20MHz as specified in your program.
Can this be the cause?

Thank you.

Best regards