None of those you list are valid because the CONFIG register is not accessible from within your program code. You can only PRESET the contents of the CONFIG register using defines as I have indicated in my example, or at program time within the options displayed by your programmer/programmer software.
What defines? I can hear you ask... go to the \INC sibdirectory of your PBP installation, therein you will find a whole heap of files like M16F62X.inc, go and open one...
Near the top it will tell you what PIC's this file applies to... underneath you will find the CONFIGurations that apply, and below that are the registers listed that you can access directly. See section 6.1 in the PBP manual. The CONFIG options in the .INC file should match the CONFIG option in the PIC's Datasheet section "Special Features of the CPU".
Admittedly the PBP manual is a little spartan in some things. But it's a little like accounting software for example - where do you draw the line between telling somebody how to use the accounts package, and teaching them how to be an accountant.
Melanie
Bookmarks