8.5.2 CONFIG2

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

Bit 76543210 
 FCMENSFCMENPFCMEN CSWENBBENPR1WAYCLKOUTEN 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 1111111 

Bit 7 – FCMENS Fail-Safe Clock Monitor Enable - Secondary Oscillator 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 Oscillator 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

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

Bit 3 – CSWEN 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)

ValueDescription
1 Boot Block disabled
0 Book Block enabled

Bit 1 – PR1WAY 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

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
Once protection is enabled through ICSP or a self-write, it can only be reset through a Bulk Erase.