26.5.7.3 Compare Modes Data Write
Three data registers are provided for Output Compare modes:
- CCPxPR
- CCPxRA
- CCPxRB
CCPxPR provides a value for comparison to the module timer; the match is used to:
- Set the count period of the time base.
- Generate CCP Sync outputs for other modules.
CCPxRA provides a value for comparison to the module timer; the match is used:
- As a second compare register in Dual Compare mode to create all negative edges.
- As the upper 16 bits of the compare value in 32-bit single edge compare operations.
When the module operates with a 32-bit time base (T32 =
1), CCPxRB and
CCPxRA are combined to form a single 32-bit Compare register. The CCPxRB value is
compared to the upper 16 bits of the time base, and the CCPxRA value is compared to the
lower 16 bits. The CCPxRB/CCPxRA register pair performs these functions in 32-bit
modes:- Edge generation in Single Edge Output Compare modes
- Generates the ccp_trig_out signal.
A Time-Base Period register is not available in the 32-Bit Single Edge Output Compare mode. The CCP Sync output signal is generated only on a rollover from FFFFFFFF to 00000000.
