Microchip Technology MCU PIC PIC18F87K22-I/PTRSL TQFP-80 MCP PIC18F87K22-I/PTRSL Data Sheet

Product codes
PIC18F87K22-I/PTRSL
Page of 550
 2009-2011 Microchip Technology Inc.
DS39960D-page 259
PIC18F87K22 FAMILY
20.0
ENHANCED 
CAPTURE/COMPARE/PWM 
(ECCP) MODULE
PIC18F87K22 family devices have three Enhanced
Capture/Compare/PWM (ECCP) modules: ECCP1,
ECCP2 and ECCP3. These modules contain a 16-bit
register, which can operate as a 16-bit Capture register,
a 16-bit Compare register or a PWM Master/Slave Duty
Cycle register. These ECCP modules are upward
compatible with CCP.
ECCP1, ECCP2 and ECCP3 are implemented as stan-
dard CCP modules with Enhanced PWM capabilities.
These include:
• Provision for two or four output channels
• Output Steering modes
• Programmable polarity 
• Programmable dead-band control
• Automatic shutdown and restart
The enhanced features are discussed in detail in
The ECCP1, ECCP2 and ECCP3 modules use the
control registers: CCP1CON, CCP2CON and
CCP3CON. The control registers, CCP4CON through
CCP10CON, are for the modules, CCP4 through
CCP10.
 
Note:
Throughout this section, generic references
are used for register and bit names that are
the same, except for an ‘x’ variable that indi-
cates the item’s association with the
ECCP1, ECCP2 or ECCP3 module. For
example, the control register is named
CCPxCON and refers to CCP1CON,
CCP2CON and CCP3CON.