26.4.2 CCPx Control Register 2

Note:
  1. This bit has no effect in Timer modes, Output Compare modes or PWM modes. A write to the ICGARM (CCPxSTAT[10]) bit will re-arm the one-shot gating circuit when ICGSM = 01 or ICGSM = 10.
  2. This bit has no affect for Timer gating or Input Capture gating functions.
Name: CCPxCON2
Offset: 0x1B04, 0x1B34, 0x1B64, 0x1B94, 0x1BC4, 0x1BF4, 0x1C24, 0x1C54, 0x1C84

Bit 3130292827262524 
 OENSYNC     OCBENOCAEN 
Access R/WR/WR/W 
Reset 000 
Bit 2322212019181716 
 ICGSM[1:0] AUXOUT[1:0]ICS[2:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 15141312111098 
 PWMRSENASDGM SSDG     
Access R/WR/WR/W 
Reset 000 
Bit 76543210 
 ASDG[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 31 – OENSYNC Output Enable Synchronization bit

ValueDescription
1 Update by the output enable bits occurs on the next time base Reset or rollover.
0 Update by output enable bits occurs immediately.

Bit 25 – OCBEN Output Enable/Steering Control bit

ValueDescription
1 The OCx pin is controlled by the CCP module and produces an Output Compare or PWM signal.
0 The OCx pin is not controlled by the CCP module; the pin is available to the port logic or another peripheral multiplexed on the pin.

Bit 24 – OCAEN Output Enable/Steering Control bit

ValueDescription
1 The OCx pin is controlled by the CCP module and produces an Output Compare or PWM signal
0 The OCx pin is not controlled by the CCP module; the pin is available to the port logic or another peripheral multiplexed on the pin.

Bits 23:22 – ICGSM[1:0]  Input Capture Gating Source Mode Control bits(1)

ValueDescription
11 Reserved
10 One-Shot mode; falling edge from gating source will disable future capture events (CDIS = 1).
01 One-Shot mode; rising edge from gating source will enable future capture events (CDIS = 0).
00 Level Sensitive mode; a high level from gating source will enable future capture events; a low level will disable future capture events.

Bits 20:19 – AUXOUT[1:0] Auxiliary Output Signal Selection bits

ValueDescription
11 The signal output depends on the Module Operating mode (see Table 26-10).
10 Signal output depends on Module Operating mode (see Table 26-10).
01 Signal output depends on Module Operating mode (see Table 26-10).
00 No signal output on aux_out

Bits 18:16 – ICS[2:0] Input Capture Source Select bits

See Table 26-3.

Bit 15 – PWMRSEN CCPx Output Compare Restart Enable bit

ValueDescription
1 ASEVT (CCPxSTAT[4]) bit clears automatically at the beginning of the next output compare period, after the shutdown input has ended.
0 ASEVT (CCPxSTAT[4]) bit must be cleared in software to resume the output compare activity on output pins.

Bit 14 – ASDGM  CCPx Auto-Shutdown/Gate Control bit(2)

ValueDescription
1 Wait until next time base Reset or rollover for an Output Compare pin shutdown to occur.
0 The Output Compare pin shutdown event occurs immediately.

Bit 12 – SSDG CCPx Software Shutdown/Gate Control bit

ValueDescription
1 Manually force an auto-shutdown, the Timer Clock Gate or Input Capture signal gate event (setting of ASDGM bit still applies).
0 Normal module operation

Bits 7:0 – ASDG[7:0] CCPx Auto-Shutdown/Gating Source Enable bits

Refer to Table 26-8 for Auto-Shutdown and Gating Sources.
ValueDescription
1 ASDG source n is enabled.
0 ASDG source n is disabled.