electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

Microchip C18 Config Macros


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Microchip C18 Config Macros
Author Message
sammy-e



Joined: 01 Feb 2008
Posts: 7


Post29 Oct 2009 0:50   

Microchip C18 Config Macros


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.
Back to top
Google
AdSense
Google Adsense




Post29 Oct 2009 0:50   

Ads




Back to top
sammy-e



Joined: 01 Feb 2008
Posts: 7


Post02 Nov 2009 17:48   

Microchip C18 Config Macros


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
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> Microchip C18 Config Macros
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Microchip C18 C Compiler Tutorial (1)
[Microchip C18/30] What is LATB? (2)
Microchip C18 linker file (1)
Defining single bit variables in Microchip C18 (3)
MACROs (5)
macros (2)
Macros (1)
CST MACROS (6)
Hard macros (7)
how to create macros (1)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS