In Capture mode, the CCPx pin should be configured as an input by setting the associated TRIS control bit.
The capture source is selected by configuring the CTS bits as shown in the following table:
CTS | Source |
---|---|
101-111 | Reserved |
100 | IOC Interrupt |
011 | CMP3_output |
010 | CMP2_output |
001 | CMP1_output |
000 | Pin selected by CCPxPPS |