English
Language : 

PIC24FV16KM204 Datasheet, PDF (143/336 Pages) Microchip Technology – General Purpose, 16-Bit Flash Microcontroller with XLP Technology Data Sheet
PIC24FV16KM204 FAMILY
13.0 CAPTURE/COMPARE/PWM/
TIMER MODULES (MCCP AND
SCCP)
Note:
This data sheet summarizes the features
of this group of PIC24F devices. It is not
intended to be a comprehensive refer-
ence source. For more information on the
MCCP/SCCP modules, refer to the
“PIC24F Family Reference Manual”.
PIC24FV16KM204 family devices include several
Capture/Compare/PWM/Timer base modules, which
provide the functionality of three different peripherals of
earlier PIC24F devices. The module can operate in one
of three major modes:
• General Purpose Timer
• Input Capture
• Output Compare/PWM
The module is provided in two different forms, distin-
guished by the number of PWM outputs that the
module can generate. Single output modules (SCCPs)
provide only one PWM output. Multiple output modules
(MCCPs) can provide up to six outputs and an
extended range of power control features, depending
on the pin count of the particular device. All other
features of the modules are identical.
The SCCP and MCCP modules can be operated only
in one of the three major modes at any time. The other
modes are not available unless the module is
reconfigured for the new mode.
A conceptual block diagram for the module is shown in
Figure 13-1. All three modes share a time base gener-
ator and a common Timer register pair (CCPxTMRH/L);
other shared hardware components are added as a
particular mode requires.
Each module has a total of seven control and status
registers:
• CCPxCON1L (Register 13-1)
• CCPxCON1H (Register 13-2)
• CCPxCON2L (Register 13-3)
• CCPxCON2H (Register 13-4)
• CCPxCON3L (Register 13-5)
• CCPxCON3H (Register 13-6)
• CCPxSTATL (Register 13-7)
Each module also includes eight buffer/counter regis-
ters that serve as Timer Value registers or data holding
buffers:
• CCPxTMRH/CCPxTMRL (Timer High/Low
Counters)
• CCPxPRH/CCPxPRL (Timer Period High/Low)
• CCPxRA (Primary Output Compare Data Buffer)
• CCPxRB (Secondary Output Compare
Data Buffer)
• CCPxBUFH/CCPxBUFL (Input Capture High/Low
Buffers)
FIGURE 13-1:
MCCPx/SCCPx CONCEPTUAL BLOCK DIAGRAM TIMER CLOCK GENERATOR
External
Capture Input
Input Capture
CCPxIF
CCTxIF
Sync/Trigger Out
Special Trigger (to A/D)
Auxiliary Output (to CTMU)
Clock
Sources
Time Base
Generator
CCPxTMRH/L
T32
CCSEL
MOD<3:0>
Sync and
Gating
Sources
16/32-Bit
Timer
Output Compare/
PWM
Compare/PWM
Output(s)
OEFA/OEFB
 2013 Microchip Technology Inc.
Advance Information
DS33030A-page 143