pic24hj128gp510at-i-pt Microchip Technology Inc., pic24hj128gp510at-i-pt Datasheet - Page 158

no-image

pic24hj128gp510at-i-pt

Manufacturer Part Number
pic24hj128gp510at-i-pt
Description
High-performance, 16-bit Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet
PIC24HJXXXGPX06A/X08A/X10A
15.1
Configure the Output Compare modes by setting the
appropriate Output Compare Mode (OCM<2:0>) bits in
the Output Compare Control (OCxCON<2:0>) register.
Table 15-1 lists the different bit settings for the Output
Compare modes. Figure 15-2 illustrates the output
compare operation for various modes. The user
TABLE 15-1:
FIGURE 15-2:
DS70592A-page 156
OCM<2:0>
000
001
010
011
100
101
110
111
Active-High One-Shot
Active-Low One-Shot
(OCM = 110 or 111)
Delayed One-Shot
Continuous Pulse
Output Compare Modes
(OCM = 001)
(OCM = 010)
(OCM = 011)
(OCM = 100)
(OCM = 101)
Module Disabled
Active-Low One-Shot
Active-High One-Shot
Toggle
Delayed One-Shot
Continuous Pulse
PWM without Fault Protection
PWM with Fault Protection
OUTPUT COMPARE MODES
Toggle
TMRy
PWM
OUTPUT COMPARE OPERATION
OCxRS
OCxR
Mode
Output Compare
Mode Enabled
Current output is maintained
Controlled by GPIO register
Preliminary
‘1’, if OCxR is non-zero
‘1’, if OCxR is non-zero
OCx Pin Initial State
‘0’, if OCxR is zero
‘0’, if OCxR is zero
Timer is Reset on
Period Match
0
1
0
0
application must disable the associated timer when
writing to the Output Compare Control registers to
avoid malfunctions.
Note:
See Section 13. “Output Compare”
(DS70247) in the “PIC24H Family Refer-
ence Manual” for OCxR and OCxRS
register restrictions.
OCx rising edge
OCx falling edge
OCx rising and falling edge
OCx falling edge
OCx falling edge
No interrupt
OCFA falling edge for OC1 to OC4
OCx Interrupt Generation
© 2009 Microchip Technology Inc.

Related parts for pic24hj128gp510at-i-pt