RE: Config words with PIC24FJxxGA002
In this version of the PICkit 2 software, all "unimplemented" configuration bits are masked off to zero.
Looking at section 23.1 of the "PIC24FJ64GA004 Family Datasheet", Register 23-1 a bitmask of the configuration bits that are implemented is:
0x7FDF (ignoring upper nibble, and with bit 10 included as at one point it was to be an active bit)
For CW2, all the meaningful bits set to one gives:
Applying these masks to the hex file gives:
CONFIG1: 0xBF7F AND 0x7FDF = 0x3F5F
CONFIG2: 0xF9FF AND 0x87F7 = 0x81F7
These are the values you are seeing in PICkit 2. None of the meaningful bits have changed; it has just masked off the "Don't Care" bits to '0'.
NOTE: When checking configuration word values, only the meaningful bits as defined in the datasheet should be examined. The others are "don't care".
PICkit 2 always has and always will display Configuration Words in the upper portion of the window with unimplemented bits masked off to make them more readable as "don't care" bits are always zero.
However, presently (v2.40 and earlier) PICkit 2 also programs the PIC24FJ configuration words with unimplemented bits as '0'. MPLAB the PIC24FJ PICkit 2 support in MPLAB (v8.01) set these bits to '1'. The next version of the PICkit 2 Programmer software will program them to match MPLAB, with unimplemented bits set as '1'.