I hadn't but I was using porta.4 which isn't an analogue in. I am fairly sure that my pulse length if statements are wrong because I am defo getting good stuff at 4 mhz. It's just when wang it up to 16 mhz I get nout. I think it is all about pulsin pulse widths changing with different oscillator speeds. So looking for a pulsewidth at 4 mhz is different from a pulsewidth at 16. (I have to admit that I am a bit of a newbie at both pics and Ir protocols.)