Datasheet
2015 Microchip Technology Inc. Preliminary DS60001320B-page 311
PIC32MZ Embedded Connectivity with Floating Point Unit (EF) Family
18.0 OUTPUT COMPARE
The Output Compare module is used to generate a
single pulse or a train of pulses in response to selected
time base events.
For all modes of operation, the Output Compare mod-
ule compares the values stored in the OCxR and/or the
OCxRS registers to the value in the selected timer.
When a match occurs, the Output Compare module
generates an event based on the selected mode of
operation.
The following are some of the key features:
• Multiple Output Compare modules in a device
• Programmable interrupt generation on compare
event
• Single and Dual Compare modes
• Single and continuous output pulse generation
• Pulse-Width Modulation (PWM) mode
• Hardware-based PWM Fault detection and
automatic output disable
• Programmable selection of 16-bit or 32-bit time
bases
• Can operate from either of two available 16-bit
time bases or a single 32-bit time base
• ADC event trigger
FIGURE 18-1: OUTPUT COMPARE MODULE BLOCK DIAGRAM
Note: This data sheet summarizes the
features of the PIC32MZ EF family of
devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to Section 16. “Output
Compare” (DS60001111) in the “PIC32
Family Reference Manual”
, which is
available from the Microchip web site
(www.microchip.com/PIC32).
OCxR
(1)
Comparator
Output
Logic
QS
R
OCM<2:0>
Output Enable
OCx
(1)
Set Flag bit OCxIF
(1)
OCxRS
(1)
Mode Select
3
Note 1: Where ‘x’ is shown, reference is made to the registers associated with the respective output compare channels,
1 through 9.
2: The OCFA pin controls the OC1, OC3, and OC7-OC9 channels. The OCFB pin controls the OC4-OC6 channels.
3: Refer to Table 18-1 for Timerx and Timery selections.
4: The ADC event trigger is only available on OC1,OC3, and OC 5.
0
1
OCTSEL
0
1
16
16
OCFA or
Timerx
(3)
Timerx
(3)
Logic
Output
Enable
PBCLK3
Timery
(3)
Rollover
Timery
(3)
Rollover
OCFB
(2)
Trigger to ADC
(4)