English
Language : 

PIC24FJ64GA006-I Datasheet, PDF (121/258 Pages) Microchip Technology – 64/80/100-Pin, General Purpose, 16-Bit Flash Microcontrollers
PIC24FJ128GA010 FAMILY
14.0 OUTPUT COMPARE
Note:
This data sheet summarizes the features of
this group of PIC24F devices. It is not
intended to be a comprehensive reference
source. Refer to Section 16. “Output
Compare” (DS39706) in the “PIC24F
Family Reference Manual” for more
information.
14.1 MODES OF OPERATION
Each output compare module has the following modes
of operation:
• Single Compare Match mode
• Dual Compare Match mode generating:
- Single Output Pulse mode
- Continuous Output Pulse mode
• Simple Pulse-Width Modulation mode:
- with Fault protection input
- without Fault protection input
14.2 Setup for Single Output Pulse
Generation
When the OCM control bits (OCxCON<2:0>) are set to
‘100’, the selected output compare channel initializes
the OCx pin to the low state and generates a single
output pulse.
FIGURE 14-1:
OUTPUT COMPARE MODULE BLOCK DIAGRAM
OCxRS(1)
Set Flag bit
OCxIF(1)
OCxR(1)
Comparator
Output
Logic
3
OCM<2:0>
Mode Select
0
1
OCTSEL
0
1
16
16
TMR Register Inputs
from Time Bases
(see Note 3)
Period Match Signals
from Time Bases
(see Note 3)
SQ
R
OCx(1)
Output Enable
OCFA or OCFB(2)
Note 1:
2:
3:
Where ‘x’ is shown, reference is made to the registers associated with the respective output compare channels, 1
through 5.
OCFA pin controls OC1-OC4 channels; OCFB pin controls OC5.
Each output compare channel can use either Timer2 or Timer3.
 2005-2012 Microchip Technology Inc.
DS39747F-page 121