Datasheet

2010 Microchip Technology Inc. DS39616D-page 201
PIC18F2331/2431/4331/4431
REGISTER 18-8: FLTCONFIG: FAULT CONFIGURATION 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
BRFEN FLTBS
(1)
FLTBMOD
(1)
FLTBEN
(1)
FLTCON
(2)
FLTAS FLTAMOD FLTAEN
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 7 BRFEN: Breakpoint Fault Enable bit
1 = Enable Fault condition on a breakpoint (i.e., only when PWMPIN = 1)
0 = Disable Fault condition
bit 6 FLTBS: Fault B Status bit
(1)
1 =FLTB is asserted:
if FLTBMOD = 0, cleared by the user;
if FLTBMOD = 1, cleared automatically at beginning of the new period when FLTB
is deasserted
0 = No Fault
bit 5 FLTBMOD: Fault B Mode bit
(1)
1 = Cycle-by-Cycle mode: Pins are inactive for the remainder of the current PWM period or until FLTB
is deasserted; FLTBS is cleared automatically when FLTB is inactive (no Fault present)
0 = Inactive mode: Pins are deactivated (catastrophic failure) until FLTB
is deasserted and FLTBS is
cleared by the user only
bit 4 FLTBEN: Fault B Enable bit
(1)
1 = Enable Fault B
0 = Disable Fault B
bit 3 FLTCON: Fault Configuration bit
(2)
1 =FLTA, FLTB or both deactivates all PWM outputs
0 =FLTA
or FLTB deactivates PWM<5:0>
bit 2 FLTAS: Fault A Status bit
1 =FLTA is asserted:
if FLTAMOD = 0, cleared by the user;
if FLTAMOD = 1, cleared automatically at beginning of the new period when FLTA is deasserted
0 = No Fault
bit 1 FLTAMOD: Fault A Mode bit
1 = Cycle-by-Cycle mode: Pins are inactive for the remainder of the current PWM period or until FLTA
is
deasserted; FLTAS is cleared automatically
0 = Inactive mode: Pins are deactivated (catastrophic failure) until FLTA is deasserted and FLTAS is
cleared by the user only
bit 0 FLTAEN: Fault A Enable bit
1 = Enable Fault A
0 = Disable Fault A
Note 1: Unimplemented in PIC18F2331/2431 devices; maintain these bits clear.
2: PWM<7:6> are implemented only on PIC18F4331/4431 devices. On PIC18F2331/2431 devices, setting or
clearing FLTCON has no effect.