|
PIC32MX440F256H-80I Datasheet, PDF (367/646 Pages) Microchip Technology – 64/100-Pin General Purpose and USB 32-Bit Flash Microcontrollers | |||
|
◁ |
PIC32MX3XX/4XX
16.0 OUTPUT COMPARE
Note:
This data sheet summarizes the features of
the PIC32MX3XX/4XX family of devices. It
is not intended to be a comprehensive refer-
ence source. Refer to the âPIC32MX Family
Reference Manualâ (DS61132) for a
detailed description of this peripheral.
The Output Compare module (OCMP) is used to gen-
erate a single pulse or a train of pulses in response to
selected time base events. For all modes of operation,
the OCMP module compares the values stored in the
OCxR and/or the OCxRS registers to the value in the
selected timer. When a match occurs, the OCMP mod-
ule 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 auto-
matic 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.
FIGURE 16-1:
OUTPUT COMPARE MODULE BLOCK DIAGRAM
Set Flag bit
OCxIF(1)
OCxRS(1)
OCxR(1)
Comparator
Output
Logic
3
OCM<2:0>
Mode Select
SQ
R
OCx(1)
Output Enable
OCFA or OCFB
(see Note 2)
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).
Note 1: Where âxâ is shown, reference is made to the registers associated with the respective output compare
channels 1 through 5.
2: The OCFA pin controls the OC1-OC4 channels. The OCFB pin controls the OC5 channel.
3: Each output compare channel can use one of two selectable 16-bit time bases or a single 32-bit timer base.
© 2008 Microchip Technology Inc.
Preliminary
DS61143E-page 365
|
▷ |