PIC24FJ64GA110 configuration bits The configuration words set the oscillator and PLL, the watchdog, the debugger pins, brown-out reset and code protection: they are the last words of flash (from 0x00ABF8), programmed with the code. Pick a setting and the word below updates; the starting values are the defaults in Microchip's device file, and an erased bit reads 1. In XC16 each setting is a #pragma config FNOSC = FRC line.
CONFIG3 · 0xABFA 0xFFFF default 0xFFFF WPEND Segment Write Protection End Page Select bit Write Protect from page 0 to WPFP Write Protect from WPFP to the last page of memory WPCFG Configuration Word Code Page Protection Selectbit Last page and Flash configuration words are code-protected Last page(at the top of program memory) and Flash configuration words are not protected WPDIS Segment Write Protection Disable bit Segmented code protection enabled Segmented code protection disabled WPFP Write Protection Flash Page Segment Boundary Page 0 (0x00) Page 1 (0x400) Page 2 (0x800) Page 3 (0xC00) Page 4 (0x1000) Page 5 (0x1400) Page 6 (0x1800) Page 7 (0x1C00) Page 8 (0x2000) Page 9 (0x2400) Page 10 (0x2800) Page 11 (0x2C00) Page 12 (0x3000) Page 13 (0x3400) Page 14 (0x3800) Page 15 (0x3C00) Page 16 (0x4000) Page 17 (0x4400) Page 18 (0x4800) Page 19 (0x4C00) Page 20 (0x5000) Page 21 (0x5400) Page 22 (0x5800) Page 23 (0x5C00) Page 24 (0x6000) Page 25 (0x6400) Page 26 (0x6800) Page 27 (0x6C00) Page 28 (0x7000) Page 29 (0x7400) Page 30 (0x7800) Page 31 (0x7C00) Page 32 (0x8000) Page 33 (0x8400) Page 34 (0x8800) Page 35 (0x8C00) Page 36 (0x9000) Page 37 (0x9400) Page 38 (0x9800) Page 39 (0x9C00) Page 40 (0xA000) Page 41 (0xA400) Page 42 (0xA800) Highest Page (same as page 42) CONFIG2 · 0xABFC 0xF7FF default 0xF7FF IESO Internal External Switch Over Mode IESO mode (Two-speed start-up)disabled IESO mode (Two-speed start-up) enabled FNOSC Oscillator Select Fast RC oscillator Fast RC oscillator with Postscaler and PLL module (FRCPLL) Primary oscillator (XT, HS, EC) Primary oscillator (XT, HS, EC) with PLL module (XTPLL, HSPLL, ECPLL) Secondary oscillator (SOSC) Low-Power RC oscillator (LPRC) Fast RC oscillator with Postscaler FCKSM Clock Switching and Monitor Clock switching and Fail-safe Clock Monitor are enabled Clock switching is enabled, Fail-safe Clock Monitor is disabled Both Clock Switching and Fail-safe Clock Monitor are disabled 3 (not named) OSCIOFNC Primary Oscillator Output Function OSCO functions as port I/O (RC15) OSCO functions as CLKO (FOSC/2) IOL1WAY IOLOCK One-Way Set Enable bit Unlimited Writes To RP Registers Write RP Registers Once I2C2SEL Reserved Use alternate ASCL2/ASDA2 pins for I2C2 Use Default SCL2/SDA2 pins for I2C2 POSCMOD Primary Oscillator Select EC Oscillator mode Selected XT Oscillator mode selected HS Oscillator mode selected Primary Oscillator disabled CONFIG1 · 0xABFE 0x7FFF default 0x7FFF JTAGEN JTAG Port Enable JTAG port is disabled JTAG port is enabled GCP General Code Segment Code Protect Code protection is enabled Code protection is disabled GWRP General Code Segment Write Protect Writes to program memory are disabled Writes to program memory are allowed BKBUG Background Debug Device resets into debug mode Device resets into operational mode ICS Comm Channel Select EMUC/EMUD share PGC3/PGD3 EMUC/EMUD share PGC2/PGD2 EMUC/EMUD share PGC1/PGD1 FWDTEN Watchdog Timer Enable Watchdog timer is disabled Watchdog timer is enabled WINDIS Watchdog Timer Window Windowed watchdog timer is enabled Standard Watchdog timer is enabled(Windowed mode is disabled) FWPSA WDT Prescaler 1:32 1:128 WDTPS Watchdog Timer Postscaler 1:1 1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256 1:512 1:1,024 1:2,048 1:4,096 1:8,192 1:16,384 1:32,768