Microchip C18 Config Macros

Status
Not open for further replies.

sammy-e

Newbie level 5
Joined
Feb 1, 2008
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,368
Hello,

Can someone tell me where/how the configuration macros are defined? I have been trying to configure the various configuration bits/settings within code such as OSCCON and WDTCON based on the names I see within "C:\Program Files\Microchip\MCC18\h\p18f2525.h", but I learned that I should instead be using the names as listed in "PIC18 Configuration Settings Addendum" (OSC and WDT respectively) from the "C18 Getting Started manual".

Where are WDT and OSC defined? I even looking in p18f2525.inc without success. How does the compiler know what these are? Thanks.
 

As a follow-up, I never found anything within the include files. It looks like the only ways to do this are to look in the doc files, along with using a command line flag with the compiler. I wish this were more transparent.

Command line example:
C:\Program Files\Microchip\MCC18\bin\mcc18.exe -p=18f2525 --help-config
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…