3.1 CCPx Pin Configuration
The CCPx pin must be configured as an output in software by clearing the associated TRIS bit and defining the appropriate output pin through the RxyPPS registers. See the “PPS - Peripheral Pin Select Module” chapter in the device data sheet for more details.
The CCP output can also be used as an input for other peripherals. For example, the CCP output can be used as an optional Timer1 Gate trigger input source.
Important: Clearing the CCPxCON register will force the
CCPx compare output latch to the default low level. This is not the PORT I/O data
latch.