3.3 Compare Mode Interrupts

The CCP Interrupt Flag (CCPxIF) bit is set with every comparison match. If the device is in Sleep and the CCP Interrupt Enable (CCPxIE) bit is set, the device will wake up. CCPxIF must be cleared in software.