Capture Sources

In Capture mode, the CCPx pin should be configured as an input by setting the associated TRIS control bit.

Important: If the CCPx pin is configured as an output, a write to the port can cause a capture condition.

The capture source is selected by configuring the CTS bits as shown in the following table:

Table 1. Capture Trigger Sources
CTS Source
11 IOC Interrupt
10 CMP2_output
01 CMP1_output
00 Pin selected by CCPxPPS