26.5.4.5 CCP External Input Source Mode
The External Input Source mode is selected when:
- CCM =
0
- MOD[3:0] =
1111
- T32 =
x
The External Input Source mode is provided to bypass all Output Compare signal generation logic in the CCP module. This allows an External signal to be connected to the output control block to create Complementary signals, provide Auto-shutdown control and so on.
The module time base operates in 16-bit mode for the External Input mode and time-base interrupts are generated. If the time base is self-synchronized, the count period is set by the CCPxPR register. The CCPxRA and CCPxRB registers have no effect on the time-base operation for this mode.
The time base remains operational in External Input mode, so certain features of the output control logic can continue to operate. For example, these features must have a time-base period reference:
- The automatic restart feature of the auto-shutdown logic (PWMRSEN = 1) requires a Timer Synchronization signal to operate properly.
- The Auto-Shutdown Gated mode (ASDGM = 1) requires a Time-Base Synchronization signal.
If the time base is not used for synchronization purposes in the External Input mode, then it can be used as a general purpose 16-bit timer to provide periodic CPU interrupts. The External signal input source can be one of the signals connected to the input capture source and is selected using the ICS[2:0] (CCPxCON2[18:16]) control bits.
The external signal will be synchronized to the CCP time-base clock source and, therefore, must meet certain timing requirements. Specifically, the high and low times for the External signal must be no less than one timer clock period.