Syntax for giving configuration bits in hitech-c?

Status
Not open for further replies.

PIC_Beg

Newbie level 5
Joined
Mar 3, 2011
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,354
How to specify the configuration bits along with the code in Hitech C pic 18 compiler?
I tried using "#pragma config OSC= HS" but it gave me a warning like unknown pragma
 

for a PIC18F97J60 and MCC18 compiler I use
Code:
#pragma config WDT=ON,  FOSC2=ON, FOSC=HSPLL, ETHLED=ON, CP0 = ON 
#pragma config WDTPS = 2048 //8192
 

Hitech C 18, user manual page 71
Section 3.2.2
Configuration Fuses

There are examples for using the configuration bits, I mostly prefer using:
__CONFIG(2, BW8 & PWRTDIS & WDTPS1 & WDTEN);
 

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…