Техническая Спецификация для Microchip Technology MA330026

Скачать
Страница из 392
 2011-2014 Microchip Technology Inc.
DS70000652F-page 177
dsPIC33FJ16(GP/MC)101/102 AND dsPIC33FJ32(GP/MC)101/102/104
14.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 Output Compare Control 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 14-1:
OUTPUT COMPARE x MODULE BLOCK DIAGRAM
Note 1: This data sheet summarizes the features
of the dsPIC33FJ16(GP/MC)101/102
and dsPIC33FJ32(GP/MC)101/102/104
family devices. It is not intended to be a
comprehensive reference source. To com-
plement the information in this data sheet,
refer to “Output Compare” (DS70209) in
the  “dsPIC33/PIC24 Family Reference
Manual”
, which is available from the
Microchip web site (
www.microchip.com
).
2: Some registers and associated bits
described in this section may not be
available on all devices. Refer to
 in
this data sheet for device-specific register
and bit information.
OCxR
Comparator
Output
Logic
OCM<2:0>
OCx
Set Flag bit,
OCxIF
OCxRS
Mode Select
3
OCTSEL
0
1
16
16
OCFA
TMR2
TMR2
Q
S
R
TMR3
TMR3
Rollover
Rollover
Output
Logic
Output
Enable
Enable
0
1