Microchip Technology MA330031-2 Data Sheet

Page of 530
 2011-2013 Microchip Technology Inc.
DS70000657H-page 223
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
REGISTER 15-2:
OCxCON2: OUTPUT COMPARE x CONTROL REGISTER 2
R/W-0
R/W-0
R/W-0
R/W-0
U-0
U-0
U-0
R/W-0
FLTMD
FLTOUT
FLTTRIEN
OCINV
OC32
bit 15
bit 8
R/W-0
R/W-0, HS
R/W-0
R/W-0
R/W-1
R/W-1
R/W-0
R/W-0
OCTRIG
TRIGSTAT
OCTRIS
SYNCSEL4
SYNCSEL3
SYNCSEL2
SYNCSEL1
SYNCSEL0
bit 7
bit 0
Legend:
HS = Hardware Settable bit
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 15
FLTMD:
 Fault Mode Select bit 
1
 = Fault mode is maintained until the Fault source is removed; the corresponding OCFLTx bit is
cleared in software and a new PWM period starts
0
 = Fault mode is maintained until the Fault source is removed and a new PWM period starts 
bit 14
FLTOUT:
 Fault Out bit
1
 = PWM output is driven high on a Fault
0
 = PWM output is driven low on a Fault
bit 13
FLTTRIEN:
 Fault Output State Select bit 
1
 = OCx pin is tri-stated on a Fault condition
0
 = OCx pin I/O state is defined by the FLTOUT bit on a Fault condition
bit 12
OCINV:
 Output Compare x Invert bit 
1
 = OCx output is inverted
0
 = OCx output is not inverted
bit 11-9
Unimplemented:
 Read as ‘0’
bit 8
OC32:
 Cascade Two OCx Modules Enable bit (32-bit operation)
1
 = Cascade module operation is enabled
0
 = Cascade module operation is disabled
bit 7
OCTRIG:
 Output Compare x Trigger/Sync Select bit
1
 = Triggers OCx from the source designated by the SYNCSELx bits
0
 = Synchronizes OCx with the source designated by the SYNCSELx bits
bit 6
TRIGSTAT:
 Timer Trigger Status bit
1
 = Timer source has been triggered and is running
0
 = Timer source has not been triggered and is being held clear
bit 5
OCTRIS:
 Output Compare x Output Pin Direction Select bit
1
 = OCx is tri-stated
0
 = Output Compare x module drives the OCx pin
Note 1:
Do not use the OCx module as its own Synchronization or Trigger source.
2:
When the OCy module is turned OFF, it sends a trigger out signal. If the OCx module uses the OCy 
module as a Trigger source, the OCy module must be unselected as a Trigger source prior to disabling it.
3:
Each Output Compare x module (OCx) has one PTG Trigger/Synchronization source. See 
 for more information.
PTGO0 = OC1
PTGO1 = OC2
PTGO2 = OC3
PTGO3 = OC4