27.4.6.2.4 One-Shot Functionality
While in triggered operation, the timer can operate in a One-Shot mode. In this mode, the timer remains in Reset until a hardware or software trigger event occurs. This event sets the CCPTRIG bit and the timer begins to count. When the timer rolls over to 0000h, the CCPTRIG bit is cleared by hardware. This holds the timer in Reset until the next trigger event, creating a one-shot timer.
One-Shot mode is enabled by setting the ONESHOT bit (CCPxCON1[22]). The OSCNT[2:0] control bits (CCPxCON3[30:28]) allow a one-shot trigger event to be extended for more than one CCP timer clock cycle. This feature is useful, for example, when the module needs to create more than one pulse at a trigger event.
1
); unexpected results may occur.