Microchip Technology MA330020 Data Sheet

Page of 398
dsPIC33FJ06GS101/X02 and dsPIC33FJ16GSX02/X04
DS70000318G-page 214
 2008-2014 Microchip Technology Inc.
             
REGISTER 15-15: FCLCONx: PWMx FAULT CURRENT-LIMIT CONTROL REGISTER
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
IFLTMOD
CLSRC4
(
CLSRC3
(
CLSRC2
CLSRC1
)
CLSRC0
(
CLPOL
(
CLMOD
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
FLTSRC4
FLTSRC3
(
FLTSRC2
FLTSRC1
)
FLTSRC0
FLTPOL
(
)
FLTMOD1
FLTMOD0
bit 7
bit 0
Legend:
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
IFLTMOD: Independent Fault Mode Enable bit
1
 = Independent Fault mode: Current-limit input maps FLTDAT1 to PWMxH output and the Fault input
maps FLTDAT0 to the PWMxL output. The CLDAT<1:0> bits are not used for override functions.
0
 = Normal Fault mode: Current-limit feature maps CLDAT<1:0> bits to the PWMxH and PWMxL
outputs. The PWM Fault feature maps FLTDAT<1:0> to the PWMxH and PWMxL outputs.
bit 14-10
CLSRC<4:0>: Current-Limit Control Signal Source Select for PWM # Generator bits
11111
 = Reserved



01000
 = Reserved
00111
 = Fault 8
00110
 = Fault 7
00101
 = Fault 6
00100
 = Fault 5
00011
 = Fault 4
00010
 = Fault 3
00001
 = Fault 2
00000
 = Fault 1
bit 9
CLPOL: Current-Limit Polarity for PWM Generator # bit
1
 = The selected current-limit source is active-low
0
 = The selected current-limit source is active-high
bit 8
CLMOD: Current-Limit Mode Enable bit for PWM Generator # bit
1
 = Current-limit function is enabled
0
 = Current-limit function is disabled
Note 1:
These bits should be changed only when PTEN = 0. Changing the clock selection during operation will 
yield unpredictable results.
2:
When Independent Fault mode is enabled (IFLTMOD = 1), and Fault 1 is used for Current-Limit mode 
(CLSRC<4:0> = b0000), the Fault Control Source Select bits (FLTSRC<4:0>) should be set to an unused 
Fault source to prevent Fault 1 from disabling both the PWMxL and PWMxH outputs.
3:
When Independent Fault mode is enabled (IFLTMOD = 1) and Fault 1 is used for Fault mode 
(FLTSRC<4:0> = b0000), the Current-Limit Control Source Select bits (CLSRC<4:0>) should be set to an 
unused current-limit source to prevent the current-limit source from disabling both the PWMxH and 
PWMxL outputs.