Jim Main wrote: > I'd like to use one of the CCP modules on the 16C74A to decode a > frame of pwm data > .... > 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? Yes. -Andy === Andrew Warren - fastfwd@ix.netcom.com === Fast Forward Engineering - Vista, California === http://www.geocities.com/SiliconValley/2499 === For PICLIST help (including "unsubscribe" instructions), === put the single word "help" in the body of a message and === send it to: listserv@mitvma.mit.edu