Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top