> -----Original Message----- > From: piclist-bounces@mit.edu > [mailto:piclist-bounces@mit.edu]On Behalf Of Phil Cross > > My whole argument has been about the different VALUES of > configuration bits generated by CONFIG and __CONFIG, > which seems to be down to CONFIG setting > unused bits to '0', but __CONFIG setting them to '1'. This is a valid question to Microchip and I do not want to say that Microchip is always right with MPLAB. In fact, MPASM 5.01 and MPLAB C18 V3.01 have fixed some problems with CONFIG settings and there may still be some errors. There are quite some problems with the wrong CONFIG options which break some codes (even the Microchip examples). For example, PICKit 2 firmware will fail to build with the V3.01 version of MPLAB C18 due to the wrong config options used in the old version of MPLAB C18. MPLAB C18 v3.02 is just out. I have not checked it out. You may want to check out the readme for V3.01 and V3.02. Release Notes for MPLAB(R) C18, PICmicro(R) 18Cxx C Compiler v3.01 18 November, 2005 ... (27358 / 27515) The #pragma config directive causes unimplemented bits to become 0, but should be left a '1'. Unimplemented/reserve bits are now included in the mask and default settings when the bit must be maintained set. ... Here is the readme file for MPASM V5.01 (comes with MPLAB C18 V3.01) Release Notes for MPASM(TM) Assembler version v5.01 18 November, 2005 ... ----------------------------------------------------------------- Repairs and Enhancements Made in v5.01 ----------------------------------------------------------------- Problems resolved: (27358 / 27515) The new config directive causes unimplemented bits to become 0, but should be left a '1'. Unimplemented/reserve bits are now included in the mask and default settings when the bit must be maintained set. Following are the devices and configuration words that were corrected: ... Hope this helps. Regards, Xiaofan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist