Datasheet

© 2009 Microchip Technology Inc. DS70286C-page 167
dsPIC33FJXXXGPX06/X08/X10
15.0 OUTPUT COMPARE
The output compare module can select either Timer2 or
Timer3 for its time base. The module compares the
value of the timer with the value of one or two Compare
registers depending on the operating mode selected.
The state of the output pin changes when the timer
value matches the Compare register value. The output
compare module generates either a single output
pulse, or a sequence of output pulses, by changing the
state of the output pin on the compare match events.
The output compare module can also generate
interrupts on compare match events.
The output compare module has multiple operating
modes:
Active-Low One-Shot mode
Active-High One-Shot mode
Toggle mode
Delayed One-Shot mode
Continuous Pulse mode
PWM mode without Fault Protection
PWM mode with Fault Protection
FIGURE 15-1: OUTPUT COMPARE MODULE BLOCK DIAGRAM
Note: This data sheet summarizes the features
of the dsPIC33FJXXXGPX06/X08/X10
families of devices. It is not intended to be
a comprehensive reference source. To
complement the information in this data
sheet, refer to Section 13. “Output
Compare” (DS70209) in the “dsPIC33F
Family Reference Manual”,, which is avail-
able on the Microchip web site
(www.microchip.com).
OCxR
(1)
Comparator
Output
Logic
OCM<2:0>
Output Enable
OCx
(1)
Set Flag bit
OCxIF
(1)
OCxRS
(1)
Mode Select
3
0
1
OCTSEL
0
1
16
16
OCFA
TMR2
TMR2
QS
R
TMR3
TMR3
Rollover
Rollover
Note 1: An ‘x’ in a signal, register or bit name denotes the number of the output compare channels.
2: The OCFA pin controls OC1 through OC4. The OCFB pin controls OC5 through OC8.
or
OCFB
(2)