CONFIG2

Supervisor

Note: BORV - The higher voltage setting is recommended for operation at or above 16 MHz.
Name:
CONFIG2
Offset:
0x300002
Reset:
Access:
Bit15141312111098
XINSTDEBUGSTVRENPPS1WAYZCDBORV[1:0]
AccessR/WR/WR/WR/WR/WR/WR/W
Reset1111111
Bit76543210
BOREN[1:0]LPBORENPWRTEMCLRE
AccessR/WR/WR/WR/WR/W
Reset01111

Bit 15 – XINST: Extended Instruction Set Enable bit

Extended Instruction Set Enable bit

ValueDescription
1 Extended Instruction Set and Indexed Addressing mode disabled (Legacy mode)
0 Extended Instruction Set and Indexed Addressing mode enabled

Bit 13 – DEBUG: Debugger Enable bit

Debugger Enable bit

ValueDescription
1 Background debugger disabled
0 Background debugger enabled

Bit 12 – STVREN: Stack Overflow/Underflow Reset Enable bit

Stack Overflow/Underflow Reset Enable bit

ValueDescription
1 Stack Overflow or Underflow will cause a Reset
0 Stack Overflow or Underflow will not cause a Reset

Bit 11 – PPS1WAY: PPSLOCKED bit One-Way Set Enable bit

PPSLOCKED bit One-Way Set Enable bit

ValueDescription
1 The PPSLOCKED bit can only be set once after an unlocking sequence is executed; once PPSLOCK is set, all future changes to PPS registers are prevented
0 The PPSLOCKED bit can be set and cleared as needed (provided an unlocking sequence is executed)

Bit 10 – ZCD: ZCD Disable bit

ZCD Disable bit

ValueDescription
1 ZCD disabled. ZCD can be enabled by setting the ZCDSEN bit of ZCDCON
0 ZCD always enabled, PMDx[ZCDMD] bit is ignored

Bits 9:8 – BORV[1:0]: Brown-out Reset Voltage Selection bit

Brown-out Reset Voltage Selection bit

PIC18F device:
Value Description
11 Brown-out Reset Voltage (VBOR) set to 2.45V
10 Brown-out Reset Voltage (VBOR) set to 2.45V
01 Brown-out Reset Voltage (VBOR) set to 2.7V
00 Brown-out Reset Voltage (VBOR) set to 2.85V
PIC18LF device:
Value Description
11 Brown-out Reset Voltage (VBOR) set to 1.90V
10 Brown-out Reset Voltage (VBOR) set to 2.45V
01 Brown-out Reset Voltage (VBOR) set to 2.7V
00 Brown-out Reset Voltage (VBOR) set to 2.85V

Bits 7:6 – BOREN[1:0]: Brown-out Reset Enable bits

Brown-out Reset Enable bits

When enabled, Brown-out Reset Voltage (VBOR) is set by BORV bit

ValueDescription
11 Brown-out Reset enabled, SBOREN bit is ignored
10 Brown-out Reset enabled while running, disabled in Sleep; SBOREN is ignored
01 Brown-out Reset enabled according to SBOREN
00 Brown-out Reset disabled

Bit 5 – LPBOREN: Low-Power BOR Enable bit

Low-Power BOR Enable bit

ValueDescription
1 Low-Power Brown-out Reset is disabled
0 Low-Power Brown-out Reset is enabled

Bit 1 – PWRTE: Power-up Timer Enable bit

Power-up Timer Enable bit

ValueDescription
1 PWRT disabled
0 PWRT enabled

Bit 0 – MCLRE: Master Clear (MCLR) Enable bit

Master Clear (MCLR) Enable bit

ValueNameDescription
x If LVP = 1 RE3 pin function is MCLR
1 If LVP = 0 MCLR pin is MCLR
0 If LVP = 0 MCLR pin function is port defined function