David Novak wrote: > if ( CCP2IF ) > { > ... > > // Clear interrupt flag. > CCP2IF =3D0; > } Single step thru the assembly instructions to see what is really happening. Compilers can have bugs, and the interaction between the compiler and interrupts is a particular bad spot. I can't think of a reason the real hardware would do what you describe. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .