27.3.1 CCPx Control Register 1

Note:
  1. Control bit has no function in Input Capture modes.
  2. Control bit has no function when TRIGEN = 0.
  3. Values greater than ‘0011’ will cause a FIFO buffer overflow in Input Capture mode.
  4. See Table 27-20 for the definition of Sync inputs.
  5. 32-bit operation is not available in Dual Edge Output Compare modes.
Table 27-4. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Gray cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
CWrite to clearSSoftware settable bitxChannel number
Name: CCPxCON1
Offset: 0x1B00, 0x1B30, 0x1B60, 0x1B90

Bit 3130292827262524 
 OPSSRCRTRGEN  OPS[3:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 2322212019181716 
 TRIGENONESHOTALTSYNCSYNC[4:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 ON SIDLSLPENTMRSYNCCLKSEL[2:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 76543210 
 TMRPS[1:0]T32CCSELMOD[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 31 – OPSSRC  Output Postscaler Source Select bit(1)

ValueDescription
1Output postscaler scales module trigger output events
0Output postscaler scales time base interrupt events

Bit 30 – RTRGEN  Retrigger Enable bit(2)

ValueDescription
1Time base can be retriggered when CCPTRIG (CCPxSTAT[7]) = 1
0Time base may not be retriggered when CCPTRIG (CCPxSTAT[7]) = 1

Bits 27:24 – OPS[3:0]  Time Base Interrupt/Input Capture Event Postscale Select bits(3)

ValueDescription
1111Interrupt CPU every 16th time base period match
1110Interrupt CPU every 15th time base period match
...
0100Interrupt CPU every 5th time base period match
0011Interrupt CPU every 4th time base period match or after four input capture events
0010Interrupt CPU every 3rd time base period match or after three input capture events
0001Interrupt CPU every 2nd time base period match or after two input capture events
0000Interrupt CPU after each time base period match or each input capture event

Bit 23 – TRIGEN CCPx Trigger Enable bit

ValueDescription
1Trigger operation of time base is enabled
0Trigger operation of time base is disabled

Bit 22 – ONESHOT One-Shot Mode Enable bit

ValueDescription
1One-Shot Trigger mode enabled; trigger duration set by the OSCNT[2:0] (CCPxCON3[30:28]) bits
0One-Shot Trigger mode disabled

Bit 21 – ALTSYNC Synchronization Output Select bit

ValueDescription
1An alternate signal is used as the module synchronization output signal (see Table 27-18)
0The module synchronization output signal is the time base Reset/rollover event

Bits 20:16 – SYNC[4:0]  Capture/Compare/PWM Synchronization Source Select bits(4)

Refer to Table 27-20 for synchronization sources.
ValueDescription
11111Time base is in the Free-Running mode and rolls over at FFFF
11110Time base is synchronized to source #30
...
00001Time base is synchronized to source #1
00000Time base is self-synchronized and rolls over at FFFF or a match with the Period register

Bit 15 – ON Module Enable bit

ValueDescription
1Module is enabled with the operating mode specified by the MOD[3:0] control bits
0Module is disabled

Bit 13 – SIDL Stop in Idle Mode bit

ValueDescription
1Discontinues module operation when device enters Idle mode
0Continues module operation in Idle mode

Bit 12 – SLPEN Sleep Mode Enable bit

ValueDescription
1Module continues to operate in Sleep modes
0Module does not operate in Sleep modes

Bit 11 – TMRSYNC Time Base Clock Synchronization bit

ValueDescription
1Module time base clock is synchronized to internal system clocks; timing restrictions apply
0Module time base clock is not synchronized to internal system clocks

Bits 10:8 – CLKSEL[2:0] Time Base Clock Select bits

Bits 7:6 – TMRPS[1:0] Capture/Compare/PWMx Time Base Prescale Select bits

ValueDescription
111:64 prescaler
101:16 prescaler
011:4 prescaler
001:1 prescaler

Bit 5 – T32  32-Bit Time Base Select bit(1,5)

ValueDescription
1Uses 32-bit time base for selected Timer, Single Edge Output Compare or Input Capture function
0Uses 16-bit time base for selected Timer, Single Edge Output Compare or Input Capture function

Bit 4 – CCSEL  Capture/Compare Mode Select bit(1)

ValueDescription
1Module operates as an Input Capture peripheral
0Module operates as an Output Compare peripheral

Bits 3:0 – MOD[3:0]  CCP Mode Select bits(1)

ValueDescription
CCSEL1 (Input Capture modes)
1xxxReserved
0111Reserved
0110Reserved
0101Capture every 16th rising edge
0100Capture every 4th rising edge
0011Capture every rising and falling edge
0010Capture every falling edge
0001Capture every rising edge
0000Capture every rising and falling edge (Edge Detect mode)
CCSEL0 (Output Compare modes)
1111External Input mode, generator disabled; source selected by the ICS[2:0] bits
1110Reserved
1101Reserved
1100Reserved
1011Reserved
1010Reserved
1001Reserved
1000Reserved
0111Reserved
0110Reserved
0101Dual Edge Compare mode – Buffered
0100Dual Edge Compare mode
001116-bit/32-bit Single Edge mode – toggle output on compare match
001016-bit/32-bit Single Edge mode – drive output low on compare match
000116-bit/32-bit Single Edge mode – drive output high on compare match
000016-bit/32-bit Timer mode – output functions disabled