1.1 CCP Module Configuration

Each CCP module is associated with a CCP Control register (CCPxCON), a CCP Capture Input Selection register (CCPxCAP) and a CCP Data register pair (CCPRxH:CCPRxL). The CCPxCAP register is used only in Capture mode and selects the input signal that will be measured. The CCPRx register pair is used in each CCP mode of operation. In Capture mode, the CCPRx register pair stores the captured value from the specified signal. In Compare mode, the CCPRx register pair holds the value for comparison while in PWM mode, this register is used to configure the duty cycle of the output signal.