CONFIG4

CONFIG4

Configuration Byte 4
Note:
  1. 1.The higher voltage setting is recommended for an operation at or above 16 MHz.
  30 0003h 8  

CONFIG4

Bit  7 6 5 4 3 2 1 0  
  XINST DEBUG LVP STVREN PPS1WAY   BORV[1:0]  
Access  R/W R/W R/W R/W R/W   R/W R/W  
Reset  1 1 1 1 1   1 1  

Bit 7 – XINST: Extended Instruction Set Enable

Extended Instruction Set Enable

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

Bit 6 – DEBUG: Debugger Enable

Debugger Enable

ValueDescription
1 Background debugger disabled
0 Background debugger enabled

Bit 5 – LVP: Low-Voltage Programming Enable

Low-Voltage Programming Enable

The LVP bit cannot be written (to zero) while operating from the LVP programming interface. The purpose of this rule is to prevent the user from dropping out of LVP mode while programming from LVP mode, or accidentally eliminating LVP mode from the Configuration state.
ValueDescription
1 Low-Voltage Programming enabled. MCLR/VPP pin function is MCLR. The MCLRE Configuration bit is ignored.
0 High Voltage on MCLR/VPP must be used for programming

Bit 4 – STVREN: Stack Overflow/Underflow Reset Enable

Stack Overflow/Underflow Reset Enable

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

Bit 3 – PPS1WAY: PPSLOCKED One-Way Set Enable

PPSLOCKED One-Way Set Enable

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

Bits 1:0 – BORV[1:0]: Brown-out Reset Voltage Selection (1)

Brown-out Reset Voltage Selection (1)

ValueDescription
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