I am indeed using the 18f24k22
OSCCON = 10000 is my setting. Hmmn.
But aren't we missing the point? It seems that all the examples I have seen on reading Ir have been at 4 mhz so the pulsin timings are based on that. Because I am trying to run my pic at 16 mhz the pulsin length is different. And further to that, if I set my osc to 4 mhz without changing anything else I get results. It seems to be all about pulsin following the osc frequency.