PIC16F913/914/916/917/946
TABLE 15-1: CCP MODE – TIMER
RESOURCES REQUIRED
15.0 CAPTURE/COMPARE/PWM
(CCP) MODULE
CCP Mode
Timer Resource
The Capture/Compare/PWM module is a peripheral
which allows the user to time and control different
events. In Capture mode, the peripheral allows the
timing of the duration of an event. The Compare mode
allows the user to trigger an external event when a
predetermined amount of time has expired. The PWM
mode can generate a Pulse-Width Modulated signal of
varying frequency and duty cycle.
Capture
Compare
PWM
Timer1
Timer1
Timer2
The timer resources used by the module are shown in
Table 15-1.
Additional information on CCP modules is available in
the Application Note AN594, “Using the CCP Modules”
(DS00594).
TABLE 15-2: INTERACTION OF TWO CCP MODULES
CCPx Mode
CCPy Mode
Interaction
Capture
Capture
Compare
PWM
Capture
Compare
Compare
PWM
Same TMR1 time base
Same TMR1 time base
Same TMR1 time base
The PWMs will have the same frequency and update rate (TMR2 interrupt).
The rising edges will be aligned.
PWM
PWM
Capture
None
None
Compare
Note:
CCPRx and CCPx throughout this
document refer to CCPR1 or CCPR2 and
CCP1 or CCP2, respectively.
© 2007 Microchip Technology Inc.
DS41250F-page 211