You don't need either a rising or falling leading edge for PULSIN depending on the pin state when PULSIN is called.
I didn't read your code so my comments were based purely on the content of your posts. It wasn't clear that you were using separate PICs.
Another way to do this type of measurement is by using a soundcard as an oscilloscope. See...While the URL deals with IR & RF codes, they're just pulsestreams so the principle is the same.
Bookmarks