English
Language : 

PIC16F1847_13 Datasheet, PDF (203/440 Pages) Microchip Technology – 18/20/28-Pin Flash Microcontrollers with XLP Technology
24.0 CAPTURE/COMPARE/PWM
MODULES
The Capture/Compare/PWM module is a peripheral
which allows the user to time and control different
events, and to generate Pulse-Width Modulation
(PWM) signals. 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 Pulse-Width Modulated
signals of varying frequency and duty cycle.
This family of devices contains two Enhanced
Capture/Compare/PWM modules (ECCP1 and ECCP2,)
and two standard Capture/Compare/PWM modules
(CCP3 and CCP4).
The Capture and Compare functions are identical for all
four CCP modules (ECCP1, ECCP2, CCP3 and
CCP4). The only differences between CCP modules
are in the Pulse-Width Modulation (PWM) function. The
standard PWM function is identical in modules, CCP3
and CCP4. In CCP modules ECCP1 and ECCP2, the
Enhanced PWM function has slight variations from one
another. Full-Bridge ECCP modules have four
available I/O pins while Half-Bridge ECCP modules
only have two available I/O pins. See Table 24-1 for
more information.
PIC16(L)F1847
Note 1: In devices with more than one CCP
module, it is very important to pay close
attention to the register names used. A
number placed after the module acronym
is used to distinguish between separate
modules. For example, the CCP1CON
and CCP2CON control the same
operational aspects of two completely
different CCP modules.
2: Throughout this section, generic
references to a CCP module in any of its
operating modes may be interpreted as
being equally applicable to ECCP1,
ECCP2, CCP3 and CCP4. Register
names, module signals, I/O pins, and bit
names may use the generic designator ‘x’
to indicate the use of a numeral to
distinguish a particular module, when
required.
TABLE 24-1: PWM RESOURCES
Device Name
ECCP1
PIC16(L)F1847
Enhanced PWM
Full-Bridge
ECCP2
Enhanced PWM
Half-Bridge
CCP3
Standard PWM
CCP4
Standard PWM
 2011-2013 Microchip Technology Inc.
Preliminary
DS40001453D-page 203