English
Language : 

PIC16F887I-PT Datasheet, PDF (127/338 Pages) Microchip Technology – 28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers
PIC16F882/883/884/886/887
11.0 CAPTURE/COMPARE/PWM
MODULES (CCP1 AND CCP2)
This device contains one Enhanced Capture/Compare/
PWM (CCP1) and Capture/Compare/PWM module
(CCP2). The CCP1 and CCP2 modules are identical in
operation, with the exception of the Enhanced PWM
features available on CCP1 only. See Section 11.6
“PWM (Enhanced Mode)” for more information.
Note:
CCPRx and CCPx throughout this
document refer to CCPR1 or CCPR2 and
CCP1 or CCP2, respectively.
11.1 Enhanced Capture/Compare/PWM
(CCP1)
The Enhanced 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.
Table 11-1 shows the timer resources required by the
ECCP module.
TABLE 11-1: ECCP MODE – TIMER
RESOURCES REQUIRED
ECCP Mode
Timer Resource
Capture
Compare
PWM
Timer1
Timer1
Timer2
 2006-2012 Microchip Technology Inc.
DS41291G-page 127