English
Language : 

PIC24FV16KM204 Datasheet, PDF (146/336 Pages) Microchip Technology – General Purpose, 16-Bit Flash Microcontroller with XLP Technology Data Sheet
PIC24FV16KM204 FAMILY
13.3 Output Compare Mode
Output Compare mode compares the Timer register
value with the value of one or two Compare registers,
depending on its mode of operation. The output com-
pare module on compare match events has the ability
to generate a single output transition or a train of output
pulses. Like most PIC® MCU peripherals, the output
compare module can also generate interrupts on a
compare match event
Table 13-2 shows the various modes available in
output compare modes.
TABLE 13-2: OUTPUT COMPARE/PWM MODES
MOD<3:0>
T32
(CCP1CONL<3:0>) (CCP1CONL<5>)
Operating Mode
0001
0001
0010
0010
0011
0011
0100
0101
0110
0111
0111
0
Output High on Compare (16-bit)
1
Output High on Compare (32-bit)
0
Output Low on Compare (16-bit)
1
Output Low on Compare (32-bit)
0
Output Toggle on Compare (16-bit)
1
Output Toggle on Compare (32-bit)
0
Dual Edge Compare (16-bit)
0
Dual Edge Compare (16-bit buffered)
0
Center-Aligned Pulse (16-bit buffered)
0
Variable Frequency Pulse (16-bit)
1
Variable Frequency Pulse (32-bit)
Single-Edge Mode
Dual Edge Mode
PWM Mode
Center PWM
FIGURE 13-5:
OUTPUT COMPARE x BLOCK DIAGRAM
CCPxCON1H/L
CCPxCON2H/L
CCPxCON3H/L
CCPxPRL
Comparator
OC Clock
Sources
Trigger and
Sync Sources
CCPxRA
Rollover/Reset
CCPxRA Buffer
Time Base
Generator
Increment
Reset
Trigger and
Sync Logic
Match Event
Comparator
Match
Event
CCPxTMRH/L Rollover
Comparator
Match
Event
CCPxRB Buffer
Reset
Rollover/Reset
CCPxRB
Edge
Detect
OC Output,
Auto-Shutdown
and Polarity
Control
CCPx Pin(s)
Fault Logic
OCFA/OCFB
Output Compare
Interrupt
DS33030A-page 146
Advance Information
 2013 Microchip Technology Inc.