If it is just the pulse measurement that you need, a simple:
(w = pulse width)
PULSIN PWInputPin, 1, w
will get you there. But you must call this quite regulary if you need updated values.
Edit: Below is not really a PBP command snippet, but it does what you are asking:
I know it is different hardware than you were planning. But with $2.50 you could buy a board from Radio Shack, and a $2.00 12f683, you could solder your own hardware together. The only variables you would need to pay attention to is the Main. You can read and do your math to RC1, RC2, RC3, RC4, and read only for RC5.
http://www.scalerobotics.com/PWMpassthrough.html
Bookmarks