English
Language : 

PIC18F2331_07 Datasheet, PDF (211/400 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
REGISTER 17-8: FLTCONFIG: FAULT CONFIGURATION REGISTER
R/W-0
BRFEN
bit 7
R/W-0
FLTBS(1)
R/W-0
R/W-0
FLTBMOD(1) FLTBEN(1)
R/W-0
FLTCON(1)
R/W-0
FLTAS
R/W-0
FLTAMOD
R/W-0
FLTAEN
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘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<6:7> are implemented only on PIC18F4331/4431 devices. On PIC18F2331/2431 devices, setting or
clearing FLTCON has no effect.
© 2007 Microchip Technology Inc.
Preliminary
DS39616C-page 209