Padu wrote: > Given a hobby RF receiver, the one that is used to remote control RC > Cars, and knowing that they output regular RC Servo PWM (20ms pulse > train with signal HIGH varying from 1 to 2 ms), what is a good method > for detecting this HIGH interval on a PIC18F452? The easiest way is to use a CCP module in capture mode. It can only be configured to capture one edge polarity at a time, but this isn't a problem because you have at least 1mS between the leading and trailing edges. Set it up to capture the leading edge, then when you get that interrupt save away the capture value and reconfigure it for the trailing edge. You've got a whole mS to do this, so that should be no problem. ****************************************************************** Embed Inc, Littleton Massachusetts, (978) 742-9014. #1 PIC consultant in 2004 program year. http://www.embedinc.com/products -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist