Quote Originally Posted by Dennis View Post
Code:
DEFINE PULSIN_MAX 11200				'>11200 RETURNS 0
You need to change this. I suggest you make it 120% of the greatest expected pulse. Battery operated transmitters can vary ±10-15%.

Also, there is no 1:1 correspondence between uS and the units used by PulsIn. You need to study and understand the manual. At 20MHz, PulsIn units are 2uS.