Datasheet
2011 Microchip Technology Inc. DS39932D-page 247
PIC18F46J11 FAMILY
18.0 ENHANCED
CAPTURE/COMPARE/PWM
(ECCP) MODULE
PIC18F46J11 family devices have two Enhanced
Capture/Compare/PWM (ECCP) modules: ECCP1 and
ECCP2. 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 and ECCP2 are implemented as standard 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
Section 18.5 “PWM (Enhanced Mode)”.
Note: Register and bit names referencing one of
the two ECCP modules substitute an ‘x’
for the module number. For example, reg-
isters CCP1CON and CCP2CON, which
have the same definitions, are called
CCPxCON. Figures and diagrams use
ECCP1-based names, but those names
also apply to ECCP2, with a “2” replacing
the illustration name’s “1”.
When writing firmware, the “x” in register
and bit names must be replaced with the
appropriate module number.
Note: PxA, PxB, PxC and PxD are associated
with the remappable pins (RPn).