CONFIG2

CONFIG2

Configuration Byte 2
Note:
  1. 1.Once protection is enabled through ICSP or a self-write, it can only be reset through a Bulk Erase.
  30 0001h 8  

CONFIG2

Bit  7 6 5 4 3 2 1 0  
  FCMENS FCMENP FCMEN   CSWEN BBEN PR1WAY CLKOUTEN  
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 – FCMENS: Fail-Safe Clock Monitor Enable - Secondary XTAL Enable

Fail-Safe Clock Monitor Enable - Secondary XTAL Enable

ValueDescription
1 Fail-Safe Clock Monitor enabled; the timer will flag the FSCMS bit and OSFIF interrupt on SOSC failure
0 Fail-Safe Clock Monitor disabled

Bit 6 – FCMENP: Fail-Safe Clock Monitor Enable - Primary XTAL Enable

Fail-Safe Clock Monitor Enable - Primary XTAL Enable

ValueDescription
1 Fail-Safe Clock Monitor enabled; the timer will flag the FSCMP bit and OSFIF interrupt on EXTOSC failure
0 Fail-Safe Clock Monitor disabled

Bit 5 – FCMEN: Fail-Safe Clock Monitor Enable

Fail-Safe Clock Monitor Enable

ValueDescription
1 Fail-Safe Clock Monitor enabled
0 Fail-Safe Clock Monitor disabled

Bit 3 – CSWEN: Clock Switch Enable

Clock Switch Enable

ValueDescription
1 Writing to NOSC and NDIV is allowed
0 The NOSC and NDIV bits cannot be changed by user software

Bit 2 – BBEN: Boot Block Enable(1)

Boot Block Enable(1)

ValueDescription
1 Boot Block disabled
0 Book Block enabled

Bit 1 – PR1WAY: PRLOCKED One-Way Set Enable

PRLOCKED One-Way Set Enable

ValueDescription
1 PRLOCKED bit can be cleared and set only once; Priority registers remain locked after one clear/set cycle
0 PRLOCKED bit can be set and cleared repeatedly (subject to the unlock sequence)

Bit 0 – CLKOUTEN: Clock Out Enable

Clock Out Enable

If FEXTOSC = 0xx, then this bit is ignored.

Otherwise:

ValueDescription
1 CLKOUT function is disabled; I/O or oscillator function on OSC2
0 CLKOUT function is enabled; FOSC/4 clock appears at OSC2