I'd like to use one of the CCP modules on the 16C74A to decode a frame of pwm data (not unlike R/C equipment, but with 16 pwm pulses in the frame) To capture the mark/space ratio, I need to capture on the leading and the trailing edge of each pulse. I thought of changing the CCPCON register as soon as the first positive edge had caused an interrupt, so that it'd capture again on the trailing edge. The data book says that doing this can cause an unwanted interrupt - is it enough to clear out the CCP1IF bit again before returning from the first interrupt? Jim -- Jim Main