Hi Everyone, I'm trying to shrink my interrupt service routine on a 16F87x program that has multiple interrupt sources. In the service routine I have a test and a service routine for each of the three interrupt sources I have operating. The section in question is the capture interrupt for CCP2. Currently the capture module is always on, and when I want to use it I clear the CCP2 interrupt flag and set its enable flag. In the interrupt service routine I test for both CCP2IE and CCP2IF which are in different banks, meaning I'd like to simplify things a bit here. I'm thinking that I should just test for CCP2IF and make darn sure that flag never gets set unless I am capturing, and who cares about CCP2IE because it'll always be set. So I'm proposing that most of the time I keep capture2 module switched off, and when I want to do a capture I'll disable global interrupts, fire up the capture2 module, clear CCP2IF in case I get a "Microchip False Interrupt(TM)" and re-enable global interrupts. That should save me the extra test and related bank switching in my interrupt service routine. Comments? Thanks, Bob -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body