English
Language : 

PIC18F2331 Datasheet, PDF (210/396 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 R/W-0
R/W-0
R/W-0 R/W-0 R/W-0
BRFEN FLTBS(1) FLTBMOD(1) FLTBEN(1) FLTCON FLTAS
bit 7
R/W-0
FLTAMOD
R/W-0
FLTAEN
bit 0
bit 7 BRFEN: Breakpoint Fault Enable bit
1 = Enable fault condition on a breakpoint (i.e., only when HDMIN = 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
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 PIC18F2X31 devices; maintain these bits clear.
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
DS39616B-page 208
Preliminary
 2003 Microchip Technology Inc.