27.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 for more details.
The CCP output can also be used as an input for other peripherals.
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.